repo: janusweb action: commit revision: path_from: revision_from: 2793be9a8d4369fe1ad7ee561a3acfdb6e4cd504: path_to: revision_to:
commit 2793be9a8d4369fe1ad7ee561a3acfdb6e4cd504 Author: James BaicoianuDate: Wed Jun 22 02:19:52 2016 -0700 Added ProxyObject support diff --git a/scripts/text.js b/scripts/text.js
--- 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-----