Esempio n. 1
0
    public void SetCostumeGuide()
    {
        this._initProcessor.InitCostumeSlotData(this, ref this._slotDataDic);
        this._initProcessor.InitDropDownList_Season(this, ref this._DDL_Season);
        this._initProcessor.InitDropDownList_Setorder(this, ref this._DDL_Setorder);
        this._currentSort = COSTUME_SORT.SLOTTYPE_GRADE_ASCENDING;
        List <SolSlotData> solSlotData = this._slotDataProcessor.GetSolSlotData(ref this._slotDataDic, this._currentSeason, this._currentSort);

        this._initProcessor.InitViewCostumeGuide(this, this._slotList, solSlotData, this._currentPage);
    }
Esempio n. 2
0
 private List <SolSlotData> GetSortData(ref List <SolSlotData> slotDataList, COSTUME_SORT sort)
 {
     if (slotDataList == null || this._sortDic == null)
     {
         Debug.LogError("ERROR, SlotDataSortProcessor.cs, slotDataList(), slotDataList is Null ");
         return(null);
     }
     if (!this._sortDic.ContainsKey(sort))
     {
         return(slotDataList);
     }
     slotDataList.Sort(this._sortDic[sort]);
     return(slotDataList);
 }
Esempio n. 3
0
    private void Change_Setorder(IUIObject obj)
    {
        if (this._DDL_Setorder == null || this._DDL_Setorder.SelectedItem == null || this._DDL_Setorder.SelectedItem.data == null)
        {
            Debug.LogError("ERROR, CostumeGuide_Dlg.cs, Change_Setorder(), _DDL_Season is Null");
            return;
        }
        ListItem listItem = this._DDL_Setorder.SelectedItem.Data as ListItem;

        if (listItem == null)
        {
            return;
        }
        COSTUME_SORT cOSTUME_SORT = (COSTUME_SORT)((int)listItem.Key);

        if (this._currentSort == cOSTUME_SORT)
        {
            return;
        }
        this._currentSort = cOSTUME_SORT;
        List <SolSlotData> solSlotData = this._slotDataProcessor.GetSolSlotData(ref this._slotDataDic, this._currentSeason, cOSTUME_SORT);

        this._initProcessor.InitViewCostumeGuide(this, this._slotList, solSlotData, this._currentPage);
    }
Esempio n. 4
0
        public List <SolSlotData> GetSolSlotData(ref Dictionary <byte, List <SolSlotData> > slotDataDic, byte season, COSTUME_SORT sort)
        {
            List <SolSlotData> solSlotDataBySeason = this.GetSolSlotDataBySeason(ref slotDataDic, season);

            if (solSlotDataBySeason == null)
            {
                return(solSlotDataBySeason);
            }
            return(this.GetSortData(ref solSlotDataBySeason, sort));
        }