From b7a41cbd5a30d32f524ee60e2dfdf9c65c7ec55b Mon Sep 17 00:00:00 2001 From: hwc487 Date: Tue, 12 Jun 2012 15:44:52 -0700 Subject: Disabled the add, copy, and delete buttons in the material library panel. Also removed the Custom Materials section. --- js/panels/Materials/materials-data.json | 13 ------------- .../materials-library-panel.html | 13 ++++++++----- 2 files changed, 8 insertions(+), 18 deletions(-) (limited to 'js/panels/Materials') diff --git a/js/panels/Materials/materials-data.json b/js/panels/Materials/materials-data.json index 5e86793e..893489fc 100644 --- a/js/panels/Materials/materials-data.json +++ b/js/panels/Materials/materials-data.json @@ -97,19 +97,6 @@ "id" : "ZInvertMaterial" } ] - }, - { - "label": "Custom Materials", - "children": [ - { - "label": "Checker Board", - "id" : "CheckerBoard" - }, - { - "label": "Shiny Metal", - "id" : "ShinyMetal" - } - ] } ] } \ No newline at end of file diff --git a/js/panels/Materials/materials-library-panel.reel/materials-library-panel.html b/js/panels/Materials/materials-library-panel.reel/materials-library-panel.html index b5d7a869..6fa54495 100755 --- a/js/panels/Materials/materials-library-panel.reel/materials-library-panel.html +++ b/js/panels/Materials/materials-library-panel.reel/materials-library-panel.html @@ -13,7 +13,8 @@ "addButton": { "prototype": "montage/ui/button.reel", "properties": { - "element": {"#": "ml_add_btn"} + "element": {"#": "ml_add_btn"}, + "enabled": false }, "listeners": [ { @@ -25,8 +26,9 @@ "copyButton": { "prototype": "montage/ui/button.reel", "properties": { - "element": {"#": "ml_copy_btn"} - }, + "element": {"#": "ml_copy_btn"}, + "enabled": false + }, "listeners": [ { "type": "action", @@ -37,8 +39,9 @@ "deleteButton": { "prototype": "montage/ui/button.reel", "properties": { - "element": {"#": "ml_delete_btn"} - }, + "element": {"#": "ml_delete_btn"}, + "enabled": false + }, "listeners": [ { "type": "action", -- cgit v1.2.3