diff options
author | Armen Kesablyan | 2012-02-13 13:36:52 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-13 13:36:52 -0800 |
commit | da32190d5dd91fa2c26f8cabb746980c3d06035c (patch) | |
tree | d923299208c84b1071b58e7eb9c0515b2e1c844a /js/data/pi/pi-data.js | |
parent | 36cefa3526988cb4dfea107fedaa954a2703260d (diff) | |
parent | 90d0c8c0e98d062c628c061fe5765ce991fda409 (diff) | |
download | ninja-da32190d5dd91fa2c26f8cabb746980c3d06035c.tar.gz |
Merge branch 'refs/heads/master' into text-tool
Diffstat (limited to 'js/data/pi/pi-data.js')
-rw-r--r-- | js/data/pi/pi-data.js | 52 |
1 files changed, 47 insertions, 5 deletions
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js index dd75e255..8ffd0ec7 100644 --- a/js/data/pi/pi-data.js +++ b/js/data/pi/pi-data.js | |||
@@ -369,12 +369,24 @@ 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", |
387 | dataField: "_name", | ||
377 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, | 388 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
389 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, | ||
378 | divider : true | 390 | divider : true |
379 | } | 391 | } |
380 | ], | 392 | ], |
@@ -385,7 +397,9 @@ exports.PiData = Montage.create( Montage, { | |||
385 | prop: "fillMaterial", | 397 | prop: "fillMaterial", |
386 | label: "Fill", | 398 | label: "Fill", |
387 | labelField: "_name", | 399 | labelField: "_name", |
388 | 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" } | ||
389 | } | 403 | } |
390 | ] | 404 | ] |
391 | ] | 405 | ] |
@@ -434,11 +448,25 @@ exports.PiData = Montage.create( Montage, { | |||
434 | Section: [ | 448 | Section: [ |
435 | [ | 449 | [ |
436 | { | 450 | { |
451 | type: "checkbox", | ||
452 | id: "useWebGl", | ||
453 | prop: "useWebGl", | ||
454 | defaultValue: false, | ||
455 | value: "Use WebGL", | ||
456 | checked: false | ||
457 | } | ||
458 | ], | ||
459 | [ | ||
460 | { | ||
437 | type: "dropdown", | 461 | type: "dropdown", |
438 | id: "stroke", | 462 | id: "strokeMaterial", |
463 | prop: "strokeMaterial", | ||
439 | label: "Stroke", | 464 | label: "Stroke", |
440 | labelField: "_name", | 465 | labelField: "_name", |
441 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } | 466 | dataField: "_name", |
467 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, | ||
468 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, | ||
469 | divider : true | ||
442 | } | 470 | } |
443 | ] | 471 | ] |
444 | ] | 472 | ] |
@@ -507,12 +535,24 @@ exports.PiData = Montage.create( Montage, { | |||
507 | Section: [ | 535 | Section: [ |
508 | [ | 536 | [ |
509 | { | 537 | { |
538 | type: "checkbox", | ||
539 | id: "useWebGl", | ||
540 | prop: "useWebGl", | ||
541 | defaultValue: false, | ||
542 | value: "Use WebGL", | ||
543 | checked: false | ||
544 | } | ||
545 | ], | ||
546 | [ | ||
547 | { | ||
510 | type: "dropdown", | 548 | type: "dropdown", |
511 | id: "strokeMaterial", | 549 | id: "strokeMaterial", |
512 | prop: "strokeMaterial", | 550 | prop: "strokeMaterial", |
513 | label: "Stroke", | 551 | label: "Stroke", |
514 | labelFunction: function(item) { return item.getName(); }, | 552 | labelField: "_name", |
553 | dataField: "_name", | ||
515 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, | 554 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, |
555 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" }, | ||
516 | divider : true | 556 | divider : true |
517 | } | 557 | } |
518 | ], | 558 | ], |
@@ -523,7 +563,9 @@ exports.PiData = Montage.create( Montage, { | |||
523 | prop: "fillMaterial", | 563 | prop: "fillMaterial", |
524 | label: "Fill", | 564 | label: "Fill", |
525 | labelField: "_name", | 565 | labelField: "_name", |
526 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } | 566 | dataField: "_name", |
567 | items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" }, | ||
568 | enabled: { boundObject: "this.controls", boundProperty: "useWebGl" } | ||
527 | } | 569 | } |
528 | ] | 570 | ] |
529 | ] | 571 | ] |