Created a toggle switch to enable and disable groups through the EditContext
Signed-off-by: Jose <jotamkin@amazon.com>
This commit is contained in:
@@ -61,8 +61,9 @@ namespace GradientSignal
|
||||
|
||||
->DataElement(0, &GradientSampler::m_invertInput, "Invert Input", "")
|
||||
->Attribute(AZ::Edit::Attributes::ChangeNotify, &GradientSampler::ChangeNotify)
|
||||
->DataElement(0, &GradientSampler::m_enableTransform, "Enable Transform", "")
|
||||
->Attribute(AZ::Edit::Attributes::ChangeNotify, &GradientSampler::ChangeNotify)
|
||||
|
||||
->ClassElement(AZ::Edit::ClassElements::Group, "Enable Transform", &GradientSampler::m_enableTransform)
|
||||
->Attribute(AZ::Edit::Attributes::AutoExpand, false)
|
||||
->DataElement(0, &GradientSampler::m_translate, "Translate", "")
|
||||
->Attribute(AZ::Edit::Attributes::ReadOnly, &GradientSampler::AreTransformSettingsDisabled)
|
||||
->Attribute(AZ::Edit::Attributes::ChangeNotify, &GradientSampler::ChangeNotify)
|
||||
@@ -73,8 +74,8 @@ namespace GradientSignal
|
||||
->Attribute(AZ::Edit::Attributes::ReadOnly, &GradientSampler::AreTransformSettingsDisabled)
|
||||
->Attribute(AZ::Edit::Attributes::ChangeNotify, &GradientSampler::ChangeNotify)
|
||||
|
||||
->DataElement(0, &GradientSampler::m_enableLevels, "Enable Levels", "")
|
||||
->Attribute(AZ::Edit::Attributes::ChangeNotify, &GradientSampler::ChangeNotify)
|
||||
->ClassElement(AZ::Edit::ClassElements::Group, "Enable Levels", &GradientSampler::m_enableLevels)
|
||||
->Attribute(AZ::Edit::Attributes::AutoExpand, false)
|
||||
->DataElement(AZ::Edit::UIHandlers::Slider, &GradientSampler::m_inputMid, "Input Mid", "")
|
||||
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
|
||||
->Attribute(AZ::Edit::Attributes::Max, 10.0f)
|
||||
|
||||
Reference in New Issue
Block a user