Fix ability popup text placement

This commit is contained in:
Flashfyre 2024-04-01 21:52:40 -04:00
parent 1f4eb42ea8
commit 9e288e06c8
1 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ export default class AbilityBar extends Phaser.GameObjects.Container {
this.add(this.bg); this.add(this.bg);
this.pokemonNameText = addTextObject(this.scene, 5, 3, '', TextStyle.MESSAGE, { fontSize: '72px' }); this.pokemonNameText = addTextObject(this.scene, 15, 3, '', TextStyle.MESSAGE, { fontSize: '72px' });
this.pokemonNameText.setOrigin(0, 0); this.pokemonNameText.setOrigin(0, 0);
this.add(this.pokemonNameText); this.add(this.pokemonNameText);
this.abilityNameText = addTextObject(this.scene, 87, 16, '', TextStyle.WINDOW, { fontSize: '72px' }); this.abilityNameText = addTextObject(this.scene, 97, 16, '', TextStyle.WINDOW, { fontSize: '72px' });
this.abilityNameText.setOrigin(1, 0); this.abilityNameText.setOrigin(1, 0);
this.add(this.abilityNameText); this.add(this.abilityNameText);