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_FactionCommanderBaseMenuHandler.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_FactionCommanderBaseMenuHandler
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
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
position
vector position
Definition
SCR_DestructibleTreeV2.c:30
SCR_EGroupRole
SCR_EGroupRole
Group roles.
Definition
SCR_EGroupRole.c:3
Faction
Definition
Faction.c:13
IEntity
Definition
IEntity.c:13
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_AIGroup::GetPlayerCount
int GetPlayerCount(bool checkMasterAndSlaves=false)
Definition
SCR_AIGroup.c:989
SCR_AIGroup::GetGroupRole
SCR_EGroupRole GetGroupRole()
Definition
SCR_AIGroup.c:568
SCR_FactionCommanderBaseMenuHandler
Definition
SCR_FactionCommanderBaseMenuHandler.c:3
SCR_FactionCommanderBaseMenuHandler::OnEntryHovered
void OnEntryHovered(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
SCR_FactionCommanderBaseMenuHandler::m_MenuEntry
SCR_FactionCommanderMenuEntry m_MenuEntry
Definition
SCR_FactionCommanderBaseMenuHandler.c:4
SCR_FactionCommanderBaseMenuHandler::SetMenuEntry
void SetMenuEntry(SCR_FactionCommanderMenuEntry menuEntry)
Definition
SCR_FactionCommanderBaseMenuHandler.c:7
SCR_FactionCommanderBaseMenuHandler::CanGroupEntryBeSelected
bool CanGroupEntryBeSelected(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group, out string disabledText="")
Definition
SCR_FactionCommanderBaseMenuHandler.c:52
SCR_FactionCommanderBaseMenuHandler::CanGroupEntryBeShown
bool CanGroupEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group)
Definition
SCR_FactionCommanderBaseMenuHandler.c:43
SCR_FactionCommanderBaseMenuHandler::CanEntryBeSelected
bool CanEntryBeSelected(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, out string disabledText="")
Definition
SCR_FactionCommanderBaseMenuHandler.c:37
SCR_FactionCommanderBaseMenuHandler::OnCommandIssued
void OnCommandIssued(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity, SCR_AIGroup group)
SCR_FactionCommanderBaseMenuHandler::GetLocalCommanderComponent
SCR_FactionCommanderPlayerComponent GetLocalCommanderComponent()
Definition
SCR_FactionCommanderBaseMenuHandler.c:19
SCR_FactionCommanderBaseMenuHandler::CanQuickEntryBeShown
bool CanQuickEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
Definition
SCR_FactionCommanderBaseMenuHandler.c:25
SCR_FactionCommanderBaseMenuHandler::CanEntryBeShown
bool CanEntryBeShown(notnull Faction commanderFaction, int playerId, vector position, IEntity hoveredEntity)
Definition
SCR_FactionCommanderBaseMenuHandler.c:31
SCR_FactionCommanderBaseMenuHandler::GetMenuEntry
SCR_FactionCommanderMenuEntry GetMenuEntry()
Definition
SCR_FactionCommanderBaseMenuHandler.c:13
vector
Definition
vector.c:13
GetPlayerController
proto external PlayerController GetPlayerController()
Definition
SCR_PlayerDeployMenuHandlerComponent.c:307
scripts
Game
FactionCommander
MenuHandlers
SCR_FactionCommanderBaseMenuHandler.c
Generated by
1.17.0