示例#1
0
        public void UpdateSelf(int modeId)
        {
            _modeId = modeId;

            if (_activeMode != null)
            {
                _activeMode.HideSelf();
            }

            _activeMode = _availableModes[_modeId];
            _activeMode.ShowSelf();

            foreach (UIMode mode in _availableModes)
            {
                if (mode._modeId != _activeMode._modeId)
                {
                    mode.HideSelf();
                }
            }

            foreach (UIMode mode in _persistentModes)
            {
                mode.Redraw();
            }
        }
示例#2
0
        public void ShowSelf()
        {
            foreach (UIMode mode in _persistentModes)
            {
                mode.ShowSelf();
            }

            if (_modeId != -1)
            {
                _modeId     = 0;
                _activeMode = _availableModes[_modeId];
                _activeMode.ShowSelf();
            }
        }