From fcae4846f114579237c128f395312fed2c5e4650 Mon Sep 17 00:00:00 2001 From: Saas Date: Wed, 3 Jun 2026 16:47:49 +0200 Subject: [PATCH 1/5] remove project path from window title --- Source/Editor/Modules/WindowsModule.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Editor/Modules/WindowsModule.cs b/Source/Editor/Modules/WindowsModule.cs index 7e01dff67..1a03c7c57 100644 --- a/Source/Editor/Modules/WindowsModule.cs +++ b/Source/Editor/Modules/WindowsModule.cs @@ -191,13 +191,9 @@ namespace FlaxEditor.Modules var mainWindow = MainWindow; if (mainWindow) { - var projectPath = Globals.ProjectFolder; -#if PLATFORM_WINDOWS - projectPath = projectPath.Replace('/', '\\'); -#endif var engineVersion = Editor.EngineProject.Version; var engineVersionText = engineVersion.Revision > 0 ? $"{engineVersion.Major}.{engineVersion.Minor}.{engineVersion.Revision}" : $"{engineVersion.Major}.{engineVersion.Minor}"; - var title = $"Flax Editor {engineVersionText} - \'{projectPath}\'"; + var title = $"Flax Editor {engineVersionText} - \'{Editor.GameProject.Name}\'"; mainWindow.Title = title; } } From 04fc93811965f2268329f077a5d60db77eddffe2 Mon Sep 17 00:00:00 2001 From: Saas Date: Wed, 3 Jun 2026 16:48:07 +0200 Subject: [PATCH 2/5] add project path and large world to window icon tooltip --- Source/Editor/Modules/UIModule.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Modules/UIModule.cs b/Source/Editor/Modules/UIModule.cs index 1a9abe23c..2c658580d 100644 --- a/Source/Editor/Modules/UIModule.cs +++ b/Source/Editor/Modules/UIModule.cs @@ -824,10 +824,20 @@ namespace FlaxEditor.Modules driver = $" ({driver})"; #endif + var projectPath = Globals.ProjectFolder; +#if PLATFORM_WINDOWS + projectPath = projectPath.Replace('/', '\\'); +#endif + + string largeWorld = "Large Worlds Enabled: false"; +#if USE_LARGE_WORLDS + largeWorld = "Large Worlds Enabled: true"; +#endif + WindowDecorations = new MainWindowDecorations(mainWindow, !Utilities.Utils.UseCustomWindowDecorations(true)) { Parent = mainWindow, - IconTooltipText = $"{mainWindow.RootWindow.Title}\nVersion {Globals.EngineVersion}\nConfiguration {configuration}\nGraphics {GPUDevice.Instance.RendererType}{driver}", + IconTooltipText = $"{mainWindow.RootWindow.Title}\nPath {projectPath}\n\nEngine Version {Globals.EngineVersion}\n{largeWorld}\nConfiguration {configuration}\n\nGraphics {GPUDevice.Instance.RendererType}{driver}", }; } From 0b160c2e61e241debbacdb6b2672ac3af8ffcfeb Mon Sep 17 00:00:00 2001 From: Saas Date: Wed, 3 Jun 2026 16:54:03 +0200 Subject: [PATCH 3/5] remove : --- Source/Editor/Modules/UIModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/Modules/UIModule.cs b/Source/Editor/Modules/UIModule.cs index 2c658580d..f4802f59f 100644 --- a/Source/Editor/Modules/UIModule.cs +++ b/Source/Editor/Modules/UIModule.cs @@ -829,9 +829,9 @@ namespace FlaxEditor.Modules projectPath = projectPath.Replace('/', '\\'); #endif - string largeWorld = "Large Worlds Enabled: false"; + string largeWorld = "Large Worlds Disabled"; #if USE_LARGE_WORLDS - largeWorld = "Large Worlds Enabled: true"; + largeWorld = "Large Worlds Enabled"; #endif WindowDecorations = new MainWindowDecorations(mainWindow, !Utilities.Utils.UseCustomWindowDecorations(true)) From d103ccdbc3296543a1521294e6e356e324906af7 Mon Sep 17 00:00:00 2001 From: Saas Date: Sat, 6 Jun 2026 18:58:07 +0200 Subject: [PATCH 4/5] show large world only if needed --- Source/Editor/Modules/UIModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Editor/Modules/UIModule.cs b/Source/Editor/Modules/UIModule.cs index f4802f59f..62f514040 100644 --- a/Source/Editor/Modules/UIModule.cs +++ b/Source/Editor/Modules/UIModule.cs @@ -829,15 +829,15 @@ namespace FlaxEditor.Modules projectPath = projectPath.Replace('/', '\\'); #endif - string largeWorld = "Large Worlds Disabled"; + string largeWorld = ""; #if USE_LARGE_WORLDS - largeWorld = "Large Worlds Enabled"; + largeWorld = "\nLarge Worlds Enabled"; #endif WindowDecorations = new MainWindowDecorations(mainWindow, !Utilities.Utils.UseCustomWindowDecorations(true)) { Parent = mainWindow, - IconTooltipText = $"{mainWindow.RootWindow.Title}\nPath {projectPath}\n\nEngine Version {Globals.EngineVersion}\n{largeWorld}\nConfiguration {configuration}\n\nGraphics {GPUDevice.Instance.RendererType}{driver}", + IconTooltipText = $"{mainWindow.RootWindow.Title}\nPath {projectPath}\n\nEngine Version {Globals.EngineVersion}{largeWorld}\nConfiguration {configuration}\n\nGraphics {GPUDevice.Instance.RendererType}{driver}", }; } From ef7aefd7b8fd80055bc1e4c91079c406b848953c Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 4 Aug 2026 19:19:34 +0200 Subject: [PATCH 5/5] Refactor window tooltip to use string builder #4135 --- Source/Editor/Modules/UIModule.cs | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/Source/Editor/Modules/UIModule.cs b/Source/Editor/Modules/UIModule.cs index 62f514040..1e6fec14c 100644 --- a/Source/Editor/Modules/UIModule.cs +++ b/Source/Editor/Modules/UIModule.cs @@ -817,27 +817,40 @@ namespace FlaxEditor.Modules private void InitWindowDecorations(RootControl mainWindow) { ScriptsBuilder.GetBinariesConfiguration(out _, out _, out _, out var configuration); - string driver = string.Empty; -#if PLATFORM_LINUX - driver = LinuxPlatform.DisplayServer; - if (!string.IsNullOrEmpty(driver)) - driver = $" ({driver})"; -#endif + var tooltip = new System.Text.StringBuilder(); + + // Project info + tooltip.AppendLine(Editor.GameProject.Name); var projectPath = Globals.ProjectFolder; #if PLATFORM_WINDOWS projectPath = projectPath.Replace('/', '\\'); #endif + tooltip.AppendLine(projectPath); - string largeWorld = ""; + // Engine info + tooltip.Append("Engine Version: ").AppendLine(Globals.EngineVersion); + var engineNickname = Editor.EngineProject.EngineNickname; + if (!string.IsNullOrEmpty(engineNickname)) + tooltip.Append($" ({engineNickname})"); + + // Build info #if USE_LARGE_WORLDS - largeWorld = "\nLarge Worlds Enabled"; + tooltip.AppendLine("Large Worlds Enabled"); #endif + tooltip.Append("Configuration: ").AppendLine(configuration); + tooltip.Append("Graphics: ").Append(GPUDevice.Instance.RendererType); +#if PLATFORM_LINUX + var driver = LinuxPlatform.DisplayServer; + if (!string.IsNullOrEmpty(driver)) + tooltip.Append($" ({driver})"); +#endif + tooltip.AppendLine(); WindowDecorations = new MainWindowDecorations(mainWindow, !Utilities.Utils.UseCustomWindowDecorations(true)) { Parent = mainWindow, - IconTooltipText = $"{mainWindow.RootWindow.Title}\nPath {projectPath}\n\nEngine Version {Globals.EngineVersion}{largeWorld}\nConfiguration {configuration}\n\nGraphics {GPUDevice.Instance.RendererType}{driver}", + IconTooltipText = tooltip.ToString(), }; }