mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Editor: Show name of open scene in window title
This commit is contained in:
@@ -563,7 +563,19 @@ namespace GlitchyEditor
|
||||
/// Updates the title of the window.
|
||||
private void UpdateWindowTitle()
|
||||
{
|
||||
Application.Instance.Window.Title = scope $"Glitchy Engine - {_currentProject.Name}";
|
||||
String title = scope String("Glitchy Engine");
|
||||
|
||||
if (_currentProject != null)
|
||||
{
|
||||
title.AppendF($" - {_currentProject.Name}");
|
||||
}
|
||||
|
||||
if (_editorScene != null)
|
||||
{
|
||||
title.AppendF($" | {_editorScene.Name}");
|
||||
}
|
||||
|
||||
Application.Instance.Window.Title = title;
|
||||
}
|
||||
|
||||
#region Project Management
|
||||
@@ -1047,6 +1059,8 @@ namespace GlitchyEditor
|
||||
ScriptEngine.DeserializeScriptInstances(serializedObjects);
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWindowTitle();
|
||||
}
|
||||
|
||||
/// Creates a new default scene.
|
||||
|
||||
Reference in New Issue
Block a user