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

Method openAdventure

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

Source from the content-addressed store, hash-verified

358 }
359
360 public static void openAdventure() {
361 //default to english since it doesn't have CJK fonts, it will be updated on Forgescene enter/exit
362 getLocalizer().setEnglish(forcedEnglishonCJKMissing);
363 //continuous rendering is needed for adventure mode
364 startContinuousRendering();
365 FSkinTexture.invalidateAdventureTextures();
366 GuiBase.setAdventureDirectory(ForgeConstants.ADVENTURE_COMMON_DIR);
367 advStartup = false;
368 isMobileAdventureMode = true;
369 //force it for adventure mode if the prefs is not updated from boolean value to string value
370 if ("true".equalsIgnoreCase(FModel.getPreferences().getPref(FPref.UI_ALT_PLAYERZONETABS)) ||
371 "false".equalsIgnoreCase(FModel.getPreferences().getPref(FPref.UI_ALT_PLAYERZONETABS))) {
372 setAltZoneTabMode("Vertical");
373 }
374 //pixl cursor for adventure
375 setCursor(null, "0");
376 if (!GuiBase.isAndroid() || !getDeviceAdapter().getGamepads().isEmpty())
377 enableControllerListener();
378 loadAdventureResources(true);
379 }
380 private static void loadAdventureResources(boolean startScene) {
381 try {
382 Config.instance().loadResources();

Callers 3

afterDbLoadedMethod · 0.95
switchToAdventureMethod · 0.95
onEndMethod · 0.95

Calls 15

getLocalizerMethod · 0.95
setAdventureDirectoryMethod · 0.95
getPreferencesMethod · 0.95
setAltZoneTabModeMethod · 0.95
setCursorMethod · 0.95
isAndroidMethod · 0.95
getDeviceAdapterMethod · 0.95
setEnglishMethod · 0.80

Tested by

no test coverage detected