From dddd5b83d07bf812dab0ddb27041ae1e7e4d1f49 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Fri, 18 Oct 2024 16:58:49 +0200 Subject: [PATCH] add button to remove override --- Source/Editor/Windows/GameWindow.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Editor/Windows/GameWindow.cs b/Source/Editor/Windows/GameWindow.cs index 886b11d11..c10c27913 100644 --- a/Source/Editor/Windows/GameWindow.cs +++ b/Source/Editor/Windows/GameWindow.cs @@ -543,6 +543,12 @@ namespace FlaxEditor.Windows var pfMenu = menu.AddChildMenu("Focus On Play Override").ContextMenu; GenerateFocusOptionsContextMenu(pfMenu); + + pfMenu.AddSeparator(); + + var button = pfMenu.AddButton("Remove override"); + button.TooltipText = "Reset the override to the value set in the editor options."; + button.Clicked += () => FocusOnPlayOption = Editor.Instance.Options.Options.Interface.FocusOnPlayMode; } menu.AddSeparator();