Made a bunch of display name and description updates to core material types.
- Renamed "Details" group to "Overview". - Renamed "UV Names" group to "UV Sets". - Renamed "General" group to "General Settings". - Renamed "Parallax" group to "Displacement". - Renamed "Texture Map" properties to just "Texture". In cases where a specific type of texture is mentioned like "roughness texture map" I called this "roughness map" (which is more common according to google). - Renamed "Heightmap" to "Height map" (which is more common according to google). ATOM-14002 [Material Editor] Revisit user facing organization and layout of material types
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ namespace AZ
|
||||
namespace MaterialEditor
|
||||
{
|
||||
//! UVs are processed in a property group but will be handled differently.
|
||||
static constexpr const char UvGroupName[] = "UvNames";
|
||||
static constexpr const char UvGroupName[] = "uvSets";
|
||||
|
||||
class MaterialDocumentRequests
|
||||
: public AZ::EBusTraits
|
||||
|
||||
@@ -819,10 +819,10 @@ namespace MaterialEditor
|
||||
// is implemented.
|
||||
AtomToolsFramework::DynamicPropertyConfig propertyConfig;
|
||||
propertyConfig.m_dataType = AtomToolsFramework::DynamicPropertyType::Asset;
|
||||
propertyConfig.m_id = "details.materialType";
|
||||
propertyConfig.m_id = "overview.materialType";
|
||||
propertyConfig.m_nameId = "materialType";
|
||||
propertyConfig.m_displayName = "Material Type";
|
||||
propertyConfig.m_groupName = "Details";
|
||||
propertyConfig.m_groupName = "Overview";
|
||||
propertyConfig.m_description = "The material type defines the layout, properties, default values, shader connections, and other "
|
||||
"data needed to create and edit a derived material.";
|
||||
propertyConfig.m_defaultValue = AZStd::any(materialTypeAsset);
|
||||
@@ -834,10 +834,10 @@ namespace MaterialEditor
|
||||
|
||||
propertyConfig = {};
|
||||
propertyConfig.m_dataType = AtomToolsFramework::DynamicPropertyType::Asset;
|
||||
propertyConfig.m_id = "details.parentMaterial";
|
||||
propertyConfig.m_id = "overview.parentMaterial";
|
||||
propertyConfig.m_nameId = "parentMaterial";
|
||||
propertyConfig.m_displayName = "Parent Material";
|
||||
propertyConfig.m_groupName = "Details";
|
||||
propertyConfig.m_groupName = "Overview";
|
||||
propertyConfig.m_description =
|
||||
"The parent material provides an initial configuration whose properties are inherited and overriden by a derived material.";
|
||||
propertyConfig.m_defaultValue = AZStd::any(parentMaterialAsset);
|
||||
@@ -860,7 +860,7 @@ namespace MaterialEditor
|
||||
propertyConfig.m_id = MaterialPropertyId(UvGroupName, shaderInput).GetCStr();
|
||||
propertyConfig.m_nameId = shaderInput;
|
||||
propertyConfig.m_displayName = shaderInput;
|
||||
propertyConfig.m_groupName = "UV Names";
|
||||
propertyConfig.m_groupName = "UV Sets";
|
||||
propertyConfig.m_description = shaderInput;
|
||||
propertyConfig.m_defaultValue = uvName;
|
||||
propertyConfig.m_originalValue = uvName;
|
||||
|
||||
+8
-8
@@ -79,8 +79,8 @@ namespace MaterialEditor
|
||||
|
||||
if (!m_documentId.IsNull() && isOpen)
|
||||
{
|
||||
// Create the top group for displaying details about the material
|
||||
AddDetailsGroup();
|
||||
// Create the top group for displaying overview info about the material
|
||||
AddOverviewGroup();
|
||||
// Create groups for displaying editable UV names
|
||||
AddUvNamesGroup();
|
||||
// Create groups for displaying editable properties
|
||||
@@ -105,25 +105,25 @@ namespace MaterialEditor
|
||||
return property && AtomToolsFramework::ArePropertyValuesEqual(property->GetValue(), property->GetConfig().m_parentValue);
|
||||
}
|
||||
|
||||
void MaterialInspector::AddDetailsGroup()
|
||||
void MaterialInspector::AddOverviewGroup()
|
||||
{
|
||||
const AZ::RPI::MaterialTypeSourceData* materialTypeSourceData = nullptr;
|
||||
MaterialDocumentRequestBus::EventResult(
|
||||
materialTypeSourceData, m_documentId, &MaterialDocumentRequestBus::Events::GetMaterialTypeSourceData);
|
||||
|
||||
const AZStd::string groupNameId = "details";
|
||||
const AZStd::string groupDisplayName = "Details";
|
||||
const AZStd::string groupNameId = "overview";
|
||||
const AZStd::string groupDisplayName = "Overview";
|
||||
const AZStd::string groupDescription = materialTypeSourceData->m_description;
|
||||
auto& group = m_groups[groupNameId];
|
||||
|
||||
AtomToolsFramework::DynamicProperty property;
|
||||
MaterialDocumentRequestBus::EventResult(
|
||||
property, m_documentId, &MaterialDocumentRequestBus::Events::GetProperty, AZ::Name("details.materialType"));
|
||||
property, m_documentId, &MaterialDocumentRequestBus::Events::GetProperty, AZ::Name("overview.materialType"));
|
||||
group.m_properties.push_back(property);
|
||||
|
||||
property = {};
|
||||
MaterialDocumentRequestBus::EventResult(
|
||||
property, m_documentId, &MaterialDocumentRequestBus::Events::GetProperty, AZ::Name("details.parentMaterial"));
|
||||
property, m_documentId, &MaterialDocumentRequestBus::Events::GetProperty, AZ::Name("overview.parentMaterial"));
|
||||
group.m_properties.push_back(property);
|
||||
|
||||
// Passing in same group as main and comparison instance to enable custom value comparison for highlighting modified properties
|
||||
@@ -139,7 +139,7 @@ namespace MaterialEditor
|
||||
MaterialDocumentRequestBus::EventResult(materialAsset, m_documentId, &MaterialDocumentRequestBus::Events::GetAsset);
|
||||
|
||||
const AZStd::string groupNameId = UvGroupName;
|
||||
const AZStd::string groupDisplayName = "UV Names";
|
||||
const AZStd::string groupDisplayName = "UV Sets";
|
||||
const AZStd::string groupDescription = "UV set names in this material, which can be renamed to match those in the model.";
|
||||
auto& group = m_groups[groupNameId];
|
||||
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ namespace MaterialEditor
|
||||
bool CompareInstanceNodeProperties(
|
||||
const AzToolsFramework::InstanceDataNode* source, const AzToolsFramework::InstanceDataNode* target) const;
|
||||
|
||||
void AddDetailsGroup();
|
||||
void AddOverviewGroup();
|
||||
void AddUvNamesGroup();
|
||||
void AddPropertiesGroup();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user