summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/MainSpritesheet.skin12
-rw-r--r--core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java12
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() {