8 protected string m_sCustomName;
10 [
Attribute(
desc:
"When enabled, the action will delete the rewind point instead of loading it.")]
11 protected bool m_bIsDelete;
13 protected SCR_RewindComponent m_RewindManager;
19 m_Toolbar.MarkForRefresh();
23 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
25 if (Replication.IsRunning())
28 SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
29 return rewindManager && rewindManager.HasRewindPoint();
33 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
37 SCR_RewindComponent rewindManager = SCR_RewindComponent.GetInstance();
38 rewindManager.DeleteRewindPoint();
42 pauseManager.SetPause(
true);
51 override void OnInit(SCR_ActionsToolbarEditorUIComponent toolbar)
54 GetGame().GetSaveManager().GetOnSaved().Insert(OnSaveChanged);
55 GetGame().GetSaveManager().GetOnDeleted().Insert(OnSaveChanged);
59 override void OnExit(SCR_ActionsToolbarEditorUIComponent toolbar)
61 GetGame().GetSaveManager().GetOnSaved().Insert(OnSaveChanged);
62 GetGame().GetSaveManager().GetOnDeleted().Insert(OnSaveChanged);