add button to remove override

This commit is contained in:
xxSeys1
2024-10-18 16:58:49 +02:00
parent af79a32847
commit dddd5b83d0

View File

@@ -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();