Next and Prev buttons for Corax and Lorgar, debugging
This commit is contained in:
parent
7fdcb657a4
commit
baa6f4ef23
14 changed files with 394 additions and 72 deletions
|
@ -142,6 +142,9 @@
|
|||
|
||||
this._emptyHelper = new LocalModel();
|
||||
|
||||
this._gc.on("serviceMessage", this._onServiceMessage, this);
|
||||
this._ps.on("serviceMessage", this._onServiceMessage, this);
|
||||
|
||||
this._gc.on("themeSelected", this.setTheme, this);
|
||||
this._ps.on("pageName", this._onPageName, this);
|
||||
},
|
||||
|
@ -175,6 +178,24 @@
|
|||
address: this._currentPageCtl.getPairAddress().toArray()
|
||||
}, "", name);
|
||||
},
|
||||
"_onServiceMessage": function(text, severity) {
|
||||
var fn;
|
||||
|
||||
switch (severity) {
|
||||
case 2:
|
||||
fn = console.error;
|
||||
break;
|
||||
case 1:
|
||||
fn = console.warn;
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
fn = console.info;
|
||||
break;
|
||||
}
|
||||
|
||||
fn(text);
|
||||
},
|
||||
"_onSocketConnected": function(name) {
|
||||
console.log(name + " socket connected");
|
||||
var node = this._nodes[name];
|
||||
|
@ -301,6 +322,8 @@
|
|||
this._playerCtl.register(this.dispatcher, this._nodes["Corax"].socket);
|
||||
this._playerCtl.subscribe();
|
||||
this._mainLayout.appendPlayer(this._playerCtl);
|
||||
|
||||
this._playerCtl.on("serviceMessage", this._onServiceMessage, this);
|
||||
},
|
||||
"setTheme": function(theme) {
|
||||
View.setTheme(theme);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue