diff options
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-x | js/ninja.reel/ninja.html | 5 | ||||
-rwxr-xr-x | js/ninja.reel/ninja.js | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.html b/js/ninja.reel/ninja.html index 51d74cb2..12dbf660 100755 --- a/js/ninja.reel/ninja.html +++ b/js/ninja.reel/ninja.html | |||
@@ -323,6 +323,10 @@ | |||
323 | "prototype": "js/controllers/code-editor-controller" | 323 | "prototype": "js/controllers/code-editor-controller" |
324 | }, | 324 | }, |
325 | 325 | ||
326 | "objectsController" : { | ||
327 | "prototype": "js/controllers/objects-controller" | ||
328 | }, | ||
329 | |||
326 | "owner": { | 330 | "owner": { |
327 | "prototype": "js/ninja.reel", | 331 | "prototype": "js/ninja.reel", |
328 | "properties": { | 332 | "properties": { |
@@ -352,6 +356,7 @@ | |||
352 | "timeline": {"@": "timeline"}, | 356 | "timeline": {"@": "timeline"}, |
353 | "mainMenuController": {"@": "mainMenuController"}, | 357 | "mainMenuController": {"@": "mainMenuController"}, |
354 | "codeEditorController": {"@": "codeEditorController"}, | 358 | "codeEditorController": {"@": "codeEditorController"}, |
359 | "objectsController": {"@": "objectsController"}, | ||
355 | "rightPanelContainer": {"#": "rightPanelContainer" }, | 360 | "rightPanelContainer": {"#": "rightPanelContainer" }, |
356 | "panelSplitter": {"@": "splitter3"}, | 361 | "panelSplitter": {"@": "splitter3"}, |
357 | "timelineSplitter": {"@": "splitter4"}, | 362 | "timelineSplitter": {"@": "splitter4"}, |
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 9f0456ae..d97a5413 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -18,6 +18,25 @@ exports.Ninja = Montage.create(Component, { | |||
18 | value: null | 18 | value: null |
19 | }, | 19 | }, |
20 | 20 | ||
21 | _workspaceMode: { | ||
22 | value: null | ||
23 | }, | ||
24 | |||
25 | workspaceMode: { | ||
26 | get: function() { | ||
27 | return this.workspaceMode; | ||
28 | }, | ||
29 | set: function(val) { | ||
30 | if(this._workspaceMode !== val ) { | ||
31 | if(this._workspaceMode !== null) { | ||
32 | document.body.classList.remove("ws-" + this._workspaceMode); | ||
33 | } | ||
34 | document.body.classList.add("ws-" + val); | ||
35 | this._workspaceMode = val; | ||
36 | } | ||
37 | } | ||
38 | }, | ||
39 | |||
21 | toolsData: { value: null }, | 40 | toolsData: { value: null }, |
22 | appData: { value: AppData }, | 41 | appData: { value: AppData }, |
23 | 42 | ||
@@ -148,6 +167,7 @@ exports.Ninja = Montage.create(Component, { | |||
148 | 167 | ||
149 | prepareForDraw: { | 168 | prepareForDraw: { |
150 | value: function() { | 169 | value: function() { |
170 | this.workspaceMode = "default"; | ||
151 | console.log("Loading Ninja --> ", this.ninjaVersion); | 171 | console.log("Loading Ninja --> ", this.ninjaVersion); |
152 | 172 | ||
153 | this.application.ninja = this; | 173 | this.application.ninja = this; |