Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PlayerCommandsConfig.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 [BaseContainerProps(configRoot: true)]
4 class SCR_PlayerCommandsConfig : Managed
5 {
6  [Attribute("", UIWidgets.Object, "Available commands")]
7  protected ref array<ref SCR_BaseRadialCommand> m_aCommands;
8 
9  array<ref SCR_BaseRadialCommand> GetCommands()
10  {
11  return m_aCommands;
12  }
13 };
14 
15 //------------------------------------------------------------------------------------------------
17 [BaseContainerProps(configRoot: true)]
19 {
20  [Attribute("", UIWidgets.Object, "Root category of the commanding radial menu")]
21  protected ref SCR_PlayerCommandingMenuCategoryElement m_RootCategory;
22 
24  {
25  return m_RootCategory;
26  }
27 };
28 
29 //------------------------------------------------------------------------------------------------
33 {
34  [Attribute("", UIWidgets.EditBox, "Name of the command used from SCR_PlayerCommandsConfig" )]
35  protected string m_sCommandName;
36 
37  [Attribute("", UIWidgets.EditBox, "Name of the command that is displayed in the menu" )]
38  protected string m_sCommandDisplayText;
39 
40  protected string m_sCommandCustomDisplayText;
41 
42  //------------------------------------------------------------------------------------------------
43  string GetCommandName()
44  {
45  return m_sCommandName;
46  }
47 
48  //------------------------------------------------------------------------------------------------
49  void SetCommandName(string name)
50  {
51  m_sCommandName = name;
52  }
53 
54  //------------------------------------------------------------------------------------------------
55  string GetCommandDisplayText()
56  {
57  return m_sCommandDisplayText;
58  }
59 
60  //------------------------------------------------------------------------------------------------
61  string GetCommandCustomName()
62  {
63  return m_sCommandCustomDisplayText;
64  }
65 
66  //------------------------------------------------------------------------------------------------
67  void SetCommandCustomName(string customName)
68  {
69  m_sCommandCustomDisplayText = customName;
70  }
71 };
72 
73 //------------------------------------------------------------------------------------------------
77 {
78 
79 };
80 
81 //------------------------------------------------------------------------------------------------
85 {
86  [Attribute("", UIWidgets.EditBox, "Name of the category that is displayed in the menu" )]
87  protected string m_sCategoryDisplayText;
88 
89  [Attribute("", UIWidgets.Object, "Elements in the given category")]
90  protected ref array<ref SCR_PlayerCommandingMenuBaseElement> m_aElements;
91 
92  [Attribute()]
93  protected bool m_bShowOnMap;
94 
95  //------------------------------------------------------------------------------------------------
96  string GetCategoryDisplayText()
97  {
98  return m_sCategoryDisplayText;
99  }
100 
101  //------------------------------------------------------------------------------------------------
102  void SetCategoryDisplayText(string displayText)
103  {
104  m_sCategoryDisplayText = displayText;
105  }
106 
107  //------------------------------------------------------------------------------------------------
108  array<ref SCR_PlayerCommandingMenuBaseElement> GetCategoryElements()
109  {
110  return m_aElements;
111  }
112 
113  //------------------------------------------------------------------------------------------------
114  bool GetCanShowOnMap()
115  {
116  return m_bShowOnMap;
117  }
118 };
119 
121 {
122  //------------------------------------------------------------------------------------------------
123  override bool _WB_GetCustomTitle(BaseContainer source, out string title)
124  {
125  // Make sure variable exists
126  int index = source.GetVarIndex("m_sCommandName");
127  if (index == -1)
128  return false;
129 
130  // Tag string
131  source.Get("m_sCommandName", title);
132 
133  return true;
134  }
135 }
m_aCommands
protected ref array< ref SCR_BaseRadialCommand > m_aCommands
Definition: SCR_CommandingManagerComponent.c:22
BaseContainerCustomTitleField
class SCR_KeyBindingFilter BaseContainerCustomTitleField("m_sBindString")
Definition: SCR_KeyBindingMenuConfig.c:113
SCR_PlayerCommandingMenuCommand
Commanding menu commanding element class.
Definition: SCR_PlayerCommandsConfig.c:32
m_aElements
protected ref array< ref SCR_TabViewContent > m_aElements
Definition: SCR_TabViewComponent.c:13
Attribute
SCR_PlayerCommandsConfig Attribute
Post-process effect of scripted camera.
SCR_BaseGroupCommandTitleField
Definition: SCR_PlayerCommandsConfig.c:120
SCR_PlayerCommandsConfig
Commands config root.
Definition: SCR_PlayerCommandsConfig.c:4
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition: SCR_DestructionSynchronizationComponent.c:17
SCR_PlayerCommandingMenuBaseElement
Commanding menu base element class.
Definition: SCR_PlayerCommandsConfig.c:76
SCR_PlayerCommandingMenuConfig
Commanding menu config root.
Definition: SCR_PlayerCommandsConfig.c:18
SCR_PlayerCommandingMenuCategoryElement
Commanding menu base element class.
Definition: SCR_PlayerCommandsConfig.c:84
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468