Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlayerCommandsConfig.c
Go to the documentation of this file.
2[BaseContainerProps(configRoot: true)]
5 [Attribute("", UIWidgets.Object, "Available commands")]
6 protected ref array<ref SCR_BaseRadialCommand> m_aCommands;
8 array<ref SCR_BaseRadialCommand> GetCommands()
9 {
10 return m_aCommands;
11 }
12};
15[BaseContainerProps(configRoot: true)]
17{
18 [Attribute(desc: "Commanding configs and actions pairs")]
20
25};
26
28[BaseContainerProps(configRoot: true)]
30{
31 [Attribute("", UIWidgets.Object, "Commanding configs and actions pairs")]
32 ref array<ref SCR_PlayerCommandingConfigActionPair> m_aActionConfigPairs;
33};
34
37{
38 [Attribute("", UIWidgets.EditBox, "Name of the action in ChimeraInputCommon.conf that triggers menu with selected config" )]
39 protected string m_sActionName;
40
41 [Attribute()]
43
44 //------------------------------------------------------------------------------------------------
46 {
47 return m_sActionName;
48 }
49
50 //------------------------------------------------------------------------------------------------
55}
56
59class SCR_PlayerCommandingMenuCommand : SCR_PlayerCommandingMenuBaseElement
60{
61 [Attribute("", UIWidgets.EditBox, "Name of the command used from SCR_PlayerCommandsConfig" )]
62 protected string m_sCommandName;
63
64 protected string m_sCommandCustomDisplayText;
65
66 //------------------------------------------------------------------------------------------------
67 string GetCommandName()
68 {
69 return m_sCommandName;
70 }
71
72 //------------------------------------------------------------------------------------------------
73 void SetCommandName(string name)
74 {
75 m_sCommandName = name;
76 }
77
78 //------------------------------------------------------------------------------------------------
79 string GetCommandCustomName()
80 {
81 return m_sCommandCustomDisplayText;
82 }
83
84 //------------------------------------------------------------------------------------------------
85 void SetCommandCustomName(string customName)
86 {
87 m_sCommandCustomDisplayText = customName;
88 }
89};
90
97
101{
102 [Attribute("", UIWidgets.EditBox, "Name of the category that is displayed in the menu" )]
103 protected string m_sCategoryDisplayText;
104
105 [Attribute("", UIWidgets.Object, "Elements in the given category")]
106 protected ref array<ref SCR_PlayerCommandingMenuBaseElement> m_aElements;
107
108 [Attribute("", UIWidgets.ResourceNamePicker, "Imageset source from which icon will be selected. If this field is left empty then default icon will be used.")]
110
111 [Attribute("", UIWidgets.EditBox, "Name of the icon associated to the category, taken from appropriate imageset set in the radial menu.\nIf this field is left empty then default icon will be used")]
112 protected string m_sIconName;
113
114 [Attribute()]
115 protected bool m_bShowOnMap;
116
117 //------------------------------------------------------------------------------------------------
119 {
121 }
122
123 //------------------------------------------------------------------------------------------------
124 void SetCategoryDisplayText(string displayText)
125 {
126 m_sCategoryDisplayText = displayText;
127 }
128
129 //------------------------------------------------------------------------------------------------
130 array<ref SCR_PlayerCommandingMenuBaseElement> GetCategoryElements()
131 {
132 return m_aElements;
133 }
134
135 //------------------------------------------------------------------------------------------------
137 {
138 return m_sImageset;
139 }
140
141 //------------------------------------------------------------------------------------------------
142 string GetIconName()
143 {
144 return m_sIconName;
145 }
146
147 //------------------------------------------------------------------------------------------------
149 {
150 return m_bShowOnMap;
151 }
152};
153
154class SCR_BaseGroupCommandTitleField : BaseContainerCustomTitleField
155{
156 //------------------------------------------------------------------------------------------------
157 override bool _WB_GetCustomTitle(BaseContainer source, out string title)
158 {
159 // Make sure variable exists
160 int index = source.GetVarIndex("m_sCommandName");
161 if (index == -1)
162 return false;
163
164 // Tag string
165 source.Get("m_sCommandName", title);
166
167 return true;
168 }
169}
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
SCR_PlayerCommandingConfigActionPair Managed SCR_BaseContainerLocalizedTitleField("m_sCommandName")
SCR_PlayerCommandingMenuBaseElement BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Commanding menus config to setup different menus to different keybinds.
Commanding menu base element class.
Commanding menu base element class.
array< ref SCR_PlayerCommandingMenuBaseElement > GetCategoryElements()
ref array< ref SCR_PlayerCommandingMenuBaseElement > m_aElements
ref SCR_PlayerCommandingMenuCategoryElement m_RootCategory
SCR_PlayerCommandingMenuCategoryElement GetRootCategory()
array< ref SCR_BaseRadialCommand > GetCommands()
ref array< ref SCR_BaseRadialCommand > m_aCommands
SCR_FieldOfViewSettings Attribute