mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Improved Editor
- Added window docking - Added MenuBar - Added scene viewport - Added closing and reopening for editor windows
This commit is contained in:
@@ -7,16 +7,18 @@ namespace GlitchyEditor.EditWindows
|
||||
{
|
||||
class ComponentEditWindow
|
||||
{
|
||||
public const String s_WindowTitle = "Components";
|
||||
|
||||
private Editor _editor;
|
||||
|
||||
private bool _show = true;
|
||||
private bool _open = true;
|
||||
|
||||
public Editor Editor => _editor;
|
||||
|
||||
public bool Show
|
||||
public bool Open
|
||||
{
|
||||
get => _show;
|
||||
set => _show = value;
|
||||
get => _open;
|
||||
set => _open = value;
|
||||
}
|
||||
|
||||
public this(Editor editor)
|
||||
@@ -26,10 +28,10 @@ namespace GlitchyEditor.EditWindows
|
||||
|
||||
public void Show()
|
||||
{
|
||||
if(!_show)
|
||||
if(!_open)
|
||||
return;
|
||||
|
||||
if(!ImGui.Begin("Components"))
|
||||
if(!ImGui.Begin(s_WindowTitle, &_open, .None))
|
||||
{
|
||||
ImGui.End();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user