Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_HitZoneGroupNameHolder.c
Go to the documentation of this file.
1 [BaseContainerProps(configRoot: true)]
4 {
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  //------------------------------------------------------------------------------------------------
13  LocalizedString GetHitZoneGroupName(EHitZoneGroup hitZoneGroup)
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 //------------------------------------------------------------------------------------------------
27 [BaseContainerProps(), BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")]
28 class 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  //------------------------------------------------------------------------------------------------
37  EHitZoneGroup GetHitZoneGroup()
38  {
39  return EHitZoneGroup.VIRTUAL;
40  }
41 }
42 
43 //------------------------------------------------------------------------------------------------
45 class 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))]
48  protected EVehicleHitZoneGroup m_eVehicleHitZoneGroup;
49 
50  //------------------------------------------------------------------------------------------------
51  override EHitZoneGroup GetHitZoneGroup()
52  {
54  }
55 }
56 
57 //------------------------------------------------------------------------------------------------
59 class 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  //------------------------------------------------------------------------------------------------
65  override EHitZoneGroup GetHitZoneGroup()
66  {
67  return m_eCharacterHitZoneGroup;
68  }
69 }
ECharacterHitZoneGroup
ECharacterHitZoneGroup
Definition: SCR_CharacterDamageManagerComponent.c:1
SCR_VehicleHitZoneGroupName
Definition: SCR_HitZoneGroupNameHolder.c:45
SCR_BaseContainerCustomTitleEnum
SCR_VehicleHitZoneGroupName SCR_HitZoneGroupName SCR_BaseContainerCustomTitleEnum(ECharacterHitZoneGroup, "m_eCharacterHitZoneGroup")
Definition: SCR_HitZoneGroupNameHolder.c:58
m_eVehicleHitZoneGroup
protected EVehicleHitZoneGroup m_eVehicleHitZoneGroup
Definition: SCR_HitZoneGroupNameHolder.c:29
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
GetHitZoneGroup
override EHitZoneGroup GetHitZoneGroup()
Definition: SCR_HitZoneGroupNameHolder.c:32
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_HitZoneGroupNameHolder
Holds the name data to show which parts of the vehicle or character the player is healing.
Definition: SCR_HitZoneGroupNameHolder.c:3
BaseContainerProps
class SCR_HitZoneGroupNameHolder BaseContainerProps()
EVehicleHitZoneGroup
EVehicleHitZoneGroup
Definition: SCR_VehicleDamageManagerComponent.c:1
m_aHitZoneGroupNames
protected ref array< ref SCR_HitZoneGroupName > m_aHitZoneGroupNames
Definition: SCR_HitZoneGroupNameHolder.c:3
LocalizedString
Definition: LocalizedString.c:21