From 3ffac8617f06efd20d0c5ac73979e28857ff0ef5 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 10 Nov 2024 01:29:00 +0500 Subject: fix: multiplier button size --- core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 7287cad..8189eb7 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java @@ -208,16 +208,18 @@ public class ShopUI { controlTable.add(modeTable).padRight(5f).grow(); + float size = OsUtils.isMobile ? 100f : 64f; + // Multiplier changer Table multiplierTable = new Table(); multiplierTable.align(Align.left); TextButton x1Button = new TextButton(MaxonGame.getInstance().getLocale().getLine(LineId.StoreX1), this.skin, styleName); x1Button.setDisabled(true); - multiplierTable.add(x1Button).width(64f).height(64f).padRight(10f); + multiplierTable.add(x1Button).width(size).height(size).padRight(10f); TextButton x10Button = new TextButton(MaxonGame.getInstance().getLocale().getLine(LineId.StoreX10), this.skin, styleName); - multiplierTable.add(x10Button).width(64f).height(64f); + multiplierTable.add(x10Button).width(size).height(size); x1Button.addListener(new ClickListener() { @Override -- cgit v1.2.3