summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/sprites/gui/brand.atlas27
-rw-r--r--assets/sprites/gui/brand.pngbin63710 -> 92968 bytes
-rw-r--r--core/src/kz/ilotterytea/maxon/screens/MenuScreen.java31
3 files changed, 40 insertions, 18 deletions
diff --git a/assets/sprites/gui/brand.atlas b/assets/sprites/gui/brand.atlas
index 111d193..6caaaf2 100644
--- a/assets/sprites/gui/brand.atlas
+++ b/assets/sprites/gui/brand.atlas
@@ -1,20 +1,11 @@
-
brand.png
-size: 1024, 512
-format: RGBA8888
-filter: Nearest, Nearest
-repeat: none
+size:1024,1024
+repeat:none
+beta
+bounds:565,350,380,174
brand
- rotate: false
- xy: 2, 175
- size: 565, 175
- orig: 565, 175
- offset: 0, 0
- index: -1
-brandOnline
- rotate: false
- xy: 2, 0
- size: 565, 175
- orig: 565, 175
- offset: 0, 0
- index: -1
+bounds:0,174,565,175
+online
+bounds:0,349,565,175
+update
+bounds:0,0,512,174
diff --git a/assets/sprites/gui/brand.png b/assets/sprites/gui/brand.png
index 2caa8c7..ec1f3d3 100644
--- a/assets/sprites/gui/brand.png
+++ b/assets/sprites/gui/brand.png
Binary files differ
diff --git a/core/src/kz/ilotterytea/maxon/screens/MenuScreen.java b/core/src/kz/ilotterytea/maxon/screens/MenuScreen.java
index a0f1da4..2401d06 100644
--- a/core/src/kz/ilotterytea/maxon/screens/MenuScreen.java
+++ b/core/src/kz/ilotterytea/maxon/screens/MenuScreen.java
@@ -79,6 +79,7 @@ public class MenuScreen implements Screen {
// - - - Brand - - -
Table brandTable = new Table();
+ brandTable.align(Align.center);
Image logo = new Image(brandAtlas.findRegion("brand"));
@@ -122,6 +123,36 @@ public class MenuScreen implements Screen {
brandTable.add(logo);
}
+ Image updateLogo;
+
+ if (OsUtils.isMobile) {
+ updateLogo = new Image(brandAtlas.findRegion("beta"));
+ } else {
+ updateLogo = new Image(brandAtlas.findRegion("update"));
+ }
+
+ updateLogo.setOrigin(
+ updateLogo.getWidth() / 2f,
+ updateLogo.getHeight() / 2f
+ );
+
+ updateLogo.setRotation(10f);
+
+ updateLogo.addAction(
+ Actions.repeat(
+ RepeatAction.FOREVER,
+ Actions.sequence(
+ Actions.scaleTo(0.9f, 0.9f, 0.25f, Interpolation.circleIn),
+ Actions.scaleTo(1f, 1f, 0.25f, Interpolation.circleOut)
+ )
+ )
+ );
+
+ brandTable.add(updateLogo)
+ .size(updateLogo.getWidth() / 2f, updateLogo.getHeight() / 2f)
+ .padLeft(updateLogo.getWidth() / -2f)
+ .padBottom(-86f);
+
// - - - Menu control (quit, options, etc.) - - -
Table controlTable = new Table(skin);
controlTable.align(Align.top | Align.center);