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

Method Assets

forge-gui-mobile/src/forge/assets/Assets.java:58–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 private Texture holofoil;
57
58 public Assets() {
59 String titleFilename = Forge.isLandscapeMode() ? "title_bg_lq.png" : "title_bg_lq_portrait.png";
60 try {
61 //init titleLQ
62 if (GuiBase.isAndroid())
63 getTexture(Gdx.files.internal("fallback_skin").child(titleFilename));
64 else
65 getTexture(Gdx.files.classpath("fallback_skin").child(titleFilename));
66 //init transition
67 if (GuiBase.isAndroid())
68 getTexture(Gdx.files.internal("fallback_skin").child("transition.png"));
69 else
70 getTexture(Gdx.files.classpath("fallback_skin").child("transition.png"));
71 } catch (Exception e) {
72 fallback_skins().clear();
73 fallback_skins().put("title", getDummy());
74 fallback_skins().put("transition", getDummy());
75 }
76 }
77
78 @Override
79 public void dispose() {

Callers

nothing calls this directly

Calls 7

isLandscapeModeMethod · 0.95
isAndroidMethod · 0.95
getTextureMethod · 0.95
fallback_skinsMethod · 0.95
getDummyMethod · 0.95
clearMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected