(12e5b576f) Added a warning when switching from the sub editor to gamescreen with console commands

This commit is contained in:
Joonas Rikkonen
2019-04-23 15:36:50 +03:00
parent b1038628e7
commit 2cb4de7dc5

View File

@@ -361,6 +361,10 @@ namespace Barotrauma
commands.Add(new Command("gamescreen|game", "gamescreen/game: Go to the \"in-game\" view.", (string[] args) =>
{
if (Screen.Selected == GameMain.SubEditorScreen)
{
NewMessage("WARNING: Switching directly from the submarine editor to the game view may cause bugs and crashes. Use with caution.", Color.Orange);
}
GameMain.GameScreen.Select();
}));