Material editor: replacing modified property highlight color with indicator icons
Testing to see how easy it is to set up the indicated icons. Problematic because icons are to the left of property labels instead of the left of property widget. This completely destroys alignment. Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
+2
-1
@@ -41,7 +41,8 @@ namespace AtomToolsFramework
|
||||
AzToolsFramework::IPropertyEditorNotify* instanceNotificationHandler = {},
|
||||
QWidget* parent = {},
|
||||
const AZ::u32 saveStateKey = {},
|
||||
const AzToolsFramework::InstanceDataHierarchy::ValueComparisonFunction& valueComparisonFunction = {});
|
||||
const AzToolsFramework::InstanceDataHierarchy::ValueComparisonFunction& valueComparisonFunction = {},
|
||||
const AzToolsFramework::IndicatorQueryFunction& indicatorQueryFunction = {});
|
||||
|
||||
void Refresh() override;
|
||||
void Rebuild() override;
|
||||
|
||||
+3
-1
@@ -19,7 +19,8 @@ namespace AtomToolsFramework
|
||||
AzToolsFramework::IPropertyEditorNotify* instanceNotificationHandler,
|
||||
QWidget* parent,
|
||||
const AZ::u32 saveStateKey,
|
||||
const AzToolsFramework::InstanceDataHierarchy::ValueComparisonFunction& valueComparisonFunction)
|
||||
const AzToolsFramework::InstanceDataHierarchy::ValueComparisonFunction& valueComparisonFunction,
|
||||
const AzToolsFramework::IndicatorQueryFunction& indicatorQueryFunction)
|
||||
: InspectorGroupWidget(parent)
|
||||
{
|
||||
AZ::SerializeContext* context = nullptr;
|
||||
@@ -34,6 +35,7 @@ namespace AtomToolsFramework
|
||||
m_propertyEditor->SetHideRootProperties(true);
|
||||
m_propertyEditor->SetAutoResizeLabels(true);
|
||||
m_propertyEditor->SetValueComparisonFunction(valueComparisonFunction);
|
||||
m_propertyEditor->SetIndicatorQueryFunction(indicatorQueryFunction);
|
||||
m_propertyEditor->SetSavedStateKey(saveStateKey);
|
||||
m_propertyEditor->Setup(context, instanceNotificationHandler, false);
|
||||
m_propertyEditor->AddInstance(instance, instanceClassId, nullptr, instanceToCompare);
|
||||
|
||||
Reference in New Issue
Block a user