diff options
| author | ilotterytea <iltsu@alright.party> | 2024-04-28 13:11:54 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-04-28 13:11:54 +0500 |
| commit | 01cbb6d0cfd0d58c5144bf746ec2a7ddd3beb6c3 (patch) | |
| tree | 6b2de924bb3c53a7f0579d2a47c33ff60f6a32db /core | |
| parent | 85bacbfda31ca32fd357241ee9cb4984edc50f44 (diff) | |
feat: create shop title ui
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/GameScreen.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java index a223b10..047aff5 100644 --- a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java @@ -534,6 +534,7 @@ public class GameScreen implements Screen, InputProcessor { this.mainAtlas = this.game.assetManager.get("MainSpritesheet.atlas", TextureAtlas.class); createSavegameUI(); + createShopTitleUI(); } private void createSavegameUI() { @@ -571,6 +572,23 @@ public class GameScreen implements Screen, InputProcessor { this.stage.addActor(table); } + private void createShopTitleUI() { + Table table = new Table(this.skin); + table.setBackground("board"); + + table.setWidth(Math.percentFromValue(25f, Gdx.graphics.getWidth())); + table.setHeight(Math.percentFromValue(5f, Gdx.graphics.getHeight())); + table.setX(Gdx.graphics.getWidth() - table.getWidth()); + table.setY(Gdx.graphics.getHeight() - table.getHeight()); + table.align(Align.center); + table.pad(10f); + + Label label = new Label("Store", skin); + table.add(label); + + this.stage.addActor(table); + } + @Override public boolean keyUp(int keycode) { return false; |
