diff options
| author | ilotterytea <iltsu@alright.party> | 2024-06-09 23:12:36 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-06-09 23:12:36 +0500 |
| commit | 8924b8dadd904f13179303552a8ec7c99002366e (patch) | |
| tree | 7402968a6e194043f668ea03eff4643476d8b53e /core/src/kz/ilotterytea/maxon/ui | |
| parent | f72a9ac8929890887391faec6c2c2150ab682f84 (diff) | |
feat: mobile support for MenuScreen
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/ui')
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java index 9f7c653..3a5667f 100644 --- a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java +++ b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java @@ -14,6 +14,7 @@ import kz.ilotterytea.maxon.MaxonGame; import kz.ilotterytea.maxon.player.Savegame; import kz.ilotterytea.maxon.screens.game.GameScreen; import kz.ilotterytea.maxon.screens.WelcomeScreen; +import kz.ilotterytea.maxon.utils.OsUtils; import kz.ilotterytea.maxon.utils.formatters.NumberFormatter; public class SavegameWidget extends Table implements Disposable { @@ -120,7 +121,6 @@ public class SavegameWidget extends Table implements Disposable { // - - - C O N T R O L - - - TextButton playButton = new TextButton(game.locale.TranslatableText("menu.continue"), skin); - controlTable.add(playButton).padRight(16f).growX(); playButton.addListener(new ClickListener() { @Override @@ -131,7 +131,6 @@ public class SavegameWidget extends Table implements Disposable { }); TextButton resetButton = new TextButton(game.locale.TranslatableText("menu.reset"), skin); - controlTable.add(resetButton); resetButton.addListener(new ClickListener() { @Override @@ -144,6 +143,16 @@ public class SavegameWidget extends Table implements Disposable { createEmpty(); } }); + + if (OsUtils.isMobile) { + header.pad(32f); + data.pad(32f); + controlTable.add(playButton).growX().minHeight(86f).padBottom(16f).row(); + controlTable.add(resetButton).growX(); + } else { + controlTable.add(playButton).padRight(16f).growX(); + controlTable.add(resetButton); + } } private void moveToNextScreen() { |
