4 protected SCR_HintSequenceComponent m_Sequence;
6 protected void OnSequenceChange(
bool isActive)
10 protected SCR_HintSequenceComponent GetSequence()
14 return SCR_HintSequenceComponent.Cast(currentMode.FindComponent(SCR_HintSequenceComponent));
19 override bool IsServer()
23 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
25 SCR_HintSequenceComponent sequence = GetSequence();
26 return sequence !=
null;
28 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
30 SCR_HintSequenceComponent sequence = GetSequence();
32 sequence.ToggleSequence();
36 m_Sequence= GetSequence();
38 m_Sequence.GetOnSequenceChange().Insert(OnSequenceChange);
40 override void Untrack()
44 m_Sequence.GetOnSequenceChange().Remove(OnSequenceChange);
45 m_Sequence.StopSequence();