mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Add types to fight-ui-handler#show
This commit is contained in:
parent
c8af9186f0
commit
7022b8501b
@ -123,11 +123,11 @@ export default class FightUiHandler extends UiHandler implements InfoToggle {
|
|||||||
globalScene.addInfoToggle(this);
|
globalScene.addInfoToggle(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
show(args: any[]): boolean {
|
override show(args: [number?, Command?]): boolean {
|
||||||
super.show(args);
|
super.show(args);
|
||||||
|
|
||||||
this.fieldIndex = args.length ? (args[0] as number) : 0;
|
this.fieldIndex = args[0] ?? 0;
|
||||||
this.fromCommand = args.length > 1 ? (args[1] as Command) : Command.FIGHT;
|
this.fromCommand = args[1] ?? Command.FIGHT;
|
||||||
|
|
||||||
const messageHandler = this.getUi().getMessageHandler();
|
const messageHandler = this.getUi().getMessageHandler();
|
||||||
messageHandler.bg.setVisible(false);
|
messageHandler.bg.setVisible(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user