Example #1
0
    public void OnResetButton()
    {
        Action action = delegate()
        {
            IEnumerator enumerator = Enum.GetValues(typeof(CMD_ChipSortModal.RefineType)).GetEnumerator();
            try
            {
                while (enumerator.MoveNext())
                {
                    object obj = enumerator.Current;
                    this.SetSelectRefine(true, (CMD_ChipSortModal.RefineType)obj);
                }
            }
            finally
            {
                IDisposable disposable;
                if ((disposable = (enumerator as IDisposable)) != null)
                {
                    disposable.Dispose();
                }
            }
            CMD_ChipSortModal.sortedUserChipList = CMD_ChipSortModal.GetRefineSortList(CMD_ChipSortModal.baseUserChipList, this.tempData);
            this.tempData.isAllRank = true;
            this.refineInfo.allRank.SetSelect(this.tempData.isAllRank);
            this.tempData.isAllTribe = true;
            this.refineInfo.allTribe.SetSelect(this.tempData.isAllTribe);
            this.EnableResetButton(false);
            this.UpdateCurrentSortCountLabel();
        };

        AppCoroutine.Start(this.Load(action), false);
    }
Example #2
0
    public static void UpdateSortedUserChipList(GameWebAPI.RespDataCS_ChipListLogic.UserChipList[] list)
    {
        List <GameWebAPI.RespDataCS_ChipListLogic.UserChipList> list2 = new List <GameWebAPI.RespDataCS_ChipListLogic.UserChipList>();

        if (list != null)
        {
            for (int i = 0; i < list.Length; i++)
            {
                list2.Add(list[i]);
            }
        }
        CMD_ChipSortModal.baseUserChipList   = list2.ToArray();
        CMD_ChipSortModal.sortedUserChipList = CMD_ChipSortModal.GetRefineSortList(CMD_ChipSortModal.baseUserChipList, CMD_ChipSortModal.data);
    }
Example #3
0
    private void OnAllTribeButton()
    {
        Action action = delegate()
        {
            this.SetSelectRefine(true, CMD_ChipSortModal.tribeRefineTypes);
            CMD_ChipSortModal.sortedUserChipList = CMD_ChipSortModal.GetRefineSortList(CMD_ChipSortModal.baseUserChipList, this.tempData);
            this.tempData.isAllTribe             = true;
            this.refineInfo.allTribe.SetSelect(this.tempData.isAllTribe);
            bool value = this.CheckEnableResetButton();
            this.EnableResetButton(value);
            this.UpdateCurrentSortCountLabel();
        };

        AppCoroutine.Start(this.Load(action), false);
    }
Example #4
0
    private void OnRefineContentButton(CMD_ChipSortModal.RefineType refineType)
    {
        Action action = delegate()
        {
            this.SetSelectRefine((this.tempData.refineTypeList & (int)refineType) <= 0, refineType);
            CMD_ChipSortModal.sortedUserChipList = CMD_ChipSortModal.GetRefineSortList(CMD_ChipSortModal.baseUserChipList, this.tempData);
            bool value = this.CheckEnableResetButton();
            this.EnableResetButton(value);
            this.tempData.isAllRank = this.CheckAllButton(CMD_ChipSortModal.rankRefineTypes);
            this.refineInfo.allRank.SetSelect(this.tempData.isAllRank);
            this.tempData.isAllTribe = this.CheckAllButton(CMD_ChipSortModal.tribeRefineTypes);
            this.refineInfo.allTribe.SetSelect(this.tempData.isAllTribe);
            this.UpdateCurrentSortCountLabel();
        };

        AppCoroutine.Start(this.Load(action), false);
    }