mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
[Mobile] Fix path for fallback_skin
This commit is contained in:
@@ -339,7 +339,7 @@ public class Forge implements ApplicationListener {
|
|||||||
|
|
||||||
protected void afterDbLoaded() {
|
protected void afterDbLoaded() {
|
||||||
//init here to fix crash if the assets are missing
|
//init here to fix crash if the assets are missing
|
||||||
transitionTexture = new Texture(GuiBase.isAndroid() ? Gdx.files.internal("fallback_skin").child("transition.png") : Gdx.files.classpath("fallback_skin").child("transition.png"));
|
transitionTexture = new Texture(Gdx.files.classpath("fallback_skin").child("transition.png"));
|
||||||
|
|
||||||
|
|
||||||
destroyThis = false; //Allow back()
|
destroyThis = false; //Allow back()
|
||||||
|
|||||||
@@ -200,7 +200,6 @@ public class PlayerStatisticScene extends UIScene {
|
|||||||
back.getLabel().setText(Forge.getLocalizer().getMessage("lblBack"));
|
back.getLabel().setText(Forge.getLocalizer().getMessage("lblBack"));
|
||||||
ScrollPane scrollPane = ui.findActor("enemies");
|
ScrollPane scrollPane = ui.findActor("enemies");
|
||||||
scrollPane.setActor(enemiesGroup);
|
scrollPane.setActor(enemiesGroup);
|
||||||
enemiesGroup.setFillParent(true);
|
|
||||||
this.init = true;
|
this.init = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public class FSkin {
|
|||||||
{
|
{
|
||||||
if (!dir.exists() || !dir.isDirectory()) {
|
if (!dir.exists() || !dir.isDirectory()) {
|
||||||
//if skins directory doesn't exist, point to internal assets/skin directory instead for the sake of the splash screen
|
//if skins directory doesn't exist, point to internal assets/skin directory instead for the sake of the splash screen
|
||||||
preferredDir = GuiBase.isAndroid() ? Gdx.files.internal("fallback_skin") : Gdx.files.classpath("fallback_skin");
|
preferredDir = Gdx.files.classpath("fallback_skin");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (splashScreen != null) {
|
if (splashScreen != null) {
|
||||||
|
|||||||
@@ -97,9 +97,7 @@ public class SplashScreen extends FContainer {
|
|||||||
private float progress = 0;
|
private float progress = 0;
|
||||||
private boolean finished, openAdventure;
|
private boolean finished, openAdventure;
|
||||||
//for transition image only...
|
//for transition image only...
|
||||||
TextureRegion transition_bg = new TextureRegion(new Texture(GuiBase.isAndroid()
|
TextureRegion transition_bg = new TextureRegion(new Texture(Gdx.files.classpath("fallback_skin").child("title_bg_lq.png")));
|
||||||
? Gdx.files.internal("fallback_skin").child("title_bg_lq.png")
|
|
||||||
: Gdx.files.classpath("fallback_skin").child("title_bg_lq.png")));
|
|
||||||
|
|
||||||
public void drawBackground(Graphics g) {
|
public void drawBackground(Graphics g) {
|
||||||
float percentage = progress / DURATION;
|
float percentage = progress / DURATION;
|
||||||
|
|||||||
Reference in New Issue
Block a user