Add Cook&Run and Run cooked game utilities to Game menu list for multilayer games testing

This commit is contained in:
Wojciech Figat
2022-09-07 11:52:11 +02:00
parent 94cacc8abc
commit 9a77517cb4
8 changed files with 154 additions and 7 deletions

View File

@@ -485,6 +485,9 @@ namespace FlaxEditor.Modules
cm.VisibleChanged += OnMenuGameShowHide;
_menuGamePlay = cm.AddButton("Play", "F5", Editor.Simulation.RequestStartPlay);
_menuGamePause = cm.AddButton("Pause", "F6", Editor.Simulation.RequestPausePlay);
cm.AddSeparator();
cm.AddButton("Cook&Run", Editor.Windows.GameCookerWin.BuildAndRun).LinkTooltip("Runs Game Cooker to build the game for this platform and runs the game after.");
cm.AddButton("Run cooked game", Editor.Windows.GameCookerWin.RunCooked).LinkTooltip("Runs the game build from the last cooking output. Use Cook&Play or Game Cooker first.");
// Tools
MenuTools = MainMenu.AddButton("Tools");