Add: Fullscreen button to login
This commit is contained in:
@@ -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();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user