mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Add darkened Tera icon for Legacy UI
This commit is contained in:
parent
c683e114e2
commit
80ec69a05b
BIN
public/images/ui/icon_tera_dark.png
Normal file
BIN
public/images/ui/icon_tera_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 262 B |
BIN
public/images/ui/legacy/icon_tera_dark.png
Normal file
BIN
public/images/ui/legacy/icon_tera_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 262 B |
@ -101,6 +101,7 @@ export class LoadingScene extends SceneBase {
|
|||||||
this.loadImage("icon_lock", "ui", "icon_lock.png");
|
this.loadImage("icon_lock", "ui", "icon_lock.png");
|
||||||
this.loadImage("icon_stop", "ui", "icon_stop.png");
|
this.loadImage("icon_stop", "ui", "icon_stop.png");
|
||||||
this.loadImage("icon_tera", "ui");
|
this.loadImage("icon_tera", "ui");
|
||||||
|
this.loadImage("icon_tera_dark", "ui");
|
||||||
this.loadImage("type_tera", "ui");
|
this.loadImage("type_tera", "ui");
|
||||||
this.loadAtlas("type_bgs", "ui");
|
this.loadAtlas("type_bgs", "ui");
|
||||||
this.loadAtlas("button_tera", "ui");
|
this.loadAtlas("button_tera", "ui");
|
||||||
|
@ -15,6 +15,7 @@ import type Pokemon from "#app/field/pokemon";
|
|||||||
import type { CommandPhase } from "#app/phases/command-phase";
|
import type { CommandPhase } from "#app/phases/command-phase";
|
||||||
import MoveInfoOverlay from "./move-info-overlay";
|
import MoveInfoOverlay from "./move-info-overlay";
|
||||||
import { BattleType } from "#app/battle";
|
import { BattleType } from "#app/battle";
|
||||||
|
import { UiTheme } from "#enums/ui-theme";
|
||||||
|
|
||||||
export default class FightUiHandler extends UiHandler implements InfoToggle {
|
export default class FightUiHandler extends UiHandler implements InfoToggle {
|
||||||
public static readonly MOVES_CONTAINER_NAME = "moves";
|
public static readonly MOVES_CONTAINER_NAME = "moves";
|
||||||
@ -227,7 +228,11 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
|
|||||||
|
|
||||||
if (!this.cursorObj) {
|
if (!this.cursorObj) {
|
||||||
const isTera = this.fromCommand === Command.TERA;
|
const isTera = this.fromCommand === Command.TERA;
|
||||||
|
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 = globalScene.add.image(0, 0, isTera ? "icon_tera" : "cursor");
|
||||||
|
}
|
||||||
this.cursorObj.setScale(isTera ? 0.7 : 1);
|
this.cursorObj.setScale(isTera ? 0.7 : 1);
|
||||||
ui.add(this.cursorObj);
|
ui.add(this.cursorObj);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user