This commit is contained in:
Simon Lübeß
2023-03-25 00:41:34 +01:00
parent d54cdf43ee
commit ed952155b6
6 changed files with 99 additions and 244 deletions
@@ -14,6 +14,8 @@ namespace GlitchyEditor.EditWindows
class ContentBrowserWindow : EditorWindow
{
public const String s_WindowTitle = "Content Browser";
private append String _currentDirectory = .();
private append String _selectedFile = .();
@@ -40,7 +42,7 @@ namespace GlitchyEditor.EditWindows
_currentDirectory.Set(_manager.ContentDirectory);
}
if(!ImGui.Begin("Content Browser", &_open, .None))
if(!ImGui.Begin(s_WindowTitle, &_open, .None))
{
ImGui.End();
return;
@@ -9,7 +9,7 @@ using GlitchyEngine.Events;
namespace GlitchyEditor.EditWindows
{
class SceneViewportWindow : EditorWindow
class EditorViewportWindow : EditorWindow
{
public const String s_WindowTitle = "Scene";
@@ -10,6 +10,8 @@ namespace GlitchyEditor.EditWindows;
class PropertiesWindow : EditorWindow
{
public const String s_WindowTitle = "Properties";
private AssetPropertiesEditor _currentPropertiesEditor ~ delete _;
private bool _lockCurrentAsset;
@@ -28,7 +30,7 @@ class PropertiesWindow : EditorWindow
protected override void InternalShow()
{
defer { ImGui.End(); }
if(!ImGui.Begin("Properties", &_open, .None))
if(!ImGui.Begin(s_WindowTitle, &_open, .None))
return;
// TODO: make a little button in title bar?