示例#1
0
    public void OnUIPanelOpen(bool openWithBackground = true)
    {
        TimeManager.SetPauseTime();

        if (!(TacticalMode.IsEnabled() && openedUIPanels == 0) && openWithBackground)
        {
            blocker.SetActive(true);
        }

        openedUIPanels++;
        Debug.Log("UI opened: " + openedUIPanels);
    }
示例#2
0
    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;
                }
            }
        }
示例#4
0
 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;
        }