[Mobile] Fix path for fallback_skin

This commit is contained in:
Anthony Calosa
2022-03-08 10:27:50 +08:00
parent 5101fe1c1c
commit 64488ed813
4 changed files with 3 additions and 6 deletions

View File

@@ -339,7 +339,7 @@ public class Forge implements ApplicationListener {
protected void afterDbLoaded() {
//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()

View File

@@ -200,7 +200,6 @@ public class PlayerStatisticScene extends UIScene {
back.getLabel().setText(Forge.getLocalizer().getMessage("lblBack"));
ScrollPane scrollPane = ui.findActor("enemies");
scrollPane.setActor(enemiesGroup);
enemiesGroup.setFillParent(true);
this.init = true;
}
}

View File

@@ -108,7 +108,7 @@ public class FSkin {
{
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
preferredDir = GuiBase.isAndroid() ? Gdx.files.internal("fallback_skin") : Gdx.files.classpath("fallback_skin");
preferredDir = Gdx.files.classpath("fallback_skin");
}
else {
if (splashScreen != null) {

View File

@@ -97,9 +97,7 @@ public class SplashScreen extends FContainer {
private float progress = 0;
private boolean finished, openAdventure;
//for transition image only...
TextureRegion transition_bg = new TextureRegion(new Texture(GuiBase.isAndroid()
? Gdx.files.internal("fallback_skin").child("title_bg_lq.png")
: Gdx.files.classpath("fallback_skin").child("title_bg_lq.png")));
TextureRegion transition_bg = new TextureRegion(new Texture(Gdx.files.classpath("fallback_skin").child("title_bg_lq.png")));
public void drawBackground(Graphics g) {
float percentage = progress / DURATION;