diff options
Diffstat (limited to 'js/data')
-rw-r--r-- | js/data/pi/pi-data.js | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js index dd75e255..901ca37f 100644 --- a/js/data/pi/pi-data.js +++ b/js/data/pi/pi-data.js | |||
@@ -369,12 +369,23 @@ exports.PiData = Montage.create( Montage, { | |||
369 | Section: [ | 369 | Section: [ |
370 | [ | 370 | [ |
371 | { | 371 | { |
372 | type: "checkbox", | ||
373 | id: "useWebGl", | ||
374 | prop: "useWebGl", | ||
375 | defaultValue: false, | ||
376 | value: "Use WebGL", | ||
377 | checked: false | ||
378 | } | ||
379 | ], | ||
380 | [ | ||
381 | { | ||
372 | type: "dropdown", | 382 | type: "dropdown", |
373 | id: "strokeMaterial", | 383 | id: "strokeMaterial", |
374 | prop: "strokeMaterial", | 384 | prop: "strokeMaterial", |
375 | label: "Stroke", | 385 | label: "Stroke", |
376 | labelField: "_name", | 386 | labelField: "_name", |
377 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, | 387 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
388 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, | ||
378 | divider : true | 389 | divider : true |
379 | } | 390 | } |
380 | ], | 391 | ], |
@@ -385,7 +396,8 @@ exports.PiData = Montage.create( Montage, { | |||
385 | prop: "fillMaterial", | 396 | prop: "fillMaterial", |
386 | label: "Fill", | 397 | label: "Fill", |
387 | labelField: "_name", | 398 | labelField: "_name", |
388 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } | 399 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
400 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } | ||
389 | } | 401 | } |
390 | ] | 402 | ] |
391 | ] | 403 | ] |
@@ -434,11 +446,22 @@ exports.PiData = Montage.create( Montage, { | |||
434 | Section: [ | 446 | Section: [ |
435 | [ | 447 | [ |
436 | { | 448 | { |
449 | type: "checkbox", | ||
450 | id: "useWebGl", | ||
451 | prop: "useWebGl", | ||
452 | defaultValue: false, | ||
453 | value: "Use WebGL", | ||
454 | checked: false | ||
455 | } | ||
456 | ], | ||
457 | [ | ||
458 | { | ||
437 | type: "dropdown", | 459 | type: "dropdown", |
438 | id: "stroke", | 460 | id: "stroke", |
439 | label: "Stroke", | 461 | label: "Stroke", |
440 | labelField: "_name", | 462 | labelField: "_name", |
441 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } | 463 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
464 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } | ||
442 | } | 465 | } |
443 | ] | 466 | ] |
444 | ] | 467 | ] |
@@ -507,12 +530,23 @@ exports.PiData = Montage.create( Montage, { | |||
507 | Section: [ | 530 | Section: [ |
508 | [ | 531 | [ |
509 | { | 532 | { |
533 | type: "checkbox", | ||
534 | id: "useWebGl", | ||
535 | prop: "useWebGl", | ||
536 | defaultValue: false, | ||
537 | value: "Use WebGL", | ||
538 | checked: false | ||
539 | } | ||
540 | ], | ||
541 | [ | ||
542 | { | ||
510 | type: "dropdown", | 543 | type: "dropdown", |
511 | id: "strokeMaterial", | 544 | id: "strokeMaterial", |
512 | prop: "strokeMaterial", | 545 | prop: "strokeMaterial", |
513 | label: "Stroke", | 546 | label: "Stroke", |
514 | labelFunction: function(item) { return item.getName(); }, | 547 | labelFunction: function(item) { return item.getName(); }, |
515 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, | 548 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
549 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, | ||
516 | divider : true | 550 | divider : true |
517 | } | 551 | } |
518 | ], | 552 | ], |
@@ -523,7 +557,8 @@ exports.PiData = Montage.create( Montage, { | |||
523 | prop: "fillMaterial", | 557 | prop: "fillMaterial", |
524 | label: "Fill", | 558 | label: "Fill", |
525 | labelField: "_name", | 559 | labelField: "_name", |
526 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } | 560 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
561 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } | ||
527 | } | 562 | } |
528 | ] | 563 | ] |
529 | ] | 564 | ] |