Fix: refactoring appButton

This commit is contained in:
2018-06-02 22:12:19 +09:00
parent 73bdb38c56
commit e3bcd3bb12
13 changed files with 216 additions and 37 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ class FullscreenButton {
"#333"
);
let button = new RoundRectButton(setting, "", () => this.clickEvent());
let button = new RoundRectButton(
setting, RoundRectButton.NONE_ICON, RoundRectButton.NONE_BUTTON_TEXT,
() => this.clickEvent()
);
button.move(this.game.world.width - 30, 30);
let icon_fullscreen = game.add.sprite(0, 0, 'icon_fullscreen');