-- 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: acff0f4e30fb132493bf583f11d48654e9d7bc83: path_to: revision_to:
commit acff0f4e30fb132493bf583f11d48654e9d7bc83 Author: James Baicoianu <james_github@baicoianu.com> Date: Sun Dec 24 04:26:34 2017 -0800 Added avatar_src attribute diff --git a/scripts/janusghost.js b/scripts/janusghost.js
--- a/scripts/janusghost.js +++ b/scripts/janusghost.js @@ -5,6 +5,7 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() { this.defineProperties({ ghost_id: { type: 'string' }, ghost_src: { type: 'string' }, + avatar_src: { type: 'string' }, head_id: { type: 'string' }, head_pos: { type: 'vector3', default: [0,1,0] }, body_id: { type: 'string' }, @@ -44,6 +45,7 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() { } } } + return new THREE.Object3D(); } this.isURLLocal = function(src) { @@ -83,6 +85,15 @@ elation.require(['janusweb.janusbase', 'engine.things.leapmotion'], function() { pickable: false, collidable: false }); + + if (this.avatar_src) { + elation.net.get(this.avatar_src, null, { + callback: elation.bind(this, function(data) { + this.setAvatar(data); + this.refresh(); + }) + }); + } } this.setGhostAssets = function(assets) { this.ghostassets = assets;
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 15:53:36 2024