Example #1
0
        /**
         * Set the editLocked state
         */
        public void SetEditLocked(bool editLocked)
        {
            if (_editLocked != editLocked)
            {
                _editLocked = editLocked;
                EditLockedStateChanged.Send(_editLocked);

                if (_editLocked)
                {
                    CockpitStateSave.Save();
                }
            }
        }
        /**
         * Set the editLocked state
         */
        public void SetEditLocked(bool editLocked)
        {
            if (_editLocked != editLocked)
            {
                _editLocked = editLocked;
                EditLockedStateChanged.Send(_editLocked);

                if (_editLocked)
                {
                    CockpitStateSave.Save();
                    FindObjectOfType <CockpitUIMode>().Override(CockpitUIMode.CockpitModeOverride.None);
                }
            }
        }