diff options
author | Ananya Sen | 2012-04-17 18:11:55 -0700 |
---|---|---|
committer | Ananya Sen | 2012-04-17 18:11:55 -0700 |
commit | 35abad196cc9feb76ef50c1b63032a38233a6d51 (patch) | |
tree | 914689c66d4ab6c6e088b571eade0a0e35082916 /js/data | |
parent | 1f891c58bad0b7746659aa4138001b5ee76d9a0e (diff) | |
parent | 616a8532099fec2a15855eac97cd85cb60c4451c (diff) | |
download | ninja-35abad196cc9feb76ef50c1b63032a38233a6d51.tar.gz |
Merge branch 'refs/heads/ninja-internal-master' into Codeview-improvements
Diffstat (limited to 'js/data')
-rwxr-xr-x | js/data/menu-data.js | 14 | ||||
-rw-r--r-- | js/data/panels-data.js | 16 | ||||
-rwxr-xr-x | js/data/pi/pi-data.js | 4 | ||||
-rwxr-xr-x | js/data/tools-data.js | 6 |
4 files changed, 29 insertions, 11 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 3333d209..a1fe2703 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js | |||
@@ -70,8 +70,12 @@ exports.MenuData = Montage.create( Montage, { | |||
70 | "enabled": { | 70 | "enabled": { |
71 | "value": false, | 71 | "value": false, |
72 | "boundObj": "documentController", | 72 | "boundObj": "documentController", |
73 | "boundProperty": "canSave", | 73 | "boundProperty": "activeDocument", |
74 | "oneway": true | 74 | "oneway": true, |
75 | "boundValueMutator": function(activeDocument){ | ||
76 | if(activeDocument !== null){return true;} | ||
77 | else{return false;} | ||
78 | } | ||
75 | }, | 79 | }, |
76 | "action": "executeSave" | 80 | "action": "executeSave" |
77 | }, | 81 | }, |
@@ -96,10 +100,10 @@ exports.MenuData = Montage.create( Montage, { | |||
96 | "enabled": { | 100 | "enabled": { |
97 | "value": false, | 101 | "value": false, |
98 | "boundObj": "documentController", | 102 | "boundObj": "documentController", |
99 | "boundProperty": "canSaveAll", | 103 | "boundProperty": "activeDocument", |
100 | "oneway": true, | 104 | "oneway": true, |
101 | "boundValueMutator": function(canSaveAll){ | 105 | "boundValueMutator": function(activeDocument){ |
102 | if(canSaveAll === true){return true;} | 106 | if(activeDocument !== null){return true;} |
103 | else{return false;} | 107 | else{return false;} |
104 | } | 108 | } |
105 | }, | 109 | }, |
diff --git a/js/data/panels-data.js b/js/data/panels-data.js index 2422f5e7..f613a3be 100644 --- a/js/data/panels-data.js +++ b/js/data/panels-data.js | |||
@@ -55,8 +55,8 @@ exports.PanelsData = Montage.create(Montage, { | |||
55 | scrollable: true, | 55 | scrollable: true, |
56 | collapsed: true, | 56 | collapsed: true, |
57 | open: true, | 57 | open: true, |
58 | modulePath: "js/panels/Components/ComponentsPanelBase.reel", | 58 | modulePath: "js/panels/components-panel.reel", |
59 | moduleName: "ComponentsPanelBase" | 59 | moduleName: "ComponentsPanel" |
60 | }, | 60 | }, |
61 | // { | 61 | // { |
62 | // name: "Project/Assets", | 62 | // name: "Project/Assets", |
@@ -93,6 +93,18 @@ exports.PanelsData = Montage.create(Montage, { | |||
93 | open: true, | 93 | open: true, |
94 | modulePath: "js/panels/presets/content.reel", | 94 | modulePath: "js/panels/presets/content.reel", |
95 | moduleName: "content" | 95 | moduleName: "content" |
96 | }, | ||
97 | { | ||
98 | name: "History", | ||
99 | minHeight: 100, | ||
100 | height: 100, | ||
101 | maxHeight: null, | ||
102 | flexible: true, | ||
103 | collapsed: true, | ||
104 | scrollable: true, | ||
105 | open: true, | ||
106 | modulePath: "js/panels/history-panel/history.reel", | ||
107 | moduleName: "History" | ||
96 | } | 108 | } |
97 | ] | 109 | ] |
98 | } | 110 | } |
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js index 7edc90d8..157c54ec 100755 --- a/js/data/pi/pi-data.js +++ b/js/data/pi/pi-data.js | |||
@@ -131,6 +131,8 @@ exports.PiData = Montage.create( Montage, { | |||
131 | type : "hottext", | 131 | type : "hottext", |
132 | id : "borderWidth", | 132 | id : "borderWidth", |
133 | prop : "border-width", | 133 | prop : "border-width", |
134 | defaultValue: 0, | ||
135 | valueMutator: parseFloat, | ||
134 | label : "Border", | 136 | label : "Border", |
135 | min : 0, | 137 | min : 0, |
136 | max : 100, | 138 | max : 100, |
@@ -578,7 +580,7 @@ exports.PiData = Montage.create( Montage, { | |||
578 | valueMutator: parseFloat, | 580 | valueMutator: parseFloat, |
579 | value : 0, | 581 | value : 0, |
580 | min : 0, | 582 | min : 0, |
581 | max : 100, | 583 | max : 99, |
582 | unit : "%", | 584 | unit : "%", |
583 | acceptableUnits: ["%"] | 585 | acceptableUnits: ["%"] |
584 | 586 | ||
diff --git a/js/data/tools-data.js b/js/data/tools-data.js index faf3336f..4d009530 100755 --- a/js/data/tools-data.js +++ b/js/data/tools-data.js | |||
@@ -151,7 +151,7 @@ exports.ToolsData = Montage.create(Montage, { | |||
151 | "properties": "fillProperties", | 151 | "properties": "fillProperties", |
152 | "spriteSheet": true, | 152 | "spriteSheet": true, |
153 | "action": "FillTool", | 153 | "action": "FillTool", |
154 | "toolTip": "Fill Tool", | 154 | "toolTip": "Paint Bucket Tool (K)", |
155 | "cursor": "url('images/tools/bucket_down.png'), default", | 155 | "cursor": "url('images/tools/bucket_down.png'), default", |
156 | "lastInGroup": false, | 156 | "lastInGroup": false, |
157 | "container": false, | 157 | "container": false, |
@@ -162,7 +162,7 @@ exports.ToolsData = Montage.create(Montage, { | |||
162 | "properties": "inkbottleProperties", | 162 | "properties": "inkbottleProperties", |
163 | "spriteSheet": true, | 163 | "spriteSheet": true, |
164 | "action": "InkBottleTool", | 164 | "action": "InkBottleTool", |
165 | "toolTip": "Ink Bottle Tool", | 165 | "toolTip": "Ink Bottle Tool (K)", |
166 | "cursor": "url('images/tools/inkbottle_down.png'), default", | 166 | "cursor": "url('images/tools/inkbottle_down.png'), default", |
167 | "lastInGroup": true, | 167 | "lastInGroup": true, |
168 | "container": false, | 168 | "container": false, |
@@ -173,7 +173,7 @@ exports.ToolsData = Montage.create(Montage, { | |||
173 | "properties": "eyedropperProperties", | 173 | "properties": "eyedropperProperties", |
174 | "spriteSheet": true, | 174 | "spriteSheet": true, |
175 | "action": "EyedropperTool", | 175 | "action": "EyedropperTool", |
176 | "toolTip": "Eyedropper Tool", | 176 | "toolTip": "Eyedropper Tool (I)", |
177 | "cursor": "url('images/tools/eyedropper_down.png') 6 20, default", | 177 | "cursor": "url('images/tools/eyedropper_down.png') 6 20, default", |
178 | "lastInGroup": false, | 178 | "lastInGroup": false, |
179 | "container": false, | 179 | "container": false, |