Skip to content
Snippets Groups Projects
Commit ab286181 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

view menu

parent 32e68a98
No related branches found
No related tags found
No related merge requests found
/**
* Created by aghassaei on 10/23/15.
*/
define(['jquery', 'underscore', 'menuParent', 'lattice', 'materials', 'materialsPlist', 'appState', 'text!menus/templates/ViewMenuView.html'],
function($, _, MenuParentView, lattice, materials, materialsPlist, appState, template){
return MenuParentView.extend({
events: {
},
__initialize: function(){
},
_makeTemplateJSON: function(){
return _.extend(appState.toJSON(), materialsPlist, {materials:materials.list, compositeMaterialsKeys:materials.getCompositeKeys()});
},
template: _.template(template)
});
});
\ No newline at end of file
Set Material Visibility:
<% _.each(_.keys(allMaterials[materialClass]), function(key){ %>
<div class="materialColorSwatch">
<div style="background-color:<% if(realisticColorScheme){ %><%= materials[key].color %><% }else{ %><%= materials[key].altColor %><% } %>"></div>
<span class="materialListTitle"><%= materials[key].name %></span></div>
<% }); %>
<% _.each(materials, function(material, key){
if (key.substr(0,5) == "super") return;
if (material.noDelete) return; %>
<div class="materialColorSwatch">
<div style="background-color:<% if(realisticColorScheme){ %><%= material.color %><% }else{ %><%= material.altColor %><% } %>"></div>
<span class="materialListTitle"><%= material.name %></span></div>
<% }); %>
<% _.each(compositeMaterialsKeys, function(key){ %>
<div class="materialColorSwatch">
<div style="background-color:<% if(realisticColorScheme){ %><%= materials[key].color %><% }else{ %><%= materials[key].altColor %><% } %>"></div>
<span class="materialListTitle"><%= materials[key].name %></span></div>
<% }); %><br/>
\ No newline at end of file
...@@ -14,6 +14,7 @@ define(['three'], function(THREE){ ...@@ -14,6 +14,7 @@ define(['three'], function(THREE){
material:"Materials", material:"Materials",
// import:"Import", // import:"Import",
part:"Part" part:"Part"
// view: "View"
//script:"Script" //script:"Script"
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment