Ejemplo n.º 1
0
        private void AddState(UIState state, SSCUIState uistate)
        {
            var profileinterface = new ConditionalInterface(() => _canShowUITable[uistate]);

            profileinterface.SetState(state);
            _cdInterface.Add(profileinterface);
        }
Ejemplo n.º 2
0
 internal bool IsActive(SSCUIState state)
 {
     if (!_canShowUITable.ContainsKey(state))
     {
         throw new ArgumentException("不存在此UI状态");
     }
     return(_canShowUITable[state]);
 }
Ejemplo n.º 3
0
 internal void SetState(SSCUIState state, bool value)
 {
     if (!_canShowUITable.ContainsKey(state))
     {
         throw new ArgumentException("不存在此UI状态");
     }
     _canShowUITable[state] = value;
 }
Ejemplo n.º 4
0
 internal void ToggleState(SSCUIState state)
 {
     if (!_canShowUITable.ContainsKey(state))
     {
         throw new ArgumentException("不存在此UI状态");
     }
     _canShowUITable[state] ^= true;
 }
Ejemplo n.º 5
0
 internal void ChangeState(SSCUIState state)
 {
     GuiManager.ToggleState(state);
 }