repo: janusweb action: commit revision: path_from: revision_from: 8c2db99c74ebc762e7e2c49993f516b30b1e7d2c: path_to: revision_to:
commit 8c2db99c74ebc762e7e2c49993f516b30b1e7d2c Author: bioidDate: Thu Mar 31 06:35:23 2016 +0000 add room_active and room_disable global events diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -34,6 +34,7 @@ elation.require([
this.setFog();
this.setNearFar();
this.setPlayerPosition();
+ elation.events.fire({type: 'room_active', data: this});
}
this.setPlayerPosition = function(pos, orientation) {
if (!pos) {
@@ -536,6 +537,7 @@ elation.require([
n.stop();
}
});
+ elation.events.fire({type: 'room_disable', data: this});
}
this.setTitle = function(title) {
if (!title) title = 'Untitled Page';
-----END OF PAGE-----