aboutsummaryrefslogtreecommitdiff
path: root/js/data
diff options
context:
space:
mode:
Diffstat (limited to 'js/data')
-rw-r--r--js/data/pi/pi-data.js18
1 files changed, 14 insertions, 4 deletions
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js
index 8ccf17cc..10b33a0e 100644
--- a/js/data/pi/pi-data.js
+++ b/js/data/pi/pi-data.js
@@ -384,7 +384,9 @@ exports.PiData = Montage.create( Montage, {
384 prop: "strokeMaterial", 384 prop: "strokeMaterial",
385 label: "Stroke", 385 label: "Stroke",
386 labelField: "_name", 386 labelField: "_name",
387 dataField: "_name",
387 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 388 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
389 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
388 divider : true 390 divider : true
389 } 391 }
390 ], 392 ],
@@ -395,7 +397,9 @@ exports.PiData = Montage.create( Montage, {
395 prop: "fillMaterial", 397 prop: "fillMaterial",
396 label: "Fill", 398 label: "Fill",
397 labelField: "_name", 399 labelField: "_name",
398 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } 400 dataField: "_name",
401 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
402 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
399 } 403 }
400 ] 404 ]
401 ] 405 ]
@@ -458,7 +462,9 @@ exports.PiData = Montage.create( Montage, {
458 id: "stroke", 462 id: "stroke",
459 label: "Stroke", 463 label: "Stroke",
460 labelField: "_name", 464 labelField: "_name",
461 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } 465 dataField: "_name",
466 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
467 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
462 } 468 }
463 ] 469 ]
464 ] 470 ]
@@ -541,8 +547,10 @@ exports.PiData = Montage.create( Montage, {
541 id: "strokeMaterial", 547 id: "strokeMaterial",
542 prop: "strokeMaterial", 548 prop: "strokeMaterial",
543 label: "Stroke", 549 label: "Stroke",
544 labelFunction: function(item) { return item.getName(); }, 550 labelField: "_name",
551 dataField: "_name",
545 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, 552 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
553 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" },
546 divider : true 554 divider : true
547 } 555 }
548 ], 556 ],
@@ -553,7 +561,9 @@ exports.PiData = Montage.create( Montage, {
553 prop: "fillMaterial", 561 prop: "fillMaterial",
554 label: "Fill", 562 label: "Fill",
555 labelField: "_name", 563 labelField: "_name",
556 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } 564 dataField: "_name",
565 items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" },
566 enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }
557 } 567 }
558 ] 568 ]
559 ] 569 ]