Press Start 2P font on buttons
This commit is contained in:
parent
fcf8659829
commit
f755e68327
@ -28,7 +28,13 @@ export class Button extends Phaser.GameObjects.Container {
|
|||||||
this.config = config;
|
this.config = config;
|
||||||
|
|
||||||
this.background = this.scene.add.graphics();
|
this.background = this.scene.add.graphics();
|
||||||
this.text = this.scene.add.text(0, 0, "", { color: "0x000000" }).setOrigin(0.5);
|
this.text = this.scene.add
|
||||||
|
.text(0, 0, "", {
|
||||||
|
color: "0x000000",
|
||||||
|
fontFamily: '"Press Start 2P"',
|
||||||
|
fontSize: "9px",
|
||||||
|
})
|
||||||
|
.setOrigin(0.5, 0.45);
|
||||||
this.drawBackground(this.config.idle);
|
this.drawBackground(this.config.idle);
|
||||||
|
|
||||||
this.add([this.background, this.text]);
|
this.add([this.background, this.text]);
|
||||||
|
Loading…
Reference in New Issue
Block a user