diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-28 23:22:33 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-28 23:22:33 +0500 |
| commit | 3ebbd9a281765065201c438d58bb23d3bdb60b4d (patch) | |
| tree | cd4461a13fd53a5fd050278ed802f4d584f829ca | |
| parent | 62810e3d248a81ab6a4b6bc8b321ecd85d565a0c (diff) | |
upd: shop item style
| -rw-r--r-- | assets/MainSpritesheet.skin | 4 | ||||
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java | 6 |
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(); |
