Add: Fullscreen button to login

This commit is contained in:
2018-05-08 19:09:21 +09:00
parent 49ac6dacb3
commit 5cecf98858
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -5,6 +5,10 @@ let Login = {
self: {}, self: {},
preload: function() {
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
},
create: function() { create: function() {
self = this; self = this;
@@ -15,6 +19,8 @@ let Login = {
// phaser.alpha = 0.1; // phaser.alpha = 0.1;
// game.stage.backgroundColor = '#4d4d4d'; // game.stage.backgroundColor = '#4d4d4d';
let fullscreenButton = new FullscreenButton(this.game);
this.makeInputTypeTexts(); this.makeInputTypeTexts();
this.makeButton(); this.makeButton();
}, },
+1
View File
@@ -14,6 +14,7 @@
<!-- library source files --> <!-- library source files -->
<script src="../../game/lib/input_type_text.js"></script> <script src="../../game/lib/input_type_text.js"></script>
<script src="../../game/lib/round_rect_button.js"></script> <script src="../../game/lib/round_rect_button.js"></script>
<script src="../../game/lib/fullscreen_button.js"></script>
<!-- source files --> <!-- source files -->
<script src="../../game/login/login.js"></script> <script src="../../game/login/login.js"></script>