Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_HintTutorialList.c
Go to the documentation of this file.
1 [BaseContainerProps(configRoot: true)]
3 {
4  [Attribute()]
5  protected ref array<ref SCR_HintTutorial> m_aHints;
6 
7  SCR_HintUIInfo GetHint(SCR_ECampaignTutorialArlandStage stage, string hintname = "")
8  {
9  foreach (SCR_HintTutorial hint:m_aHints)
10  {
11  if (stage == hint.GetEnum())
12  {
13  if (!hintname.IsEmpty())
14  {
15  if (hintname == hint.GetBaseString())
16  return hint.GetHint();
17  continue;
18  }
19  return hint.GetHint();
20  }
21  }
22  return null;
23  }
24 }
25 
27 class SCR_HintTutorial
28 {
29  [Attribute()]
30  protected ref SCR_HintUIInfo m_Hint;
31 
32  [Attribute(defvalue: "none")]
33  protected string m_sBaseOverviewName;
34 
35  [Attribute(defvalue: "0", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(SCR_ECampaignTutorialArlandStage))]
37 
39  {
40  return m_eStage;
41  }
42 
44  {
45  return m_Hint;
46  }
47 
48  string GetBaseString()
49  {
50  return m_sBaseOverviewName;
51  }
52 };
BaseContainerProps
class SCR_HintTutorialList BaseContainerProps()
SCR_BaseContainerCustomTitleEnum
class SCR_HintTutorialList SCR_BaseContainerCustomTitleEnum(SCR_ECampaignTutorialArlandStage, "m_eStage")
Definition: SCR_HintTutorialList.c:26
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_HintUIInfo
Definition: SCR_HintUIInfo.c:2
SCR_HintTutorialList
Definition: SCR_HintTutorialList.c:2
GetHint
SCR_HintUIInfo GetHint(SCR_ECampaignTutorialArlandStage stage, string hintname="")
Definition: SCR_HintTutorialList.c:5
SCR_ECampaignTutorialArlandStage
SCR_ECampaignTutorialArlandStage
Definition: SCR_ECampaignTutorialArlandStage.c:1
m_aHints
protected ref array< ref SCR_HintTutorial > m_aHints
Definition: SCR_HintTutorialList.c:3
m_eStage
protected SCR_ECampaignTutorialArlandStage m_eStage
Definition: SCR_CampaignTutorialComponentArland.c:38