From 0563c04aacd9c3b9cc39e23fc8762623d985cd79 Mon Sep 17 00:00:00 2001 From: MegaBrutal Date: Tue, 2 Oct 2018 23:25:25 +0200 Subject: [PATCH] Fix notice text positioning modified: wgj58.js --- wgj58.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wgj58.js b/wgj58.js index ff020d1..6ec551c 100644 --- a/wgj58.js +++ b/wgj58.js @@ -715,8 +715,7 @@ class GameInterface extends Phaser.Group { this.back_notice.drawRect(0, 0, game.width, 30); this.back_notice.endFill(); this.add(this.back_notice); - this.text_notice = new Phaser.Text(game, 0, this.back_notice.y, null, { align: 'left', fill: 'white', font: 'Ubuntu Mono', fontSize: 18, fontWeight: 'bold' }); - this.text_notice.anchor.setTo(-0.5, -0.2); + this.text_notice = new Phaser.Text(game, 125, this.back_notice.y + 5, null, { align: 'left', fill: 'white', font: 'Ubuntu Mono', fontSize: 18, fontWeight: 'bold' }); this.add(this.text_notice); this.clearNotice(); -- 2.34.1