Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HitZoneGroupNameHolder.c
Go to the documentation of this file.
2[BaseContainerProps(configRoot: true)]
5 [Attribute(desc: "List of all hitzone group notification data. That is used to display in notification what is being healed/repaired")]
6 protected ref array<ref SCR_HitZoneGroupName> m_aHitZoneGroupNames;
7
8 //------------------------------------------------------------------------------------------------
14 {
15 foreach (SCR_HitZoneGroupName nameData : m_aHitZoneGroupNames)
16 {
17 if (nameData.GetHitZoneGroup() == hitZoneGroup)
18 return nameData.m_sHitZoneGroupName;
19 }
20
21 Print("Could not find hitZoneGroup name for: '" + typename.EnumToString(EHitZoneGroup, hitZoneGroup) + "'", LogLevel.ERROR);
22 return string.Empty;
23 }
24}
25
26//------------------------------------------------------------------------------------------------
28class SCR_HitZoneGroupName
29{
30 [Attribute(desc: "Text shown in notification if the provided hitzone group is send", uiwidget: UIWidgets.LocaleEditBox)]
31 LocalizedString m_sHitZoneGroupName;
32
33 //------------------------------------------------------------------------------------------------
38 {
39 return EHitZoneGroup.VIRTUAL;
40 }
41}
42
43//------------------------------------------------------------------------------------------------
45class SCR_VehicleHitZoneGroupName : SCR_HitZoneGroupName
46{
47 [Attribute(uiwidget: UIWidgets.SearchComboBox, desc: "If this hitzone is given to the notification it will display this data. Only the first entry in the action is checked and it can include multiple", enums: ParamEnumArray.FromEnum(EVehicleHitZoneGroup))]
49
50 //------------------------------------------------------------------------------------------------
52 {
54 }
55}
56
57//------------------------------------------------------------------------------------------------
59class SCR_CharacterHitZoneGroupName : SCR_HitZoneGroupName
60{
61 [Attribute(uiwidget: UIWidgets.SearchComboBox, desc: "If this hitzone is given to the notification it will display this data.", enums: ParamEnumArray.FromEnum(ECharacterHitZoneGroup))]
62 protected ECharacterHitZoneGroup m_eCharacterHitZoneGroup;
63
64 //------------------------------------------------------------------------------------------------
66 {
67 return m_eCharacterHitZoneGroup;
68 }
69}
EHitZoneGroup
SCR_VehicleHitZoneGroupName SCR_HitZoneGroupName SCR_BaseContainerCustomTitleEnum(ECharacterHitZoneGroup, "m_eCharacterHitZoneGroup")
override EHitZoneGroup GetHitZoneGroup()
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
class SCR_HitZoneGroupNameHolder BaseContainerProps()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Holds the name data to show which parts of the vehicle or character the player is healing.
LocalizedString GetHitZoneGroupName(EHitZoneGroup hitZoneGroup)
ref array< ref SCR_HitZoneGroupName > m_aHitZoneGroupNames
override EHitZoneGroup GetHitZoneGroup()
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