[UI/UX] Adding more space in Egg Gacha for another languge (#5934)

This commit is contained in:
ShinigamiHolo 2025-06-06 22:45:12 +03:00 committed by GitHub
parent 178de207f1
commit 2a769e2733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,7 +206,17 @@ export default class EggGachaUiHandler extends MessageUiHandler {
this.eggGachaOptionsContainer = globalScene.add.container(globalScene.game.canvas.width / 6, 148);
this.eggGachaContainer.add(this.eggGachaOptionsContainer);
this.eggGachaOptionSelectBg = addWindow(0, 0, 96, 16 + 576 * this.scale);
// Increase egg box width on certain languages
let eggGachaOptionSelectWidth = 0;
switch (i18next.resolvedLanguage) {
case "ru":
eggGachaOptionSelectWidth = 100;
break;
default:
eggGachaOptionSelectWidth = 96;
}
this.eggGachaOptionSelectBg = addWindow(0, 0, eggGachaOptionSelectWidth, 16 + 576 * this.scale);
this.eggGachaOptionSelectBg.setOrigin(1, 1);
this.eggGachaOptionsContainer.add(this.eggGachaOptionSelectBg);