diff options
| author | ilotterytea <iltsu@alright.party> | 2022-12-10 04:51:13 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-12-10 04:51:13 +0600 |
| commit | 6c52b6d5fe3d591012e0b0e6f1a7b56d9a2f60c2 (patch) | |
| tree | e6d32c414196bef5dc515e415bce426de9249ec4 /core | |
| parent | 145377c13161698abcb149ac692f73c2c7a233c7 (diff) | |
Changed the brand logo position.
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/MenuScreen.java | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java index e0bd6a2..5d91fd5 100644 --- a/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/MenuScreen.java @@ -119,7 +119,7 @@ public class MenuScreen implements Screen { brandLogo = new Image(brandAtlas.findRegion("brand")); brandLogo.setPosition( (stage.getWidth() / 2f) - (brandLogo.getWidth() / 2f), - (stage.getHeight() / 2f) - (brandLogo.getHeight() / 2f) + stage.getHeight() - brandLogo.getHeight() * 1.2f ); brandLogo.setOrigin( @@ -235,32 +235,7 @@ public class MenuScreen implements Screen { menuTable.addAction(Actions.moveTo(menuTable.getX(), -menuTable.getY() - menuTable.getHeight() - 48f, 1f, Interpolation.smoother)); brandLogo.clearActions(); - brandLogo.addAction( - Actions.sequence( - Actions.parallel( - Actions.moveTo( - (stage.getWidth() / 2f) - (brandLogo.getWidth() / 2f), - stage.getHeight() - brandLogo.getHeight() * 1.5f, - 1f, - Interpolation.fade - ), - Actions.rotateTo(0f, .25f, Interpolation.fade) - ), - Actions.repeat( - RepeatAction.FOREVER, - Actions.sequence( - Actions.parallel( - Actions.rotateTo(-5f, 5f, Interpolation.smoother), - Actions.scaleTo(0.9f, 0.9f, 5f, Interpolation.smoother) - ), - Actions.parallel( - Actions.rotateTo(5f, 5f, Interpolation.smoother), - Actions.scaleTo(1.1f, 1.1f, 5f, Interpolation.smoother) - ) - ) - ) - ) - ); + brandLogo.addAction(Actions.moveTo(brandLogo.getX(), stage.getHeight() + brandLogo.getHeight(), 1f, Interpolation.smoother)); // Main options window: final Table optionsTable = new Table(skin); @@ -496,7 +471,7 @@ public class MenuScreen implements Screen { Actions.rotateTo(0f, 1f), Actions.moveTo( (stage.getWidth() / 2f) - (brandLogo.getWidth() / 2f), - (stage.getHeight() / 2f) - (brandLogo.getHeight() / 2f), + stage.getHeight() - brandLogo.getHeight() * 1.2f, 1f, Interpolation.fade ) |
