Auto gen updates fixing property declarations.

This commit is contained in:
chcurran
2021-05-03 09:37:23 -07:00
parent 2fc130d4ab
commit 071a642804
6 changed files with 48 additions and 20 deletions
@@ -186,21 +186,16 @@ void {{attribute_QualifiedName}}::Reflect(AZ::ReflectContext* context)
->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly)
{% if attribute_Category is defined %}
->Attribute(AZ::Edit::Attributes::Category, "{{ attribute_Category }}")
->Attribute(AZ::Edit::Attributes::Category, "{{ attribute_Category }}")
{%- endif %}
{% if attribute_Icon is defined %}
->Attribute(AZ::Edit::Attributes::Icon, "{{ attribute_Icon }}")
->Attribute(AZ::Edit::Attributes::Icon, "{{ attribute_Icon }}")
{%- endif %}
{% if attribute_Deprecated is defined %}
->Attribute(AZ::Edit::Attributes::Deprecated, "{{ attribute_Deprecated }}")
->Attribute(AZ::Edit::Attributes::Deprecated, "{{ attribute_Deprecated }}")
{%- endif %}
{% set uihandler = 'AZ::Edit::UIHandlers::Default' %}
{% for Property in Class.iter('Property') %}
{% for item in Property.iter('PropertyData') %}
{% for item in Class.iter('Property') %}
{% if item.attrib['UIHandler'] is defined %}
{% set uihandler = item.attrib['UIHandler'] %}
{% endif %}
@@ -208,12 +203,11 @@ void {{attribute_QualifiedName}}::Reflect(AZ::ReflectContext* context)
{% if item.attrib['Description'] is defined %}
{% set description = item.attrib['Description'] %}
{% endif %}
// {{ item.attrib['Name'] }}
->DataElement({{ uihandler }}, &{{ attribute_Name }}::{{ Property.attrib['Name'] }}, "{{ item.attrib['Name'] }}", "{{ description }}")
{% for EditAttribute in Property.iter('EditAttribute') %}
->Attribute({{ EditAttribute.attrib['Key'] }}, {{ EditAttribute.attrib['Value'] }})
{% endfor %}
{% endfor %}
// {{ item.attrib['Name'] }}
->DataElement({{ uihandler }}, &{{ attribute_Name }}::{{ item.attrib['Name'] }}, "{{ item.attrib['Name'] }}", "{{ description }}")
{% for EditAttribute in item.iter('EditAttribute') %}
->Attribute({{ EditAttribute.attrib['Key'] }}, {{ EditAttribute.attrib['Value'] }})
{% endfor %}
{% endfor %}
;
}