summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/MainSpritesheet.skin4
-rw-r--r--core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java6
2 files changed, 6 insertions, 4 deletions
diff --git a/assets/MainSpritesheet.skin b/assets/MainSpritesheet.skin
index c859083..1defa49 100644
--- a/assets/MainSpritesheet.skin
+++ b/assets/MainSpritesheet.skin
@@ -62,7 +62,9 @@
header: { font: default, fontColor: yellow },
header_with_bg: { font: default, fontColor: yellow, background: fg }
subheader: { font: default, fontColor: white },
- subheader_with_bg: { font: default, fontColor: white, background: fg }
+ subheader_with_bg: { font: default, fontColor: white, background: fg },
+ item_title: { font: small, fontColor: yellow },
+ item_price: { font: small, fontColor: white }
},
com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: {
diff --git a/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java b/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java
index bca5b3b..bebd9ac 100644
--- a/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java
+++ b/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java
@@ -14,15 +14,15 @@ public class PurchaseItem extends Table {
super.setBackground("shop_item");
super.align(Align.left | Align.center);
- super.add(item.icon).size(81f).pad(6f);
+ super.add(item.icon).size(64f).pad(6f);
Table summary = new Table();
summary.align(Align.topLeft);
- Label name = new Label(item.name, skin, "subheader");
+ Label name = new Label(item.name, skin, "item_title");
name.setAlignment(Align.left);
- Label desc = new Label(String.format("%s SQP (%s/click)", MaxonConstants.DECIMAL_FORMAT.format(item.price), MaxonConstants.DECIMAL_FORMAT.format(item.multiplier)), skin);
+ Label desc = new Label(String.format("%s SQP (%s/click)", MaxonConstants.DECIMAL_FORMAT.format(item.price), MaxonConstants.DECIMAL_FORMAT.format(item.multiplier)), skin, "item_price");
desc.setAlignment(Align.left);
summary.add(name).width(desc.getWidth()).row();