From 01cbb6d0cfd0d58c5144bf746ec2a7ddd3beb6c3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 28 Apr 2024 13:11:54 +0500 Subject: feat: create shop title ui --- .../com/ilotterytea/maxoning/screens/GameScreen.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'core/src/com/ilotterytea') 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; -- cgit v1.2.3