Fix: restructing session manager, ES6 -> ES5
This commit is contained in:
@@ -1,29 +1,22 @@
|
||||
/////////////////////////////
|
||||
// Screen top ui
|
||||
function ScreenTopUI() {
|
||||
this.drawBG();
|
||||
}
|
||||
|
||||
class ScreenTopUI {
|
||||
ScreenTopUI.prototype.drawBG = function() {
|
||||
game.add.graphics()
|
||||
.beginFill(0x303030, 1)
|
||||
.drawRect(
|
||||
0, 0,
|
||||
game.world.width, ScreenTopUI.BG_HEIGHT
|
||||
);
|
||||
}
|
||||
|
||||
constructor() {
|
||||
this.drawBG();
|
||||
}
|
||||
|
||||
drawBG() {
|
||||
game.add.graphics()
|
||||
.beginFill(0x303030, 1)
|
||||
.drawRect(
|
||||
0, 0,
|
||||
game.world.width, ScreenTopUI.BG_HEIGHT
|
||||
);
|
||||
}
|
||||
|
||||
makeBackButton(eventHandler) {
|
||||
this.backButton = new BackButton(eventHandler);
|
||||
}
|
||||
|
||||
makeFullScreenButton() {
|
||||
// this.fullscreenButton = new FullscreenButton();
|
||||
}
|
||||
ScreenTopUI.prototype.makeBackButton = function(eventHandler) {
|
||||
this.backButton = new BackButton(eventHandler);
|
||||
}
|
||||
|
||||
ScreenTopUI.prototype.makeFullScreenButton = function() {
|
||||
// this.fullscreenButton = new FullscreenButton();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user