Fix name positioning problem in dialogues
authorMegaBrutal <code+git@megabrutal.com>
Sat, 15 Sep 2018 23:40:00 +0000 (01:40 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Sat, 15 Sep 2018 23:40:00 +0000 (01:40 +0200)
modified:   wgj58.js

wgj58.js

index 0726f07..f14b637 100644 (file)
--- a/wgj58.js
+++ b/wgj58.js
@@ -539,13 +539,13 @@ class GameInterface extends Phaser.Group {
                this.back_talk.lineTo(this.back_talk.width - 10, 35);
                this.add(this.back_talk);
                style = { align: 'left', fill: 'yellow', font: 'Ubuntu Mono', fontSize: 22, fontWeight: 'bold' };
-               this.text_talktitle = new Phaser.Text(game, this.back_talk.x, this.back_talk.y, null, style);
-               this.text_talktitle.anchor.setTo(-0.2, -0.2);
+               this.text_talktitle = new Phaser.Text(game, this.back_talk.x + 15, this.back_talk.y + 6, null, style);
+               //this.text_talktitle.anchor.setTo(-0.2, -0.2);
                this.add(this.text_talktitle);
                this.strikethrough_talktitle = new Phaser.Graphics(game, this.back_talk.x, this.back_talk.y);
                this.strikethrough_talktitle.lineStyle(3, Phaser.Color.RED, 1);
-               this.strikethrough_talktitle.moveTo(20, 20);
-               this.strikethrough_talktitle.lineTo(75, 20);
+               this.strikethrough_talktitle.moveTo(12, 20);
+               this.strikethrough_talktitle.lineTo(67, 20);
                this.add(this.strikethrough_talktitle);
                style = { align: 'left', fill: 'white', font: 'Ubuntu Mono', fontSize: 18, fontWeight: 'bold' };
                this.text_talk = new Phaser.Text(game, this.back_talk.x + 35, this.back_talk.y + 40, null, style);