- sub list in the main menu is refreshed when MainMenuScreen is selected (-> downloaded and newly created subs appear in the list)

- fixed "editing menu" not disappearing after an entity is removed in the editor
- debugconsole textbox is automatically selected when opening the console
- clearing the current gamesession if returning to main menu using the console
This commit is contained in:
Regalis
2016-12-12 14:49:16 +02:00
parent 5241546069
commit f9ea876edf
3 changed files with 47 additions and 24 deletions

View File

@@ -95,6 +95,7 @@ namespace Barotrauma
if (isOpen)
{
textBox.Select();
AddToGUIUpdateList();
}
else
{
@@ -427,6 +428,14 @@ namespace Barotrauma
case "mainmenuscreen":
case "mainmenu":
case "menu":
GameMain.GameSession = null;
List<Character> characters = new List<Character>(Character.CharacterList);
foreach (Character c in characters)
{
c.Remove();
}
GameMain.MainMenuScreen.Select();
break;
case "gamescreen":