mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
[Mobile] add Shahrazad support
This commit is contained in:
@@ -202,6 +202,10 @@ public class Forge implements ApplicationListener {
|
||||
ImageCache.preloadCache(filteredkeys);
|
||||
}
|
||||
|
||||
public static void openHomeScreen() {
|
||||
openScreen(HomeScreen.instance);
|
||||
}
|
||||
|
||||
private void afterDbLoaded() {
|
||||
stopContinuousRendering(); //save power consumption by disabling continuous rendering once assets loaded
|
||||
|
||||
@@ -210,7 +214,7 @@ public class Forge implements ApplicationListener {
|
||||
SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS); //start background music
|
||||
destroyThis = false; //Allow back()
|
||||
Gdx.input.setCatchKey(Keys.MENU, true);
|
||||
openScreen(HomeScreen.instance);
|
||||
openHomeScreen();
|
||||
splashScreen = null;
|
||||
|
||||
boolean isLandscapeMode = isLandscapeMode();
|
||||
|
||||
@@ -77,14 +77,23 @@ public class ControlWinLose {
|
||||
|
||||
/** Action performed when "quit" button is pressed in default win/lose UI. */
|
||||
public void actionOnQuit() {
|
||||
boolean openHomeScreen = false;
|
||||
// Reset other stuff
|
||||
saveOptions();
|
||||
try { MatchController.getHostedMatch().endCurrentGame();
|
||||
try {
|
||||
if(MatchController.getHostedMatch().subGameCount > 0) {
|
||||
openHomeScreen = true;
|
||||
MatchController.getHostedMatch().subGameCount--;
|
||||
}
|
||||
MatchController.getHostedMatch().endCurrentGame();
|
||||
} catch (NullPointerException e) {}
|
||||
view.hide();
|
||||
if(humancount == 0) {
|
||||
Forge.back();
|
||||
}
|
||||
//todo Refresh the layout
|
||||
if (openHomeScreen)
|
||||
Forge.openHomeScreen();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user