mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Remove unused shown variable
This commit is contained in:
parent
165c5fa7bc
commit
210df1ceb9
@ -10,8 +10,6 @@ export default class AbilityBar extends Phaser.GameObjects.Container {
|
|||||||
private bg: Phaser.GameObjects.Image;
|
private bg: Phaser.GameObjects.Image;
|
||||||
private abilityBarText: Phaser.GameObjects.Text;
|
private abilityBarText: Phaser.GameObjects.Text;
|
||||||
|
|
||||||
public shown: boolean;
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super(globalScene, hiddenX, baseY);
|
super(globalScene, hiddenX, baseY);
|
||||||
}
|
}
|
||||||
@ -30,12 +28,6 @@ export default class AbilityBar extends Phaser.GameObjects.Container {
|
|||||||
this.setVisible(false);
|
this.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
override setVisible(shown: boolean): this {
|
|
||||||
this.shown = shown;
|
|
||||||
super.setVisible(shown);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
startTween(config: any, text?: string): Promise<void> {
|
startTween(config: any, text?: string): Promise<void> {
|
||||||
this.setVisible(true);
|
this.setVisible(true);
|
||||||
if (text) {
|
if (text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user