diff options
Diffstat (limited to 'js/stage/binding-view.reel/binding-view.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index 900d2b24..b0df6df1 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js | |||
@@ -13,6 +13,10 @@ var Montage = require("montage/core/core").Montage, | |||
13 | 13 | ||
14 | exports.BindingView = Montage.create(Component, { | 14 | exports.BindingView = Montage.create(Component, { |
15 | //private Properties | 15 | //private Properties |
16 | |||
17 | hudRepeater: { | ||
18 | value: null | ||
19 | }, | ||
16 | _selectedComponent: { | 20 | _selectedComponent: { |
17 | value: null | 21 | value: null |
18 | }, | 22 | }, |
@@ -98,7 +102,10 @@ exports.BindingView = Montage.create(Component, { | |||
98 | 102 | ||
99 | //Add the first component which is the selected one to have a hud | 103 | //Add the first component which is the selected one to have a hud |
100 | 104 | ||
101 | this.componentsList[this.selectedComponent.identifier] = {"component": this.selectedComponent, "properties": this.application.ninja.objectsController.getPropertyList(this.selectedComponent, true)}; | 105 | this.componentsList[this.selectedComponent.identifier] = {"component": this.selectedComponent, properties:[] }; |
106 | this.application.ninja.objectsController.getPropertiesFromObject(this.selectedComponent, true).forEach(function(obj) { | ||
107 | this.componentsList[this.selectedComponent.identifier].properties.push({"title":obj}) | ||
108 | }.bind(this)); | ||
102 | console.log("components:",this.componentsList); | 109 | console.log("components:",this.componentsList); |
103 | //Go through the loop and find every interacted object by bindings | 110 | //Go through the loop and find every interacted object by bindings |
104 | arrBindings.forEach(function(obj) { | 111 | arrBindings.forEach(function(obj) { |
@@ -184,6 +191,12 @@ exports.BindingView = Montage.create(Component, { | |||
184 | } | 191 | } |
185 | }, | 192 | }, |
186 | 193 | ||
194 | didDraw: { | ||
195 | value: function() { | ||
196 | |||
197 | } | ||
198 | }, | ||
199 | |||
187 | drawBlueLine: { | 200 | drawBlueLine: { |
188 | value: function(fromX,fromY,toX,toY) { | 201 | value: function(fromX,fromY,toX,toY) { |
189 | this._context.lineWidth = 4; // Set Line Thickness | 202 | this._context.lineWidth = 4; // Set Line Thickness |