aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/rect-properties.reel/rect-properties.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-08 10:18:36 -0800
committerValerio Virgillito2012-02-08 10:18:36 -0800
commit763910b9d074137eb7dee80447b89407ce5750c9 (patch)
tree3c8820a06afd442fa5ba8e68665a4d2836230628 /js/components/tools-properties/rect-properties.reel/rect-properties.js
parente5579374ff39b80b8c0c69faba37f6f581758fe0 (diff)
parent329a859e2666716c3a1d99c6bd2679e10c81fc8d (diff)
downloadninja-763910b9d074137eb7dee80447b89407ce5750c9.tar.gz
Merge pull request #20 from mqg734/ToolFixes
Hooked up materials code to go through the ShapesController and updated the PI to reflect the currently selected shape's materials. Also fixed the following bugs:
Diffstat (limited to 'js/components/tools-properties/rect-properties.reel/rect-properties.js')
-rw-r--r--js/components/tools-properties/rect-properties.reel/rect-properties.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/js/components/tools-properties/rect-properties.reel/rect-properties.js b/js/components/tools-properties/rect-properties.reel/rect-properties.js
index 1e717f88..b2de6ff7 100644
--- a/js/components/tools-properties/rect-properties.reel/rect-properties.js
+++ b/js/components/tools-properties/rect-properties.reel/rect-properties.js
@@ -55,19 +55,25 @@ exports.RectProperties = Montage.create(ToolProperties, {
55 }, 55 },
56 56
57 strokeStyle : { 57 strokeStyle : {
58 get: function() { return this.base._strokeStyle.options[this.base._strokeStyle.value].text; } 58 get: function() {
59// return this.base._strokeStyle.options[this.base._strokeStyle.value].text;
60 return "Solid";
61 }
59 }, 62 },
60 63
61 strokeStyleIndex : { 64 strokeStyleIndex : {
62 get: function() { return this.base._strokeStyle.options[this.base._strokeStyle.value].value; } 65 get: function() {
66// return this.base._strokeStyle.options[this.base._strokeStyle.value].value;
67 return 1;
68 }
63 }, 69 },
64 70
65 strokeMaterial: { 71 strokeMaterial: {
66 get: function() { return this.base._strokeMaterial.options[this.base._strokeMaterial.value].value; } 72 get: function() { return this.base._strokeMaterial.value; }
67 }, 73 },
68 74
69 fillMaterial: { 75 fillMaterial: {
70 get: function() { return this.base._fillMaterial.options[this.base._fillMaterial.value].value; } 76 get: function() { return this.base._fillMaterial.value; }
71 }, 77 },
72 78
73 _setBindings: { 79 _setBindings: {