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_RewindToolbarAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
2
class
SCR_RewindToolbarAction
:
SCR_EditorToolbarAction
3
{
4
[
Attribute
(
desc
:
"When enabled, the action will delete the rewind point instead of loading it."
)]
5
protected
bool
m_bIsDelete
;
6
7
protected
SCR_BaseToolbarEditorUIComponent
m_Toolbar
;
8
9
//---------------------------------------------------------------------------------------------
10
override
bool
CanBeShown
(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
)
11
{
12
SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
13
return
rewindManager && rewindManager.HasRewindPoint();
14
}
15
16
//---------------------------------------------------------------------------------------------
17
override
void
Perform
(
SCR_EditableEntityComponent
hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities,
vector
cursorWorldPosition,
int
flags
,
int
param = -1)
18
{
19
if
(
m_bIsDelete
)
20
{
21
SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
22
rewindManager.DeleteRewindPoint();
23
return
;
24
}
25
26
new
SCR_RewindDialog
();
27
}
28
29
//---------------------------------------------------------------------------------------------
30
override
void
OnInit
(SCR_ActionsToolbarEditorUIComponent toolbar)
31
{
32
m_Toolbar
= toolbar;
33
SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
34
if
(rewindManager)
35
rewindManager.GetOnRewindPointChanged().Insert(
OnRewindPointChanged
);
36
}
37
38
//---------------------------------------------------------------------------------------------
39
override
void
OnExit
(SCR_ActionsToolbarEditorUIComponent toolbar)
40
{
41
SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
42
if
(rewindManager)
43
rewindManager.GetOnRewindPointChanged().Remove(
OnRewindPointChanged
);
44
}
45
46
//---------------------------------------------------------------------------------------------
47
protected
void
OnRewindPointChanged
()
48
{
49
if
(
m_Toolbar
)
50
m_Toolbar
.MarkForRefresh();
51
}
52
}
flags
SCR_EAIThreatSectorFlags flags
Definition
AIControlComponentSerializer.c:16
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
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_BaseToolbarEditorUIComponent
Definition
SCR_BaseToolbarEditorUIComponent.c:6
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EditorToolbarAction
Definition
SCR_EditorToolbarAction.c:4
SCR_RewindDialog
Definition
SCR_RewindComponent.c:180
SCR_RewindToolbarAction
Definition
SCR_RewindToolbarAction.c:3
SCR_RewindToolbarAction::OnRewindPointChanged
void OnRewindPointChanged()
Definition
SCR_RewindToolbarAction.c:47
SCR_RewindToolbarAction::Perform
override void Perform(SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags, int param=-1)
Definition
SCR_RewindToolbarAction.c:17
SCR_RewindToolbarAction::OnExit
override void OnExit(SCR_ActionsToolbarEditorUIComponent toolbar)
Definition
SCR_RewindToolbarAction.c:39
SCR_RewindToolbarAction::m_Toolbar
SCR_BaseToolbarEditorUIComponent m_Toolbar
Definition
SCR_RewindToolbarAction.c:7
SCR_RewindToolbarAction::CanBeShown
override bool CanBeShown(SCR_EditableEntityComponent hoveredEntity, notnull set< SCR_EditableEntityComponent > selectedEntities, vector cursorWorldPosition, int flags)
Definition
SCR_RewindToolbarAction.c:10
SCR_RewindToolbarAction::m_bIsDelete
bool m_bIsDelete
Definition
SCR_RewindToolbarAction.c:5
SCR_RewindToolbarAction::OnInit
override void OnInit(SCR_ActionsToolbarEditorUIComponent toolbar)
Definition
SCR_RewindToolbarAction.c:30
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Editor
Containers
Actions
ToolbarActions
SCR_RewindToolbarAction.c
Generated by
1.17.0