summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-25 12:25:44 +0500
committerilotterytea <iltsu@alright.party>2024-10-25 12:25:44 +0500
commite5b990f11190821239a0df3b14d8d5f65541f876 (patch)
tree76dd448dd2ce6fa1e972a6d386021e9c42232520
parent354e2876e93bf45ca6b748e9eb23093fe9bffaa6 (diff)
upd: localization lines for store
-rw-r--r--assets/i18n/en_us.json7
-rw-r--r--assets/i18n/ru_ru.json9
-rw-r--r--core/src/kz/ilotterytea/maxon/localization/LineId.java7
-rw-r--r--core/src/kz/ilotterytea/maxon/pets/PetWidget.java4
-rw-r--r--core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java11
5 files changed, 31 insertions, 7 deletions
diff --git a/assets/i18n/en_us.json b/assets/i18n/en_us.json
index 838d2e6..95f396d 100644
--- a/assets/i18n/en_us.json
+++ b/assets/i18n/en_us.json
@@ -12,6 +12,13 @@
"minigame.slots.spin_button": "SPIN",
"minigame.slots.exit_button": " X ",
+ "store.title": "Store",
+ "store.buy": "Buy",
+ "store.sell": "Sell",
+ "store.x1": "1x",
+ "store.x10": "10x",
+ "store.pet_locked": "Pet Maxon more to unlock it...",
+
"pet.bror.name": "The Suspicious and Sleepy Bro",
"pet.bror.desc": "A falling asleep Bror will help you to pet Maxon almost to besvimers",
diff --git a/assets/i18n/ru_ru.json b/assets/i18n/ru_ru.json
index 2289900..146eb21 100644
--- a/assets/i18n/ru_ru.json
+++ b/assets/i18n/ru_ru.json
@@ -4,13 +4,20 @@
"menu.continue": "ПРОДОЛЖИТЬ",
"menu.reset": "СБРОСИТЬ",
+ "giftbox.open": "Ты получил",
+
"minigame.slots.nothing": "ТЫ НИЧЕГО НЕ ВЫИГРАЛ",
"minigame.slots.prize": "ТЫ ВЫИГРАЛ %s P$",
"minigame.slots.bet": "СТАВКА",
"minigame.slots.spin_button": "КРУТАНУТЬ",
"minigame.slots.exit_button": " X ",
- "giftbox.open": "Ты получил",
+ "store.title": "Магазин",
+ "store.buy": "Купить",
+ "store.sell": "Продать",
+ "store.x1": "1x",
+ "store.x10": "10x",
+ "store.pet_locked": "Гладь Махона больше, чтобы открыть...",
"pet.bror.name": "Cонный Брор",
"pet.bror.desc": "Засыпающий Брор поможет тебе гладить Максона практически до потери сознания.",
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() {