mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Add suggested changes to tera cursor
This commit is contained in:
parent
3fe3a5ee7e
commit
f5478e194d
BIN
public/images/ui/cursor_tera.png
Normal file
BIN
public/images/ui/cursor_tera.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
Binary file not shown.
Before Width: | Height: | Size: 262 B |
@ -101,7 +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("cursor_tera", "ui");
|
||||
this.loadImage("type_tera", "ui");
|
||||
this.loadAtlas("type_bgs", "ui");
|
||||
this.loadAtlas("button_tera", "ui");
|
||||
|
@ -15,7 +15,6 @@ 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";
|
||||
@ -228,11 +227,7 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
|
||||
|
||||
if (!this.cursorObj) {
|
||||
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 ? "cursor_tera" : "cursor");
|
||||
this.cursorObj.setScale(isTera ? 0.7 : 1);
|
||||
ui.add(this.cursorObj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user