public void OnUIPanelOpen(bool openWithBackground = true) { TimeManager.SetPauseTime(); if (!(TacticalMode.IsEnabled() && openedUIPanels == 0) && openWithBackground) { blocker.SetActive(true); } openedUIPanels++; Debug.Log("UI opened: " + openedUIPanels); }
public void OnUIPanelClose() { openedUIPanels--; if (openedUIPanels <= 0) { TimeManager.SetDefaultTime(); openedUIPanels = 0; blocker.SetActive(false); } if (openedUIPanels == 1 && TacticalMode.IsEnabled()) { blocker.SetActive(false); } Debug.Log("UI closed: " + openedUIPanels); }
private void Event_SetActiveObject(int celestialObjectId) { Logger.Info(celestialObjectId); activeCelestialObjectId = celestialObjectId; if (Mode != TacticalMode.General) { if (celestialObjectId > 0) { Mode = TacticalMode.SelectingSpaceObjectWithActive; } else { Mode = TacticalMode.SelectingSpaceObject; } } }
TacticalMode() { instance = this; }
public void CancelAction() { Mode = TacticalMode.General; }
public void SetAction(int moduleId, int actionId, TacticalMode mode) { Action = new ModuleAction(moduleId, actionId); Mode = mode; }