mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
update splash
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package forge.screens;
|
||||
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import forge.Forge;
|
||||
import forge.Graphics;
|
||||
import forge.animation.ForgeAnimation;
|
||||
@@ -38,6 +39,7 @@ public class ClosingScreen extends FContainer {
|
||||
} else if (percentage > 1) {
|
||||
percentage = 1;
|
||||
}
|
||||
g.fillRect(Color.BLACK, 0, 0, Forge.getScreenWidth(), Forge.getScreenHeight());
|
||||
g.setAlphaComposite(1-percentage);
|
||||
g.drawImage(FSkinTexture.BG_TEXTURE, 0, 0, Forge.getScreenWidth(), Forge.getScreenHeight());
|
||||
g.setAlphaComposite(oldAlpha);
|
||||
@@ -76,6 +78,7 @@ public class ClosingScreen extends FContainer {
|
||||
} else if (percentage > 1) {
|
||||
percentage = 1;
|
||||
}
|
||||
g.fillRect(Color.BLACK, 0, 0, Forge.getScreenWidth(), Forge.getScreenHeight());
|
||||
g.setAlphaComposite(percentage);
|
||||
g.drawImage(FSkinTexture.BG_TEXTURE, 0, 0, Forge.getScreenWidth(), Forge.getScreenHeight());
|
||||
g.setAlphaComposite(oldAlpha);
|
||||
|
||||
@@ -181,6 +181,7 @@ public class SplashScreen extends FContainer {
|
||||
}
|
||||
private void showSelector(Graphics g, float alpha) {
|
||||
if (background == null) { return; }
|
||||
g.fillRect(Color.BLACK, 0, 0, Forge.getScreenWidth(), Forge.getScreenHeight());
|
||||
g.drawImage(FSkinTexture.BG_TEXTURE, 0, 0, getWidth(), getHeight());
|
||||
|
||||
float x, y, w, h;
|
||||
@@ -263,6 +264,7 @@ public class SplashScreen extends FContainer {
|
||||
}
|
||||
void drawDisclaimer(Graphics g) {
|
||||
if (background == null) { return; }
|
||||
g.fillRect(Color.BLACK, 0, 0, Forge.getScreenWidth(), Forge.getScreenHeight());
|
||||
g.drawImage(FSkinTexture.BG_TEXTURE, 0, 0, getWidth(), getHeight());
|
||||
|
||||
float x, y, w, h;
|
||||
|
||||
Reference in New Issue
Block a user