diff options
| author | ilotterytea <iltsu@alright.party> | 2024-10-25 12:25:44 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-10-25 12:25:44 +0500 |
| commit | e5b990f11190821239a0df3b14d8d5f65541f876 (patch) | |
| tree | 76dd448dd2ce6fa1e972a6d386021e9c42232520 /core | |
| parent | 354e2876e93bf45ca6b748e9eb23093fe9bffaa6 (diff) | |
upd: localization lines for store
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/localization/LineId.java | 7 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/pets/PetWidget.java | 4 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java | 11 |
3 files changed, 16 insertions, 6 deletions
diff --git a/core/src/kz/ilotterytea/maxon/localization/LineId.java b/core/src/kz/ilotterytea/maxon/localization/LineId.java index 3fe2203..b38eca7 100644 --- a/core/src/kz/ilotterytea/maxon/localization/LineId.java +++ b/core/src/kz/ilotterytea/maxon/localization/LineId.java @@ -18,6 +18,13 @@ public enum LineId { MinigameSlotsNothing, MinigameSlotsPrize, + StoreTitle, + StoreBuy, + StoreSell, + StoreX1, + StoreX10, + StorePetlocked, + PetBrorName, PetBrorDesc, PetSandwichName, diff --git a/core/src/kz/ilotterytea/maxon/pets/PetWidget.java b/core/src/kz/ilotterytea/maxon/pets/PetWidget.java index 54b937b..399a72d 100644 --- a/core/src/kz/ilotterytea/maxon/pets/PetWidget.java +++ b/core/src/kz/ilotterytea/maxon/pets/PetWidget.java @@ -9,6 +9,8 @@ import com.badlogic.gdx.scenes.scene2d.ui.*; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import com.badlogic.gdx.utils.Align; import kz.ilotterytea.maxon.MaxonConstants; +import kz.ilotterytea.maxon.MaxonGame; +import kz.ilotterytea.maxon.localization.LineId; import kz.ilotterytea.maxon.utils.OsUtils; import kz.ilotterytea.maxon.utils.formatters.NumberFormatter; @@ -136,7 +138,7 @@ public class PetWidget extends Table { if (isLocked) { color = Color.BLACK; name = "???"; - nameTooltipText = "Pet Maxon more to unlock it..."; + nameTooltipText = MaxonGame.getInstance().getLocale().getLine(LineId.StorePetlocked); this.priceLabel.setText("???"); this.priceLabel.clearListeners(); 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 fb0ebfd..13921a6 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java @@ -9,6 +9,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.*; import com.badlogic.gdx.scenes.scene2d.utils.ClickListener; import com.badlogic.gdx.utils.Align; import kz.ilotterytea.maxon.MaxonGame; +import kz.ilotterytea.maxon.localization.LineId; import kz.ilotterytea.maxon.pets.Pet; import kz.ilotterytea.maxon.pets.PetWidget; import kz.ilotterytea.maxon.player.Savegame; @@ -119,7 +120,7 @@ public class ShopUI { Table titleTable = new Table(skin); titleTable.setBackground("store_control"); - Label label = new Label("Store", skin, styleName); + Label label = new Label(MaxonGame.getInstance().getLocale().getLine(LineId.StoreTitle), skin, styleName); label.setAlignment(Align.center); titleTable.add(label).pad(10f).grow(); @@ -157,11 +158,11 @@ public class ShopUI { // Mode changer Table modeTable = new Table(); - TextButton buyButton = new TextButton("Buy", this.skin, styleName); + TextButton buyButton = new TextButton(MaxonGame.getInstance().getLocale().getLine(LineId.StoreBuy), this.skin, styleName); buyButton.setDisabled(true); modeTable.add(buyButton).padBottom(5f).growX().row(); - TextButton sellButton = new TextButton("Sell", this.skin, styleName); + TextButton sellButton = new TextButton(MaxonGame.getInstance().getLocale().getLine(LineId.StoreSell), this.skin, styleName); modeTable.add(sellButton).growX(); sellButton.addListener(new ClickListener() { @@ -198,11 +199,11 @@ public class ShopUI { Table multiplierTable = new Table(); multiplierTable.align(Align.left); - TextButton x1Button = new TextButton("1x", this.skin, styleName); + 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); - TextButton x10Button = new TextButton("10x", this.skin, styleName); + TextButton x10Button = new TextButton(MaxonGame.getInstance().getLocale().getLine(LineId.StoreX10), this.skin, styleName); multiplierTable.add(x10Button).width(64f).height(64f); x1Button.addListener(new ClickListener() { |
