aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials/materials-popup.reel/materials-popup.html
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-27 14:21:27 -0700
committerNivesh Rajbhandari2012-06-27 14:21:27 -0700
commit978b9049d057d2a0995758275f68da8641193201 (patch)
treed26fadef6100d5eb87e871a68f8c71fac9ab27a6 /js/panels/Materials/materials-popup.reel/materials-popup.html
parent8351c3685a6db703d1940817abc71f92ef4e1bd4 (diff)
downloadninja-978b9049d057d2a0995758275f68da8641193201.tar.gz
Integrating Materials UI changes. Squashed commit of the following:
commit 89ccb55130e67c4516e616ccc56d2a649a2b9160 Author: Nivesh Rajbhandari <mqg734@motorola.com> Date: Wed Jun 27 14:20:01 2012 -0700 Position Materials Editor popup and change buttons' text color. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com> commit 89bca82adc781f4913f8d302a49a8baa907631c5 Author: Nivesh Rajbhandari <mqg734@motorola.com> Date: Wed Jun 27 12:00:51 2012 -0700 Support deleting and editing custom materials. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com> commit 5be5160c4786beb70e8ad4d75562adb135718c6c Merge: 1d9d9f6 2ebf3e3 Author: Nivesh Rajbhandari <mqg734@motorola.com> Date: Wed Jun 27 11:11:37 2012 -0700 Merge branch 'refs/heads/ninja-internal' into WebGLMaterials Conflicts: js/data/panels-data.js Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com> commit 1d9d9f6e66ea7585f07ed461cebba99e71f65de0 Author: Nivesh Rajbhandari <mqg734@motorola.com> Date: Tue Jun 26 22:01:22 2012 -0700 "Save as" support to duplicate material with modified settings. Also removed Add button and disabled Reset button for now. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com> commit bf1037508dbc686f2884765344832f906cbf06d0 Author: Nivesh Rajbhandari <mqg734@motorola.com> Date: Tue Jun 26 17:23:31 2012 -0700 Added UI for duplicating and deleting materials in the Materials Library. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com> commit 54930792f9c417df5f739831164aa1f96a41d67a Author: Nivesh Rajbhandari <mqg734@motorola.com> Date: Tue Jun 26 14:29:17 2012 -0700 Added preview of material in materials editor popup and fixed some styling. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com> Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/panels/Materials/materials-popup.reel/materials-popup.html')
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.html26
1 files changed, 24 insertions, 2 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.html b/js/panels/Materials/materials-popup.reel/materials-popup.html
index bac722cd..c2f3af4e 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.html
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.html
@@ -27,6 +27,21 @@
27 "label": "Cancel" 27 "label": "Cancel"
28 } 28 }
29 }, 29 },
30 "saveAsButton": {
31 "prototype": "montage/ui/button.reel",
32 "properties": {
33 "element": {"#": "mp_saveAs_btn"},
34 "label": "Save As..."
35 }
36 },
37 "resetButton": {
38 "prototype": "montage/ui/button.reel",
39 "properties": {
40 "element": {"#": "mp_reset_btn"},
41 "label": "Reset",
42 "enabled": false
43 }
44 },
30 "eventDelegator": { 45 "eventDelegator": {
31 "prototype": "montage/core/event/action-event-listener", 46 "prototype": "montage/core/event/action-event-listener",
32 "properties": { 47 "properties": {
@@ -79,7 +94,10 @@
79 "element": {"#": "materials_popup"}, 94 "element": {"#": "materials_popup"},
80 "okButton": {"@": "okButton"}, 95 "okButton": {"@": "okButton"},
81 "cancelButton": {"@": "cancelButton"}, 96 "cancelButton": {"@": "cancelButton"},
82 "materialTitle": {"#": "mp_title"} 97 "saveAsButton": {"@": "saveAsButton"},
98 "resetButton": {"@": "resetButton"},
99 "materialTitle": {"#": "mp_title"},
100 "previewCanvas": {"#": "mp_preview_canvas"}
83 } 101 }
84 } 102 }
85 } 103 }
@@ -91,15 +109,19 @@
91 <div data-montage-id="materials_popup" class="materials_popup"> 109 <div data-montage-id="materials_popup" class="materials_popup">
92 <div data-montage-id="mp_title" class="mp_title">Material Name</div> 110 <div data-montage-id="mp_title" class="mp_title">Material Name</div>
93 <hr /> 111 <hr />
94 <div data-montage-id="mp_preview" class="mp_preview">Preview Pane</div> 112 <div data-montage-id="mp_preview" class="mp_preview">
113 <canvas data-montage-id="mp_preview_canvas" width="200" height="100"/>
114 </div>
95 <hr /> 115 <hr />
96 <div data-montage-id="mp_properties_list" class="mp_properties_list"> 116 <div data-montage-id="mp_properties_list" class="mp_properties_list">
97 <div data-montage-id="mp_property" class="mp_property"></div> 117 <div data-montage-id="mp_property" class="mp_property"></div>
98 </div> 118 </div>
119 <button data-montage-id="mp_reset_btn" class="mp_reset_btn nj-skinned"></button>
99 <hr /> 120 <hr />
100 <div data-montage-id="mp_buttons" class="mp_buttons"> 121 <div data-montage-id="mp_buttons" class="mp_buttons">
101 <button data-montage-id="mp_cancel_btn" class="mp_cancel_btn nj-skinned"></button> 122 <button data-montage-id="mp_cancel_btn" class="mp_cancel_btn nj-skinned"></button>
102 <button data-montage-id="mp_ok_btn" class="mp_ok_btn nj-skinned"></button> 123 <button data-montage-id="mp_ok_btn" class="mp_ok_btn nj-skinned"></button>
124 <button data-montage-id="mp_saveAs_btn" class="mp_saveAs_btn nj-skinned"></button>
103 </div> 125 </div>
104 </div> 126 </div>
105 </body> 127 </body>