mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
[Mobile] fix portrait mode homescreen menu on startup
This commit is contained in:
@@ -216,7 +216,7 @@ public class Forge implements ApplicationListener {
|
||||
SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS); //start background music
|
||||
destroyThis = false; //Allow back()
|
||||
Gdx.input.setCatchKey(Keys.MENU, true);
|
||||
openHomeScreen(1);
|
||||
openHomeScreen(0); //default for startup
|
||||
splashScreen = null;
|
||||
|
||||
boolean isLandscapeMode = isLandscapeMode();
|
||||
|
||||
@@ -144,6 +144,8 @@ public class HomeScreen extends FScreen {
|
||||
}
|
||||
|
||||
public void openMenu(int index){
|
||||
if (index == 0)
|
||||
return; //menu on startup for portrait mode
|
||||
if (index < 6)
|
||||
NewGameMenu.getPreferredScreen().open();
|
||||
if (index == 6)
|
||||
|
||||
Reference in New Issue
Block a user