4 protected bool m_bIsGameTimePaused;
9 protected void UpdateGameTimePause()
11 if (m_bIsGameTimePaused !=
m_World.IsGameTimePaused())
13 m_bIsGameTimePaused =
m_World.IsGameTimePaused();
15 Toggle(!m_bIsGameTimePaused, !m_bIsGameTimePaused);
20 override bool IsServer()
26 override bool CanBeShown(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
28 return !Replication.IsRunning();
32 override bool CanBePerformed(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags)
34 return !Replication.IsRunning();
38 override void Perform(
SCR_EditableEntityComponent hoveredEntity, notnull set<SCR_EditableEntityComponent> selectedEntities, vector cursorWorldPosition,
int flags,
int param = -1)
42 pauseManager.TogglePause();
51 m_bIsGameTimePaused =
m_World.IsGameTimePaused();
52 GetGame().GetCallqueue().CallLater(UpdateGameTimePause, 1,
true);
54 Toggle(!m_bIsGameTimePaused, !m_bIsGameTimePaused);
58 override void Untrack()
60 GetGame().GetCallqueue().Remove(UpdateGameTimePause);