Add debugging user interface

This commit is contained in:
LoveEevee
2018-10-14 21:08:05 +03:00
parent e2de2ff821
commit 04473acb74
10 changed files with 334 additions and 1 deletions

View File

@@ -38,6 +38,12 @@ class Controller{
syncWith.startDate = this.game.startDate
this.syncWith = syncWith
}
if(this.multiplayer !== 2){
debugObj.controller = this
if(debugObj.debug){
debugObj.debug.updateStatus()
}
}
}
loadUIEvents(){
this.pauseMenu = document.getElementById("pause-menu")
@@ -217,5 +223,12 @@ class Controller{
delete this.restartBtn
pageEvents.remove(this.songSelBtn, ["click", "touchend"])
delete this.songSelBtn
if(this.multiplayer !== 2){
debugObj.controller = null
if(debugObj.debug){
debugObj.debug.updateStatus()
}
}
}
}