mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 07:12:32 +02:00
add darker shiny for legacy UI
This commit is contained in:
parent
da6d6be92e
commit
18ac5397dc
@ -8,6 +8,7 @@ import { addWindow } from "./ui-theme";
|
|||||||
import {Button} from "#enums/buttons";
|
import {Button} from "#enums/buttons";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { EggSourceType } from "#app/enums/egg-source-types.js";
|
import { EggSourceType } from "#app/enums/egg-source-types.js";
|
||||||
|
import { UiTheme } from "#app/enums/ui-theme.js";
|
||||||
|
|
||||||
const iconSize = 18;
|
const iconSize = 18;
|
||||||
const numCols = 11;
|
const numCols = 11;
|
||||||
@ -132,16 +133,18 @@ export default class EggListUiHandler extends MessageUiHandler {
|
|||||||
source.setScale(0.4);
|
source.setScale(0.4);
|
||||||
source.setPosition(x + 5, y + 1);
|
source.setPosition(x + 5, y + 1);
|
||||||
}
|
}
|
||||||
|
// handle special cases (same species, legacy UI)
|
||||||
|
|
||||||
if (egg.sourceType === EggSourceType.SAME_SPECIES_EGG) {
|
if (egg.sourceType === EggSourceType.SAME_SPECIES_EGG) {
|
||||||
// add background to differentiate same species from legendary gacha
|
|
||||||
const bg = this.scene.add.image(x+8, y+3, "passive_bg");
|
const bg = this.scene.add.image(x+8, y+3, "passive_bg");
|
||||||
bg.setOrigin(0, 0);
|
bg.setOrigin(0, 0);
|
||||||
bg.setScale(0.65);
|
bg.setScale(0.65);
|
||||||
bg.setVisible(true);
|
bg.setVisible(true);
|
||||||
this.eggSourceIconContainer.add(bg);
|
this.eggSourceIconContainer.add(bg);
|
||||||
|
} else if (this.scene.uiTheme === UiTheme.LEGACY && egg.sourceType === EggSourceType.GACHA_SHINY) {
|
||||||
|
source.setTint(0x000000);
|
||||||
}
|
}
|
||||||
this.eggSourceIconContainer.add(source);
|
this.eggSourceIconContainer.add(source);
|
||||||
|
|
||||||
e++;
|
e++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user