Fix ability popup text placement
parent
1f4eb42ea8
commit
9e288e06c8
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue