From 18ac5397dcb86e768dadb2029e3770f304b00662 Mon Sep 17 00:00:00 2001 From: James Diefenbach Date: Sat, 7 Sep 2024 18:22:03 +1000 Subject: [PATCH] add darker shiny for legacy UI --- src/ui/egg-list-ui-handler.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/egg-list-ui-handler.ts b/src/ui/egg-list-ui-handler.ts index c43822d3942..37cb43575ae 100644 --- a/src/ui/egg-list-ui-handler.ts +++ b/src/ui/egg-list-ui-handler.ts @@ -8,6 +8,7 @@ import { addWindow } from "./ui-theme"; import {Button} from "#enums/buttons"; import i18next from "i18next"; import { EggSourceType } from "#app/enums/egg-source-types.js"; +import { UiTheme } from "#app/enums/ui-theme.js"; const iconSize = 18; const numCols = 11; @@ -132,16 +133,18 @@ export default class EggListUiHandler extends MessageUiHandler { source.setScale(0.4); source.setPosition(x + 5, y + 1); } + // handle special cases (same species, legacy UI) + 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"); bg.setOrigin(0, 0); bg.setScale(0.65); bg.setVisible(true); this.eggSourceIconContainer.add(bg); + } else if (this.scene.uiTheme === UiTheme.LEGACY && egg.sourceType === EggSourceType.GACHA_SHINY) { + source.setTint(0x000000); } this.eggSourceIconContainer.add(source); - e++; }