private void UpdateFilterStates()
 {
     foreach (ManaFilterTab tab in this.m_tabs)
     {
         ManaFilterTab.FilterState dISABLED = ManaFilterTab.FilterState.DISABLED;
         if (this.m_tabsActive)
         {
             dISABLED = (tab.GetManaID() != this.m_currentFilterValue) ? ManaFilterTab.FilterState.OFF : ManaFilterTab.FilterState.ON;
         }
         tab.SetFilterState(dISABLED);
     }
 }
 public void Enable(bool enabled)
 {
     foreach (ManaFilterTab tab in this.m_tabs)
     {
         tab.SetEnabled(enabled);
         ManaFilterTab.FilterState dISABLED = ManaFilterTab.FilterState.DISABLED;
         if (enabled && this.m_tabsActive)
         {
             dISABLED = (tab.GetManaID() != this.m_currentFilterValue) ? ManaFilterTab.FilterState.OFF : ManaFilterTab.FilterState.ON;
         }
         tab.SetFilterState(dISABLED);
         if (tab.m_costText != null)
         {
             tab.m_costText.gameObject.SetActive(enabled);
         }
     }
 }