private void AddState(UIState state, SSCUIState uistate) { var profileinterface = new ConditionalInterface(() => _canShowUITable[uistate]); profileinterface.SetState(state); _cdInterface.Add(profileinterface); }
internal bool IsActive(SSCUIState state) { if (!_canShowUITable.ContainsKey(state)) { throw new ArgumentException("不存在此UI状态"); } return(_canShowUITable[state]); }
internal void SetState(SSCUIState state, bool value) { if (!_canShowUITable.ContainsKey(state)) { throw new ArgumentException("不存在此UI状态"); } _canShowUITable[state] = value; }
internal void ToggleState(SSCUIState state) { if (!_canShowUITable.ContainsKey(state)) { throw new ArgumentException("不存在此UI状态"); } _canShowUITable[state] ^= true; }
internal void ChangeState(SSCUIState state) { GuiManager.ToggleState(state); }