Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DamageStateConfig.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot: true)]
3{
4 [Attribute(desc: "An array of all damage states to obtain the Icon and Color")]
5 protected ref array<ref SCR_DamageStateInfo> m_aDamageStateUiInfo;
6
7 [Attribute(desc: "UI info for Unconscious state")]
9
10 [Attribute(desc: "UI info for Death state")]
12
13 [Attribute(desc: "UI info for Destroyed state")]
15
16 [Attribute(desc: "UI info for Fractured state")]
18
25 {
26 foreach(SCR_DamageStateInfo damageStateInfo: m_aDamageStateUiInfo)
27 {
28 if (damageStateInfo.m_eDamageType == damageType)
29 return damageStateInfo.m_UiInfo;
30 }
31
32 Print(string.Format("'SCR_DamageStateConfig': %1 is not included in 'm_aDamageStateUiInfo' thus cannot get UIinfo", typename.EnumToString(EDamageType, damageType)), LogLevel.WARNING);
33 return null;
34 }
35
41 int GetDamageStateInfoArray(out notnull array<ref SCR_DamageStateInfo> damageStateInfoArray)
42 {
43 damageStateInfoArray.Clear();
44
45 foreach(SCR_DamageStateInfo damageStateInfo: m_aDamageStateUiInfo)
46 damageStateInfoArray.Insert(damageStateInfo);
47
48 return damageStateInfoArray.Count();
49 }
50
59
68
77
86};
87
90{
91 [Attribute(desc: "Damage type associated with UI info", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EDamageType))]
92 EDamageType m_eDamageType;
93
94 [Attribute(desc: "UI info of damage type, including colors and background images")]
95 ref SCR_DamageStateUIInfo m_UiInfo;
96};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_DamageStateUIInfo GetUiInfo(EDamageType damageType)
ref SCR_DamageStateUIInfo m_UnconciousStateUiInfo
SCR_DamageStateUIInfo GetDeathStateUiInfo()
ref array< ref SCR_DamageStateInfo > m_aDamageStateUiInfo
ref SCR_DamageStateUIInfo m_FracturedStateUiInfo
int GetDamageStateInfoArray(out notnull array< ref SCR_DamageStateInfo > damageStateInfoArray)
ref SCR_DamageStateUIInfo m_DestroyedStateUiInfo
ref SCR_DamageStateUIInfo m_DeathStateUiInfo
SCR_DamageStateUIInfo GetDestroyedStateUiInfo()
SCR_DamageStateUIInfo GetUnconciousStateUiInfo()
SCR_DamageStateUIInfo GetFracturedStateUiInfo()
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute
EDamageType
Definition EDamageType.c:13