projects
/
wgj58.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
918a222
)
Fix notice text positioning
author
MegaBrutal
<code+git@megabrutal.com>
Tue, 2 Oct 2018 21:25:25 +0000
(23:25 +0200)
committer
MegaBrutal
<code+git@megabrutal.com>
Tue, 2 Oct 2018 21:25:25 +0000
(23:25 +0200)
modified: wgj58.js
wgj58.js
patch
|
blob
|
history
diff --git
a/wgj58.js
b/wgj58.js
index ff020d198ff8bf42da5df2d5ac1aa63d543f4dd2..6ec551c4b34c71cdb37dffb4dba47ad5754d2365 100644
(file)
--- 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.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();
this.add(this.text_notice);
this.clearNotice();