Add: Fullscreen button to login
This commit is contained in:
@@ -5,6 +5,10 @@ let Login = {
|
||||
|
||||
self: {},
|
||||
|
||||
preload: function() {
|
||||
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||
},
|
||||
|
||||
create: function() {
|
||||
self = this;
|
||||
|
||||
@@ -15,6 +19,8 @@ let Login = {
|
||||
// phaser.alpha = 0.1;
|
||||
// game.stage.backgroundColor = '#4d4d4d';
|
||||
|
||||
let fullscreenButton = new FullscreenButton(this.game);
|
||||
|
||||
this.makeInputTypeTexts();
|
||||
this.makeButton();
|
||||
},
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
<!-- library source files -->
|
||||
<script src="../../game/lib/input_type_text.js"></script>
|
||||
<script src="../../game/lib/round_rect_button.js"></script>
|
||||
<script src="../../game/lib/fullscreen_button.js"></script>
|
||||
|
||||
<!-- source files -->
|
||||
<script src="../../game/login/login.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user