From e0c0d9b2383689d5e0aab49306ce71d2f60a1906 Mon Sep 17 00:00:00 2001 From: Shinigami Holo Date: Thu, 5 Jun 2025 00:05:17 +0300 Subject: [PATCH] more space for languges that need that --- src/ui/egg-gacha-ui-handler.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 1bb7124d935..7d8be14d12d 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -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 EGOS_width = 0; + switch (i18next.resolvedLanguage) { + case "ru": + EGOS_width = 100; + break; + default: + EGOS_width = 96; + } + + this.eggGachaOptionSelectBg = addWindow(0, 0, EGOS_width, 16 + 576 * this.scale); this.eggGachaOptionSelectBg.setOrigin(1, 1); this.eggGachaOptionsContainer.add(this.eggGachaOptionSelectBg);