Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FactionCommanderBaseMenuHandler.c
Go to the documentation of this file.
3{
4 protected SCR_FactionCommanderMenuEntry m_MenuEntry;
5
6 //------------------------------------------------------------------------------------------------
7 void SetMenuEntry(SCR_FactionCommanderMenuEntry menuEntry)
8 {
9 m_MenuEntry = menuEntry;
10 }
11
12 //------------------------------------------------------------------------------------------------
13 SCR_FactionCommanderMenuEntry GetMenuEntry()
14 {
15 return m_MenuEntry;
16 }
17
18 //------------------------------------------------------------------------------------------------
19 protected SCR_FactionCommanderPlayerComponent GetLocalCommanderComponent()
20 {
21 return SCR_FactionCommanderPlayerComponent.Cast(GetGame().GetPlayerController().FindComponent(SCR_FactionCommanderPlayerComponent));
22 }
23
24 //------------------------------------------------------------------------------------------------
25 bool CanQuickEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
26 {
27 return true;
28 }
29
30 //------------------------------------------------------------------------------------------------
31 bool CanEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
32 {
33 return true;
34 }
35
36 //------------------------------------------------------------------------------------------------
37 bool CanEntryBeSelected(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, out string disabledText = "")
38 {
39 return true;
40 }
41
42 //------------------------------------------------------------------------------------------------
43 bool CanGroupEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group)
44 {
45 if (!group || group.GetPlayerCount() == 0 || group.GetGroupRole() == SCR_EGroupRole.COMMANDER)
46 return false;
47
48 return true;
49 }
50
51 //------------------------------------------------------------------------------------------------
52 bool CanGroupEntryBeSelected(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group, out string disabledText = "")
53 {
54 return true;
55 }
56
57 //------------------------------------------------------------------------------------------------
58 void OnEntryHovered(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity);
59
60 //------------------------------------------------------------------------------------------------
61 void OnCommandIssued(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group);
62}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
vector position
SCR_EGroupRole
Group roles.
int GetPlayerCount(bool checkMasterAndSlaves=false)
SCR_EGroupRole GetGroupRole()
void OnEntryHovered(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
void SetMenuEntry(SCR_FactionCommanderMenuEntry menuEntry)
bool CanGroupEntryBeSelected(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group, out string disabledText="")
bool CanGroupEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group)
bool CanEntryBeSelected(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, out string disabledText="")
void OnCommandIssued(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group)
SCR_FactionCommanderPlayerComponent GetLocalCommanderComponent()
bool CanQuickEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
bool CanEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
proto external PlayerController GetPlayerController()