diff options
| author | ilotterytea <iltsu@alright.party> | 2024-06-01 16:25:44 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-06-01 16:25:44 +0500 |
| commit | 8553e5a7e09df8a593af512b0f3455bef534a4dd (patch) | |
| tree | 23b5d1a99354ff0f6a9f03295743a33ac1310d10 | |
| parent | 5b1cccb0c72b7d38c25f2e5e6873f06a3e0a67a0 (diff) | |
upd: store title
| -rw-r--r-- | assets/MainSpritesheet.skin | 12 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java | 12 |
2 files changed, 16 insertions, 8 deletions
diff --git a/assets/MainSpritesheet.skin b/assets/MainSpritesheet.skin index 82b719f..973c850 100644 --- a/assets/MainSpritesheet.skin +++ b/assets/MainSpritesheet.skin @@ -45,6 +45,11 @@ scaledSize: 16 }, + store_title: { + file: fnt/FontText.fnt, + scaledSize: 24 + }, + pixeled: { file: fnt/MaxonMercutio.fnt, scaledSize: 23 @@ -67,7 +72,12 @@ subheader: { font: default, fontColor: white }, subheader_with_bg: { font: default, fontColor: white, background: fg }, item_title: { font: small, fontColor: yellow }, - item_price: { font: small, fontColor: white } + item_price: { font: small, fontColor: white }, + + store_title: { + font: store_title, + fontColor: white + } }, com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: { diff --git a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java index 0282ea6..cf40ebf 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java @@ -81,15 +81,13 @@ public class ShopUI { } public void createShopTitleUI() { - Table table = new Table(this.skin); + Table table = new Table(); - table.align(Align.center); - table.pad(10f); + Label label = new Label("Store", skin, "store_title"); + label.setAlignment(Align.center); + table.add(label).padTop(10f).grow(); - Label label = new Label("Store", skin); - table.add(label); - - this.table.add(table).grow().row(); + this.table.add(table).growX().row(); } public void createShopControlUI() { |
