mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 09:02:47 +02:00
[UI/UX] Adding more space in Egg Gacha for another languge (#5934)
This commit is contained in:
parent
178de207f1
commit
2a769e2733
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user