Score support

This commit is contained in:
Geoffrey Frogeye 2015-06-05 23:54:54 +02:00
parent e615516aee
commit adf046987c
2 changed files with 5 additions and 1 deletions

2
client

@ -1 +1 @@
Subproject commit c1a834d8e66193eb6bc60951dc784ea9ca20906b
Subproject commit 6b0ac699fc4cc97f8815397d82c9d1db99949bde

View file

@ -273,6 +273,10 @@ function Controller(client) {
this.cellgui.add(this, 'nick');
this.cellgui.add(this, 'spawn');
this.cellgui.add(this, 'autoRespawn');
var scoreGui = this.cellgui.add(this.client, 'score').listen();
this.client.on('scoreUpdate', function() {
scoreGui.updateDisplay();
});
this.leadergui = this.gui.addFolder('Leaderboard');
this.leaders = {};