Fixed minor bug with pause menu not being removed properly

This commit is contained in:
Anuken
2017-08-07 15:27:47 -04:00
parent 3c9cc97400
commit 895397f66f
7 changed files with 15 additions and 10 deletions

View File

@@ -109,7 +109,7 @@ public class UI extends SceneModule{
@Override
public void init(){
//TODO oh my god just move these dialogs to different files
//TODO just move these dialogs to different files
upgrades = new UpgradeDialog();
@@ -128,6 +128,7 @@ public class UI extends SceneModule{
prefs.checkPref("tutorial", "Show tutorial Window", true);
prefs.checkPref("fps", "Show FPS", false);
prefs.checkPref("noshadows", "Disable shadows", false);
keys = new KeybindDialog();
@@ -537,6 +538,10 @@ public class UI extends SceneModule{
public void hideMenu(){
menu.hide();
if(scene.getKeyboardFocus() != null && scene.getKeyboardFocus() instanceof Dialog){
((Dialog)scene.getKeyboardFocus()).hide();
}
}
public void showTutorial(){