You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
959 B
C++
38 lines
959 B
C++
|
4 years ago
|
/******************************************************************************
|
||
|
4 years ago
|
* File - properties_view.h
|
||
|
4 years ago
|
* Author - Joey Pollack
|
||
|
|
* Date - 2022/01/26 (y/m/d)
|
||
|
|
* Mod Date - 2022/01/26 (y/m/d)
|
||
|
|
* Description - Displayes the properties and components(?) of the selected
|
||
|
|
* object.
|
||
|
|
******************************************************************************/
|
||
|
|
|
||
|
4 years ago
|
#include "properties_view.h"
|
||
|
4 years ago
|
#include <gui/dearimgui/imgui.h>
|
||
|
4 years ago
|
#include <editor/editor.h>
|
||
|
4 years ago
|
|
||
|
|
namespace lunarium { namespace editor
|
||
|
|
{
|
||
|
|
PropertiesView::PropertiesView()
|
||
|
4 years ago
|
: Panel("Properties", gui::PanelDockZone::DDZ_RIGHT, true)
|
||
|
4 years ago
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
bool PropertiesView::DoFrame()
|
||
|
|
{
|
||
|
|
if (!mIsOpen)
|
||
|
|
return false;
|
||
|
|
|
||
|
4 years ago
|
if (!ImGui::Begin(GetName(), &mIsOpen, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoScrollbar))
|
||
|
4 years ago
|
{
|
||
|
|
ImGui::End();
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
ImGui::End();
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}}
|