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_LoadSessionToolbarAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_LoadSessionToolbarAction
:
SCR_EditorToolbarAction
3
{
4
//------------------------------------------------------------------------------------------------
5
override
bool
IsServer
()
6
{
7
//--- The action opens local UI
8
return
false
;
9
}
10
11
//------------------------------------------------------------------------------------------------
12
override
bool
CanBeShown(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
13
{
14
//--- Disallow if no saving is configured for current scenario
15
if
(!
GetGame
().GetSaveGameManager().IsSavingEnabled())
16
return
false
;
17
18
//--- Loading is always available for the host and in singleplayer
19
if
(
Replication
.IsServer())
20
return
true
;
21
22
//--- Loading is available only if the game is not hosted (the host has exclusive access to that feature, nobody should do it without their knowledge)
23
SCR_BaseGameMode
gameMode =
SCR_BaseGameMode
.Cast(
GetGame
().
GetGameMode
());
24
return
gameMode && !gameMode.
IsHosted
();
25
}
26
27
//------------------------------------------------------------------------------------------------
28
override
bool
CanBePerformed(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
29
{
30
return
CanBeShown(hoveredEntity, selectedEntities, cursorWorldPosition,
flags
);
31
}
32
33
//------------------------------------------------------------------------------------------------
34
override
void
Perform(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
,
int
param = -1)
35
{
36
GetGame
().GetMenuManager().OpenDialog(
ChimeraMenuPreset
.EditorLoadDialog);
37
}
38
}
flags
SCR_EAIThreatSectorFlags flags
Definition
AIControlComponentSerializer.c:16
ChimeraMenuPreset
ChimeraMenuPreset
Menu presets.
Definition
ChimeraMenuBase.c:4
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseContainerCustomTitleUIInfo
class SCR_ArsenalGameModeUIDataHolder SCR_BaseContainerCustomTitleUIInfo("m_UIInfo")
Definition
SCR_ArsenalManagerComponent.c:1752
GetGameMode
SCR_BaseGameMode GetGameMode()
Definition
SCR_BaseGameModeComponent.c:15
Replication
Main replication API.
Definition
Replication.c:14
SCR_BaseEditorAction::IsServer
bool IsServer()
Definition
SCR_BaseEditorAction.c:160
SCR_BaseGameMode
Definition
SCR_BaseGameMode.c:139
SCR_BaseGameMode::IsHosted
bool IsHosted()
Definition
SCR_BaseGameMode.c:418
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EditorToolbarAction
Definition
SCR_EditorToolbarAction.c:4
SCR_LoadSessionToolbarAction
Definition
SCR_LoadSessionToolbarAction.c:3
vector
Definition
vector.c:13
scripts
Game
Editor
Containers
Actions
ToolbarActions
SCR_LoadSessionToolbarAction.c
Generated by
1.17.0