Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BoolAttributeDynamicDescription.c
Go to the documentation of this file.
1
4[BaseContainerProps(), BaseContainerCustomCheckIntTitleField("m_bShowDescriptionOnBool", "Bool condition True", "Bool condition False", 1)]
6{
7 [Attribute("0", desc: "If bool equals this value than the condition is shown")]
9
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")]
12
13 protected bool m_bStartingValue;
14
15 //------------------------------------------------------------------------------------------------
16 override void InitDynamicDescription(notnull SCR_BaseEditorAttribute attribute, notnull SCR_BaseEditorAttributeUIComponent attributeUi)
17 {
18 super.InitDynamicDescription(attribute);
19
20 //~ No need to set starting value if always checks if condition true
22 return;
23
24 SCR_BaseEditorAttributeVar var = attribute.GetVariableOrCopy();
25 if (!var)
26 return;
27
29 }
30
31 //------------------------------------------------------------------------------------------------
32 override bool IsValid(notnull SCR_BaseEditorAttribute attribute, notnull SCR_BaseEditorAttributeUIComponent attributeUi)
33 {
34 if (!super.IsValid(attribute, attributeUi))
35 return false;
36
37 SCR_BaseEditorAttributeVar var = attribute.GetVariableOrCopy();
38 if (!var)
39 return false;
40
42 return m_bShowDescriptionOnBool == var.GetBool();
43 else
44 return m_bShowDescriptionOnBool == var.GetBool() && m_bStartingValue != var.GetBool();
45 }
46};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_ValuableIntelArsenalRefundEffect SCR_WeightedListArsenalRefundEffect BaseContainerCustomCheckIntTitleField("m_bEnabled", "Valuable Intel - Add XP", "(Disabled) Valuable Intel - Add XP", 1)
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
override void InitDynamicDescription(notnull SCR_BaseEditorAttribute attribute, notnull SCR_BaseEditorAttributeUIComponent attributeUi)
override bool IsValid(notnull SCR_BaseEditorAttribute attribute, notnull SCR_BaseEditorAttributeUIComponent attributeUi)
SCR_FieldOfViewSettings Attribute