repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 2793be9a8d4369fe1ad7ee561a3acfdb6e4cd504:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 2793be9a8d4369fe1ad7ee561a3acfdb6e4cd504
Author: James Baicoianu 
Date:   Wed Jun 22 02:19:52 2016 -0700

    Added ProxyObject support

diff --git a/scripts/text.js b/scripts/text.js
index 2315651d13b635934fa0acae2e555e58c1431a98..
index ..59d3ce09d4273c4322f03f30ce4de3467259e84b 100644
--- a/scripts/text.js
+++ b/scripts/text.js
@@ -33,5 +33,14 @@ elation.require(['engine.things.label'], function() {

       return mesh;
     }
+    this.getProxyObject = function() {
+      return new elation.proxy(this, {
+        id: ['property', 'properties.id'],
+        js_id: ['property', 'properties.js_id'],
+        pos: ['property', 'properties.position'],
+        vel: ['property', 'properties.velocity'],
+        col: ['property', 'properties.color'],
+      });
+    }
   }, elation.engine.things.label);
 });

-----END OF PAGE-----