Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_MapFactionCommanderRadialMenu.c
Go to the documentation of this file.
1
2
class
SCR_MapFactionCommanderRadialMenu
:
SCR_MapUIBaseComponent
3
{
4
[
Attribute
(
desc
:
"overriding Faction commander menu configs"
)]
5
protected
ref array<ref SCR_FactionCommanderMenuConfig>
m_aFactionCommanderMenuConfigs
;
6
7
//------------------------------------------------------------------------------------------------
9
ResourceName
GetCommanderMenuConfig
(notnull
Faction
faction)
10
{
11
if
(!
m_aFactionCommanderMenuConfigs
)
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
25
[
BaseContainerProps
()]
26
class
SCR_FactionCommanderMenuConfig
27
{
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"
)]
32
protected
ResourceName
m_sCommanderMenuEntries
;
33
34
//------------------------------------------------------------------------------------------------
36
FactionKey
GetFactionKey
()
37
{
38
return
m_sFaction
;
39
}
40
41
//------------------------------------------------------------------------------------------------
43
ResourceName
GetCommanderMenuConfig
()
44
{
45
return
m_sCommanderMenuEntries
;
46
}
47
}
m_sFaction
string m_sFaction
Definition
SCR_AnalyticsDataCollectionTransferSuppliesModule.c:19
m_sCommanderMenuEntries
ResourceName m_sCommanderMenuEntries
Definition
SCR_Faction.c:108
GetCommanderMenuConfig
ResourceName GetCommanderMenuConfig()
Definition
SCR_Faction.c:898
BaseContainerProps
SCR_MapFactionCommanderRadialMenu SCR_MapUIBaseComponent BaseContainerProps()] class SCR_FactionCommanderMenuConfig
Definition
SCR_MapFactionCommanderRadialMenu.c:25
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
GetFactionKey
FactionKey GetFactionKey()
Definition
SCR_ScenarioFrameworkLayerBase.c:384
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
Faction
Definition
Faction.c:13
FactionKey
Definition
FactionKey.c:3
ResourceName
Definition
ResourceName.c:13
SCR_MapFactionCommanderRadialMenu
Class for overriding commands on the map.
Definition
SCR_MapFactionCommanderRadialMenu.c:3
SCR_MapFactionCommanderRadialMenu::GetCommanderMenuConfig
ResourceName GetCommanderMenuConfig(notnull Faction faction)
Definition
SCR_MapFactionCommanderRadialMenu.c:9
SCR_MapFactionCommanderRadialMenu::m_aFactionCommanderMenuConfigs
ref array< ref SCR_FactionCommanderMenuConfig > m_aFactionCommanderMenuConfigs
Definition
SCR_MapFactionCommanderRadialMenu.c:5
SCR_MapUIBaseComponent::SCR_MapUIBaseComponent
void SCR_MapUIBaseComponent()
Definition
SCR_MapUIBaseComponent.c:94
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Map
SCR_MapFactionCommanderRadialMenu.c
Generated by
1.17.0