Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignHintStorage.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
2 [BaseContainerProps(configRoot: true)]
4 {
5  [Attribute()]
6  protected ref array<ref SCR_CampaignHintEntry> m_aHintEntries;
7 
8  //------------------------------------------------------------------------------------------------
9  SCR_HintUIInfo GetHintByEnum(EHint id)
10  {
11  foreach (SCR_CampaignHintEntry hintEntry : m_aHintEntries)
12  {
13  if (hintEntry.GetHintId() == id)
14  return hintEntry.GetHintInfo();
15  }
16 
17  return null;
18  }
19 }
20 
21 //------------------------------------------------------------------------------------------------
23 class SCR_CampaignHintEntry
24 {
25  [Attribute(uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(EHint))]
26  protected EHint m_eHintId;
27 
28  [Attribute()]
29  protected ref SCR_HintUIInfo m_HintInfo;
30 
31  //------------------------------------------------------------------------------------------------
32  EHint GetHintId()
33  {
34  return m_eHintId;
35  }
36 
37  //------------------------------------------------------------------------------------------------
38  SCR_HintUIInfo GetHintInfo()
39  {
40  return m_HintInfo;
41  }
42 }
SCR_BaseContainerCustomTitleEnum
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Definition: SCR_CampaignHintStorage.c:22
m_aHintEntries
protected ref array< ref SCR_CampaignHintEntry > m_aHintEntries
Definition: SCR_CampaignHintStorage.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_HintUIInfo
Definition: SCR_HintUIInfo.c:2
SCR_CampaignHintStorage
Definition: SCR_CampaignHintStorage.c:3
EHint
EHint
Definition: EHint.c:10
BaseContainerProps
class SCR_CampaignHintStorage BaseContainerProps()