MCPcopy Create free account
hub / github.com/Card-Forge/forge / switchToClassic

Method switchToClassic

forge-gui-mobile/src/forge/Forge.java:779–796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

777 }
778
779 public static void switchToClassic() {
780 if (switchClassic)
781 return;
782 switchClassic = true;
783 setTransitionScreen(new TransitionScreen(() -> {
784 ImageCache.getInstance().disposeTextures();
785 isMobileAdventureMode = false;
786 FSkinTexture.invalidateAdventureTextures();
787 GuiBase.setAdventureDirectory(null);
788 setCursor(FSkin.getCursor().get(0), "0");
789 setAltZoneTabMode(FModel.getPreferences().getPref(FPref.UI_ALT_PLAYERZONETABS));
790 Gdx.input.setInputProcessor(getInputProcessor());
791 clearTransitionScreen();
792 openHomeDefault();
793 exited = false;
794 switchClassic = false;
795 }, takeScreenshot(), false, false));
796 }
797
798 public static void switchToAdventure() {
799 setTransitionScreen(new TransitionScreen(() -> {

Callers 1

switchToClassicMethod · 0.95

Calls 15

setTransitionScreenMethod · 0.95
getInstanceMethod · 0.95
setAdventureDirectoryMethod · 0.95
setCursorMethod · 0.95
getCursorMethod · 0.95
setAltZoneTabModeMethod · 0.95
getPreferencesMethod · 0.95
getInputProcessorMethod · 0.95
clearTransitionScreenMethod · 0.95
openHomeDefaultMethod · 0.95
takeScreenshotMethod · 0.95

Tested by

no test coverage detected