diff options
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud.reel')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js index 0f1b99c9..6b802cb0 100755 --- a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js +++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |||
@@ -76,12 +76,7 @@ exports.BindingHud = Montage.create(Component, { | |||
76 | this.title = icon.name; | 76 | this.title = icon.name; |
77 | this.x = iconOffsets.x; | 77 | this.x = iconOffsets.x; |
78 | this.y = iconOffsets.y - 80; | 78 | this.y = iconOffsets.y - 80; |
79 | } else { | ||
80 | this.title = val.identifier; | ||
81 | this.x = val.element.offsetLeft; | ||
82 | this.y = val.element.offsetTop; | ||
83 | } | 79 | } |
84 | |||
85 | this.needsDraw = true; | 80 | this.needsDraw = true; |
86 | 81 | ||
87 | } | 82 | } |
@@ -236,6 +231,12 @@ exports.BindingHud = Montage.create(Component, { | |||
236 | this.scrollUp.style.display = "block"; | 231 | this.scrollUp.style.display = "block"; |
237 | this.scrollDown.style.display = "block"; | 232 | this.scrollDown.style.display = "block"; |
238 | } | 233 | } |
234 | var isOffStage = this.application.ninja.objectsController.isOffStageObject(this.userComponent); | ||
235 | if(!isOffStage) { | ||
236 | this.title = this.userComponent.identifier; | ||
237 | this.x = this.userComponent.element.offsetLeft; | ||
238 | this.y = this.userComponent.element.offsetTop; | ||
239 | } | ||
239 | } | 240 | } |
240 | }, | 241 | }, |
241 | 242 | ||
@@ -323,6 +324,12 @@ exports.BindingHud = Montage.create(Component, { | |||
323 | } | 324 | } |
324 | }, | 325 | }, |
325 | 326 | ||
327 | willDraw: { | ||
328 | value: function() { | ||
329 | |||
330 | } | ||
331 | }, | ||
332 | |||
326 | draw: { | 333 | draw: { |
327 | value: function() { | 334 | value: function() { |
328 | this.titleElement.innerHTML = this.title; | 335 | this.titleElement.innerHTML = this.title; |