From 4eb2ac854ec8fdff7db3f9f341b07b27f12b5f9e Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Wed, 28 Dec 2022 13:00:58 -0600 Subject: [PATCH] Fixed more CMs that shouldnt close --- Source/Editor/Windows/GameWindow.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index 23558c396..c800692f7 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -353,6 +353,7 @@ namespace FlaxEditor.Windows // Viewport Brightness { var brightness = menu.AddButton("Viewport Brightness"); + brightness.CloseMenuOnClick = false; var brightnessValue = new FloatValueBox(_viewport.Brightness, 140, 2, 50.0f, 0.001f, 10.0f, 0.001f) { Parent = brightness @@ -363,6 +364,7 @@ namespace FlaxEditor.Windows // Viewport Resolution { var resolution = menu.AddButton("Viewport Resolution"); + resolution.CloseMenuOnClick = false; var resolutionValue = new FloatValueBox(_viewport.ResolutionScale, 140, 2, 50.0f, 0.1f, 4.0f, 0.001f) { Parent = resolution @@ -381,6 +383,7 @@ namespace FlaxEditor.Windows // Show GUI { var button = menu.AddButton("Show GUI"); + button.CloseMenuOnClick = false; var checkbox = new CheckBox(140, 2, ShowGUI) { Parent = button }; checkbox.StateChanged += x => ShowGUI = x.Checked; } @@ -388,6 +391,7 @@ namespace FlaxEditor.Windows // Show Debug Draw { var button = menu.AddButton("Show Debug Draw"); + button.CloseMenuOnClick = false; var checkbox = new CheckBox(140, 2, ShowDebugDraw) { Parent = button }; checkbox.StateChanged += x => ShowDebugDraw = x.Checked; }