Add darkened Tera icon for Legacy UI

This commit is contained in:
Madmadness65 2025-02-26 18:58:11 -06:00
parent c683e114e2
commit 80ec69a05b
4 changed files with 7 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

View File

@ -101,6 +101,7 @@ export class LoadingScene extends SceneBase {
this.loadImage("icon_lock", "ui", "icon_lock.png");
this.loadImage("icon_stop", "ui", "icon_stop.png");
this.loadImage("icon_tera", "ui");
this.loadImage("icon_tera_dark", "ui");
this.loadImage("type_tera", "ui");
this.loadAtlas("type_bgs", "ui");
this.loadAtlas("button_tera", "ui");

View File

@ -15,6 +15,7 @@ import type Pokemon from "#app/field/pokemon";
import type { CommandPhase } from "#app/phases/command-phase";
import MoveInfoOverlay from "./move-info-overlay";
import { BattleType } from "#app/battle";
import { UiTheme } from "#enums/ui-theme";
export default class FightUiHandler extends UiHandler implements InfoToggle {
public static readonly MOVES_CONTAINER_NAME = "moves";
@ -227,7 +228,11 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
if (!this.cursorObj) {
const isTera = this.fromCommand === Command.TERA;
this.cursorObj = globalScene.add.image(0, 0, isTera ? "icon_tera" : "cursor");
if (globalScene.uiTheme === UiTheme.LEGACY) {
this.cursorObj = globalScene.add.image(0, 0, isTera ? "icon_tera_dark" : "cursor");
} else {
this.cursorObj = globalScene.add.image(0, 0, isTera ? "icon_tera" : "cursor");
}
this.cursorObj.setScale(isTera ? 0.7 : 1);
ui.add(this.cursorObj);
}