7 [
Attribute(
"0",
desc:
"If bool equals this value than the condition is shown")]
8 protected bool m_bShowDescriptionOnBool;
10 [
Attribute(
"0",
desc:
"If true it will only show the description if the condition was false before and is now true (meaning if you save the attributes and open it again it will not show the warning), else it will always set the warning if the condition is true wether it was changed or not")]
11 protected bool m_bOnlyShowIfConditionChanged;
13 protected bool m_bStartingValue;
18 super.InitDynamicDescription(attribute);
21 if (!m_bOnlyShowIfConditionChanged)
28 m_bStartingValue = var.GetBool();
34 if (!super.IsValid(attribute, attributeUi))
41 if (!m_bOnlyShowIfConditionChanged)
42 return m_bShowDescriptionOnBool == var.GetBool();
44 return m_bShowDescriptionOnBool == var.GetBool() && m_bStartingValue != var.GetBool();