From 3d7e2fbd337b071b4086c8498c912b563e6f378d Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Fri, 11 Feb 2022 14:36:00 +0800 Subject: [PATCH] fix missing bg texture --- forge-gui-mobile/src/forge/screens/SplashScreen.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/forge-gui-mobile/src/forge/screens/SplashScreen.java b/forge-gui-mobile/src/forge/screens/SplashScreen.java index 7ba92f01159..79e06060d1d 100644 --- a/forge-gui-mobile/src/forge/screens/SplashScreen.java +++ b/forge-gui-mobile/src/forge/screens/SplashScreen.java @@ -21,7 +21,7 @@ public class SplashScreen extends FContainer { private TextureRegion background; private final FProgressBar progressBar; private FSkinFont disclaimerFont; - private boolean preparedForDialogs, showModeSelector, init, nobg; + private boolean preparedForDialogs, showModeSelector, init, animateLogo; private FButton btnAdventure, btnHome; private BGAnimation bgAnimation; @@ -87,7 +87,8 @@ public class SplashScreen extends FContainer { } else if (percentage > 1) { percentage = 1; } - if (nobg) { + if (animateLogo) { + g.drawImage(FSkinTexture.BG_TEXTURE, 0, 0, getWidth(), getHeight()); float xmod = Forge.getScreenHeight() > 1000 ? 1.5f : Forge.getScreenHeight() > 800 ? 1.3f : 1f; float scale = xmod > 1f ? xmod+(percentage*0.7f) : 0.7f+(percentage*0.7f); float hscale = xmod > 1f ? xmod+0.2f+(percentage*0.9f) : 0.9f+(percentage*0.9f); @@ -114,7 +115,7 @@ public class SplashScreen extends FContainer { @Override protected void onEnd(boolean endingAll) { - if (nobg) { + if (animateLogo) { if (openAdventure) Forge.openAdventure(); else @@ -168,7 +169,7 @@ public class SplashScreen extends FContainer { else { btnAdventure.setVisible(false); btnHome.setVisible(false); - nobg = true; + animateLogo = true; bgAnimation.progress = 0; bgAnimation.openAdventure = true; } @@ -182,7 +183,7 @@ public class SplashScreen extends FContainer { else { btnAdventure.setVisible(false); btnHome.setVisible(false); - nobg = true; + animateLogo = true; bgAnimation.progress = 0; bgAnimation.openAdventure = false; }