Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MapFactionCommanderRadialMenu.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "overriding Faction commander menu configs")]
5 protected ref array<ref SCR_FactionCommanderMenuConfig> m_aFactionCommanderMenuConfigs;
6
7 //------------------------------------------------------------------------------------------------
10 {
12 return ResourceName.Empty;
13
14 foreach (SCR_FactionCommanderMenuConfig config : m_aFactionCommanderMenuConfigs)
15 {
16 // if faction is not set, it means that config is for all factions
17 if (config.GetFactionKey().IsEmpty() || config.GetFactionKey() == faction.GetFactionKey())
18 return config.GetCommanderMenuConfig();
19 }
20
21 return ResourceName.Empty;
22 }
23}
24
26class SCR_FactionCommanderMenuConfig
28 [Attribute("", desc: "Faction, if faction is not set, it is used for all factions")]
29 protected FactionKey m_sFaction;
30
31 [Attribute("{B4F35F09884BF79A}Configs/FactionCommander/FactionCommanderMenuEntries.conf", desc: "Config can be set for every faction especially", params: "conf class=SCR_FactionCommanderMenuHierarchy")]
33
34 //------------------------------------------------------------------------------------------------
37 {
38 return m_sFaction;
39 }
40
41 //------------------------------------------------------------------------------------------------
43 ResourceName GetCommanderMenuConfig()
44 {
46 }
47}
ResourceName m_sCommanderMenuEntries
ResourceName GetCommanderMenuConfig()
SCR_MapFactionCommanderRadialMenu SCR_MapUIBaseComponent BaseContainerProps()] class SCR_FactionCommanderMenuConfig
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
FactionKey GetFactionKey()
Class for overriding commands on the map.
ResourceName GetCommanderMenuConfig(notnull Faction faction)
ref array< ref SCR_FactionCommanderMenuConfig > m_aFactionCommanderMenuConfigs
SCR_FieldOfViewSettings Attribute