private void RefreshFilterType() { this.mFilterType = ConceptCardListFilterWindow.Type.NONE; switch ((int)this.Rarity) { case 0: this.mFilterType |= ConceptCardListFilterWindow.Type.RARITY_1; break; case 1: this.mFilterType |= ConceptCardListFilterWindow.Type.RARITY_2; break; case 2: this.mFilterType |= ConceptCardListFilterWindow.Type.RARITY_3; break; case 3: this.mFilterType |= ConceptCardListFilterWindow.Type.RARITY_4; break; case 4: this.mFilterType |= ConceptCardListFilterWindow.Type.RARITY_5; break; } }
public void OnSelect(bool is_on) { this.CurrentType = ConceptCardListFilterWindow.Type.NONE; for (int index = 0; index < this.FilterToggles.Length; ++index) { ConceptCardListFilterWindow.Item filterToggle = this.FilterToggles[index]; if (filterToggle.toggle.get_isOn()) { this.CurrentType |= filterToggle.type; } } this.SetType(); }
public void OnSelectAll(bool is_on) { this.CurrentType = ConceptCardListFilterWindow.Type.NONE; for (int index = 0; index < this.FilterToggles.Length; ++index) { ConceptCardListFilterWindow.Item filterToggle = this.FilterToggles[index]; GameUtility.SetToggle(filterToggle.toggle, is_on); if (is_on) { this.CurrentType |= filterToggle.type; } } this.SetType(); }
public bool Filter(ConceptCardListFilterWindow.Type filter_type) { return((filter_type & this.mFilterType) != ConceptCardListFilterWindow.Type.NONE); }
public void LoadSortFilterData() { this.FilterType = ConceptCardListFilterWindow.LoadData(); this.SortType = ConceptCardListSortWindow.LoadDataType(); this.SortOrderType = ConceptCardListSortWindow.LoadDataOrderType(); }
public void Load() { this.CurrentType = ConceptCardListFilterWindow.LoadData(); this.FirstType = this.CurrentType; this.OnSelectType(); }
public void ResetType() { this.CurrentType = this.FirstType; this.SetType(); }