[UI] Make fight cursor tera icon while tera-ing (#5402)
Co-authored-by: damocleas <damocleas25@gmail.com> Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
This commit is contained in:
parent
922a17048c
commit
9ff20af8b7
Binary file not shown.
After Width: | Height: | Size: 253 B |
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("cursor_tera", "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");
|
||||||
|
|
|
@ -226,7 +226,9 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.cursorObj) {
|
if (!this.cursorObj) {
|
||||||
this.cursorObj = globalScene.add.image(0, 0, "cursor");
|
const isTera = this.fromCommand === Command.TERA;
|
||||||
|
this.cursorObj = globalScene.add.image(0, 0, isTera ? "cursor_tera" : "cursor");
|
||||||
|
this.cursorObj.setScale(isTera ? 0.7 : 1);
|
||||||
ui.add(this.cursorObj);
|
ui.add(this.cursorObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue