workadventure/front/src/Phaser/Components/TextField.ts

7 lines
283 B
TypeScript
Raw Normal View History

export class TextField extends Phaser.GameObjects.Text {
constructor(scene: Phaser.Scene, x: number, y: number, text: string | string[]) {
2020-04-26 18:48:41 +02:00
super(scene, x, y, text, { fontFamily: 'Arial', fontSize: "20px", color: '#ffffff'});
this.scene.add.existing(this)
}
}