aboutsummaryrefslogtreecommitdiff
path: root/js/data/pi
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-20 11:07:49 -0700
committerNivesh Rajbhandari2012-03-20 11:07:49 -0700
commit1eb663dc0ab2f9f2a6daea57ad2974b731dbc513 (patch)
tree4adfe468a26805915f0995c0f3af18b7d5b290a2 /js/data/pi
parente1c4f30a4c13d747fa69d78598e0961286bbe571 (diff)
downloadninja-1eb663dc0ab2f9f2a6daea57ad2974b731dbc513.tar.gz
Support edit material button in oval and line PI.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/data/pi')
-rwxr-xr-xjs/data/pi/pi-data.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js
index 28ffa536..53fec3be 100755
--- a/js/data/pi/pi-data.js
+++ b/js/data/pi/pi-data.js
@@ -495,6 +495,13 @@ exports.PiData = Montage.create( Montage, {
495 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 495 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
496 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, 496 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
497 divider : true 497 divider : true
498 },
499 {
500 type: "button",
501 id: "editStrokeMaterial",
502 prop: "editStrokeMaterial",
503 label: "Edit",
504 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
498 } 505 }
499 ] 506 ]
500 ] 507 ]
@@ -582,6 +589,13 @@ exports.PiData = Montage.create( Montage, {
582 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 589 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
583 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, 590 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
584 divider : true 591 divider : true
592 },
593 {
594 type: "button",
595 id: "editStrokeMaterial",
596 prop: "editStrokeMaterial",
597 label: "Edit",
598 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
585 } 599 }
586 ], 600 ],
587 [ 601 [
@@ -594,6 +608,13 @@ exports.PiData = Montage.create( Montage, {
594 dataField: "_name", 608 dataField: "_name",
595 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 609 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
596 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } 610 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
611 },
612 {
613 type: "button",
614 id: "editFillMaterial",
615 prop: "editFillMaterial",
616 label: "Edit",
617 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
597 } 618 }
598 ] 619 ]
599 ] 620 ]