-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: janusweb action: commit revision: path_from: revision_from: 4267db054e7d856dabeb779c798d07dd5dc6cfda: path_to: revision_to:
commit 4267db054e7d856dabeb779c798d07dd5dc6cfda Author: James Baicoianu <james_github@baicoianu.com> Date: Wed Jan 31 23:27:01 2018 -0800 partymode player settings diff --git a/scripts/janusplayer.js b/scripts/janusplayer.js
--- a/scripts/janusplayer.js +++ b/scripts/janusplayer.js @@ -14,7 +14,8 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt room: {type: 'object' }, cursor_visible: {type: 'boolean', default: true, set: this.toggleCursorVisibility}, usevoip: {type: 'boolean', default: false }, - collision_radius: {type: 'float', default: .25, set: this.updateCollider} + collision_radius: {type: 'float', default: .25, set: this.updateCollider}, + party_mode: { type: 'boolean', set: this.updatePartyMode } }); var controllerconfig = this.getSetting('controls.settings'); @@ -103,6 +104,7 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt }; this.updateVRButton(); + this.party_mode = this.getSetting('partymode.enabled', true); } this.createChildren = function() { elation.engine.things.janusplayer.extendclass.createChildren.call(this); @@ -761,5 +763,10 @@ elation.require(['engine.things.player', 'janusweb.external.JanusVOIP', 'ui.butt this.controlstate.turn_right = 0; this.controlstate.look_down = 0; } + this.updatePartyMode = function(key, value) { + if (typeof value != 'undefined') { + this.setSetting('partymode.enabled', value); + } + } }, elation.engine.things.player); });
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 16:07:16 2024