diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-28 23:16:32 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-28 23:16:32 +0500 |
| commit | 62810e3d248a81ab6a4b6bc8b321ecd85d565a0c (patch) | |
| tree | dbd16ebc83c4e48f5e34becbc47ae5f32a9f1ffe | |
| parent | d1d599552a0253c2637cc270642564c2ec55b7db (diff) | |
upd: shop item background + shop ui background
| -rw-r--r-- | assets/MainSpritesheet.skin | 5 | ||||
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/game/shop/ShopUI.java | 4 | ||||
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/assets/MainSpritesheet.skin b/assets/MainSpritesheet.skin index 7306f2b..c859083 100644 --- a/assets/MainSpritesheet.skin +++ b/assets/MainSpritesheet.skin @@ -24,8 +24,9 @@ tile_04: { color: { hex: "#00ff00ff" }, name: tile }, tile_05: { color: { hex: "#222222ff" }, name: tile }, - board: { color: { hex: "#00000055" }, name: tile }, - shop_list: { color: {hex: "#dda300ff" }, name: tile }, + board: { color: { hex: "#ffa61bff" }, name: tile }, + shop_list: { color: {hex: "#e98e42ff" }, name: tile }, + shop_item: { color: {hex: "#ffa61bff" }, name: tile }, window: { color: { hex: "#00000055" }, name: bg }, fill_circle: { color: { hex: "#00ff00ff" }, name: circle } diff --git a/core/src/com/ilotterytea/maxoning/screens/game/shop/ShopUI.java b/core/src/com/ilotterytea/maxoning/screens/game/shop/ShopUI.java index fa52c01..313da56 100644 --- a/core/src/com/ilotterytea/maxoning/screens/game/shop/ShopUI.java +++ b/core/src/com/ilotterytea/maxoning/screens/game/shop/ShopUI.java @@ -145,7 +145,8 @@ public class ShopUI { } public void createShopListUI(final MaxonSavegame player) { - Table table = new Table(); + Table table = new Table(this.skin); + table.setBackground("shop_list"); for (final MaxonItem item : this.items) { int amount = (int) player.inv.stream().filter(c -> c == item.id).count(); @@ -161,6 +162,7 @@ public class ShopUI { scrollPane.setScrollingDisabled(true, false); Table scrollPaneTable = new Table(this.skin); + scrollPaneTable.setBackground("shop_list"); scrollPaneTable.pad(1f, 5f, 1f, 5f); scrollPaneTable.add(scrollPane).grow(); diff --git a/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java b/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java index 89fa46a..bca5b3b 100644 --- a/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java +++ b/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java @@ -11,7 +11,7 @@ public class PurchaseItem extends Table { MaxonItem item ) { super(skin); - super.setBackground("up"); + super.setBackground("shop_item"); super.align(Align.left | Align.center); super.add(item.icon).size(81f).pad(6f); |
