예제 #1
0
    public void SetSubFloorClear(short sub_floor, short floortype = 1)
    {
        this.m_dtMainBg.SetTextureFromBundle("UI/BabelTower/Babel_sub" + sub_floor.ToString());
        NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_BABEL_SUB", this.m_dtMainBg, this.m_dtMainBg.GetSize());

        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        for (short num = 0; num < 5; num += 1)
        {
            string texture = string.Empty;
            if (this.m_dtFloorHundredNum[(int)sub_floor][(int)num] != null && this.m_nFloor >= 100)
            {
                short num2 = this.m_nFloor / 100;
                if (num2 > 0)
                {
                    texture = "Win_Number_" + num2;
                    this.m_dtFloorHundredNum[(int)sub_floor][(int)num].Hide(false);
                    this.m_dtFloorHundredNum[(int)sub_floor][(int)num].SetTexture(texture);
                }
            }
            if (this.m_dtFloorFirstNum[(int)sub_floor][(int)num] != null)
            {
                short num3 = this.m_nFloor / 10;
                if (num3 >= 10)
                {
                    num3 %= 10;
                }
                if (num3 > 0 || (num3 == 0 && this.m_nFloor >= 100))
                {
                    texture = "Win_Number_" + num3;
                    this.m_dtFloorFirstNum[(int)sub_floor][(int)num].Hide(false);
                    this.m_dtFloorFirstNum[(int)sub_floor][(int)num].SetTexture(texture);
                }
            }
            if (this.m_dtFloorSecondNum[(int)sub_floor][(int)num] != null)
            {
                short num4 = this.m_nFloor % 10;
                texture = "Win_Number_" + num4;
                this.m_dtFloorSecondNum[(int)sub_floor][(int)num].Hide(false);
                this.m_dtFloorSecondNum[(int)sub_floor][(int)num].SetTexture(texture);
            }
        }
        for (short num5 = 0; num5 < 5; num5 += 1)
        {
            byte babelSubFloorRankInfo = kMyCharInfo.GetBabelSubFloorRankInfo(this.m_nFloor, (byte)num5, floortype);
            bool treasure = kMyCharInfo.IsBabelTreasure(this.m_nFloor, (short)((byte)num5), floortype);
            if (this.m_btSubFloor[(int)sub_floor][(int)num5] != null)
            {
                this.m_btSubFloor[(int)sub_floor][(int)num5].SetButtonTextureKey(NrTSingleton <BabelTowerManager> .Instance.GetBabelRankImgText(babelSubFloorRankInfo, treasure));
            }
        }
    }
예제 #2
0
    private void SetSubFloorInfo(short sub_floor)
    {
        NrMyCharInfo    kMyCharInfo    = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        BABELTOWER_DATA babelTowerData = NrTSingleton <BabelTowerManager> .Instance.GetBabelTowerData(this.m_nFloor, sub_floor, this.m_nFloorType);

        if (babelTowerData != null)
        {
            this.m_nsubFloor = sub_floor;
            string text  = string.Empty;
            string empty = string.Empty;
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2846");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "count",
                babelTowerData.m_nWillSpend
            });

            if (this.m_nFloorType == 2)
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2786");
            }
            else
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("640");
            }
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "floor",
                babelTowerData.m_nFloor
            });

            this.m_laTitle.SetText(empty);
            if (this.m_nFloorType == 2)
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2787");
            }
            else
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("833");
            }
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "floor",
                this.m_nFloor,
                "subfloor",
                (int)(sub_floor + 1)
            });

            this.m_laSubFloorNum.SetText(empty);
            if (!kMyCharInfo.IsBabelClear(this.m_nFloor, sub_floor, this.m_nFloorType))
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    text,
                    "itemname",
                    NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(babelTowerData.m_nFirstReward_ItemUniq),
                    "count",
                    babelTowerData.m_nFirstReward_ItemNum
                });

                this.m_laFirstRewardItem.SetText(empty);
                this.m_itFirstRewardItem.Visible = true;
                this.m_itFirstRewardItem.ClearData();
                this.m_itFirstRewardItem.SetItemTexture(babelTowerData.m_nFirstReward_ItemUniq);
                this.m_dtFirstRewardItemBG.Visible = true;
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("723");

                this.m_laFristRewardItemText.SetText(text);
                this.m_dtFirstRewardItemFrame.Visible = true;
                this.m_dtFirstRewardItemLine.Visible  = true;
            }
            else if (!kMyCharInfo.IsBabelTreasure(this.m_nFloor, sub_floor, this.m_nFloorType))
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    text,
                    "itemname",
                    NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(babelTowerData.m_i32TreasureRewardUnique),
                    "count",
                    babelTowerData.m_i32TreasureRewardNum
                });

                this.m_laFirstRewardItem.SetText(empty);
                this.m_itFirstRewardItem.Visible = true;
                this.m_itFirstRewardItem.ClearData();
                ITEM iTEM = new ITEM();
                iTEM.m_nItemUnique = babelTowerData.m_i32TreasureRewardUnique;
                iTEM.m_nItemNum    = babelTowerData.m_i32TreasureRewardNum;
                iTEM.m_nOption[2]  = babelTowerData.m_i32TreasureRewardRank;
                this.m_itFirstRewardItem.SetItemTexture(iTEM, false, true, 1f);
                this.m_dtFirstRewardItemBG.Visible = true;
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1931");

                this.m_laFristRewardItemText.SetText(text);
                this.m_dtFirstRewardItemFrame.Visible = true;
                this.m_dtFirstRewardItemLine.Visible  = true;
            }
            else
            {
                this.m_itFirstRewardItem.Visible      = false;
                this.m_dtFirstRewardItemBG.Visible    = false;
                this.m_dtFirstRewardItemFrame.Visible = false;
                this.m_dtFirstRewardItemLine.Visible  = false;
                this.m_laFirstRewardItem.SetText(string.Empty);
                this.m_laFristRewardItemText.SetText(string.Empty);
            }
            BATTLE_BABEL_SREWARD battleBabelSRewardData = NrTSingleton <BattleSReward_Manager> .Instance.GetBattleBabelSRewardData(babelTowerData.m_i32ShowSpecialReward_DataUnique);

            if (battleBabelSRewardData != null)
            {
                int num = babelTowerData.m_i32ShowSpecialReward_DataPos - 1;
                if (num < 0 || num >= 4)
                {
                    num = 3;
                }
                int nRewardValue = battleBabelSRewardData.m_sRewardProduct[num].m_nRewardValue1;
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1803");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    text,
                    "itemname",
                    NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(nRewardValue)
                });

                this.m_laSpecialRewardItem.SetText(empty);
                this.m_itSpecialRewardItem.ClearData();
                this.m_itSpecialRewardItem.SetItemTexture(nRewardValue);
            }
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "itemname",
                NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(babelTowerData.m_nReward_ItemUniq),
                "count",
                babelTowerData.m_nReward_ItemNum
            });

            this.m_laRewardItem.SetText(empty);
            this.m_itRewardItem.SetItemTexture(babelTowerData.m_nReward_ItemUniq);
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("726");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                text,
                "exp",
                babelTowerData.m_nReward_Exp
            });

            this.m_laRewardExp.SetText(empty);
            short babelTowerLastSubFloor = NrTSingleton <BabelTowerManager> .Instance.GetBabelTowerLastSubFloor(this.m_nFloor, this.m_nFloorType);

            if (this.m_SelectOldEffect != null)
            {
                UnityEngine.Object.DestroyImmediate(this.m_SelectOldEffect);
            }
            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_BABEL_SELECT", this.m_btSubFloor[(int)babelTowerLastSubFloor][(int)this.m_nsubFloor], this.m_btSubFloor[(int)babelTowerLastSubFloor][(int)this.m_nsubFloor].GetSize());

            this.m_btSubFloor[(int)babelTowerLastSubFloor][(int)this.m_nsubFloor].AddGameObjectDelegate(new EZGameObjectDelegate(this.OldeffectDelete));
        }
    }
예제 #3
0
    public void ShowList()
    {
        this.m_bLoadComplete = false;
        this.m_kFloorInfo.Clear();
        this.m_lbFloor.Clear();
        bool  flag = true;
        short num;

        if (this.m_nFloorType == 2)
        {
            TsAudioManager.Instance.AudioContainer.RequestAudioClip("BGM", "CHAOSTOWER", "HARDMODE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, true);
            TsAudioManager.Instance.AudioContainer.RequestAudioClip("AMB", "CHAOSTOWER", "HARDMODE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, true);
            num = (short)PlayerPrefs.GetInt(NrPrefsKey.LASTPLAY_BABELFLOOR_HARD, 1);
            this.m_laTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2782"));
            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_BABEL_MAIN_HARD", this.m_dtEffect, this.m_dtEffect.GetSize());
        }
        else
        {
            TsAudioManager.Instance.AudioContainer.RequestAudioClip("BGM", "CHAOSTOWER", "START", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay), string.Empty, true);
            num = (short)PlayerPrefs.GetInt(NrPrefsKey.LASTPLAY_BABELFLOOR, 1);
            this.m_laTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1377"));
            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_BABEL_MAIN", this.m_dtEffect, this.m_dtEffect.GetSize());
        }
        short num2 = NrTSingleton <BabelTowerManager> .Instance.GetLastFloor(this.m_nFloorType);

        int babelTowerLastFloor = NrTSingleton <ContentsLimitManager> .Instance.GetBabelTowerLastFloor(this.m_nFloorType);

        if (0 < babelTowerLastFloor && babelTowerLastFloor < (int)num2)
        {
            num2 = (short)babelTowerLastFloor;
        }
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance();
        int num3 = 0;

        if (instance != null)
        {
            num3 = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABEL_REPEAT);
        }
        if (myCharInfo.GetLevel() < num3)
        {
            this.m_dtLock.Visible = true;
        }
        else
        {
            this.m_dtLock.Visible = false;
        }
        short        num4        = num2 / 5;
        string       text        = string.Empty;
        string       text2       = string.Empty;
        string       text3       = string.Empty;
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        for (short num5 = num4; num5 > 0; num5 -= 1)
        {
            string text4 = string.Empty;
            if (flag)
            {
                text4 = string.Format("Mobile/DLG/BabelTower/newlistbox_floor_columndata{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
            }
            else
            {
                text4 = string.Format("Mobile/DLG/BabelTower/newlistbox_floor1_columndata{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
            }
            this.m_lbFloor.SetColumnData(text4);
            NewListItem newListItem = new NewListItem(this.m_lbFloor.ColumnNum, true, string.Empty);
            newListItem.m_szColumnData = text4;
            if (!flag)
            {
                if (this.m_nFloorType == 2)
                {
                    newListItem.SetListItemData(0, "UI/BabelTower/babel_hard_main1", true, null, null);
                }
                else
                {
                    newListItem.SetListItemData(0, "UI/BabelTower/babel_main1", true, null, null);
                }
            }
            else if (this.m_nFloorType == 2)
            {
                newListItem.SetListItemData(0, "UI/BabelTower/babel_hard_main2", true, null, null);
            }
            else
            {
                newListItem.SetListItemData(0, "UI/BabelTower/babel_main2", true, null, null);
            }
            for (int i = 4; i >= 0; i--)
            {
                List <FRIEND_BABEL_CLEARINFO> babelFloor_FriendList = kMyCharInfo.m_kFriendInfo.GetBabelFloor_FriendList(num2, this.m_nFloorType);
                if (babelFloor_FriendList != null)
                {
                    for (int j = 0; j < 3; j++)
                    {
                        if (babelFloor_FriendList.Count >= j + 1)
                        {
                            USER_FRIEND_INFO friend = kMyCharInfo.m_kFriendInfo.GetFriend(babelFloor_FriendList[j].i64FriendPersonID);
                            if (friend != null)
                            {
                                Texture2D friendTexture = kMyCharInfo.GetFriendTexture(babelFloor_FriendList[j].i64FriendPersonID);
                                if (friendTexture == null)
                                {
                                    NkListSolInfo nkListSolInfo = new NkListSolInfo();
                                    nkListSolInfo.SolCharKind            = friend.i32FaceCharKind;
                                    nkListSolInfo.SolGrade               = -1;
                                    nkListSolInfo.SolLevel               = friend.i16Level;
                                    nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(friend.i32FaceCharCostumeUnique);

                                    newListItem.SetListItemData(i * 6 + 7 + j * 2, nkListSolInfo, num2, new EZValueChangedDelegate(this.BtClickFloorFriendList), null);
                                }
                                else
                                {
                                    newListItem.SetListItemData(i * 6 + 7 + j * 2, friendTexture, num2, null, new EZValueChangedDelegate(this.BtClickFloorFriendList), null);
                                }
                                newListItem.SetListItemData(i * 6 + 6 + j * 2, !flag);
                                newListItem.SetListItemData(i * 6 + 7 + j * 2, !flag);
                            }
                        }
                        else
                        {
                            newListItem.SetListItemData(i * 6 + 6 + j * 2, false);
                            newListItem.SetListItemData(i * 6 + 7 + j * 2, false);
                        }
                    }
                }
                else
                {
                    newListItem.SetListItemData(i * 6 + 6, false);
                    newListItem.SetListItemData(i * 6 + 6 + 2, false);
                    newListItem.SetListItemData(i * 6 + 6 + 4, false);
                    newListItem.SetListItemData(i * 6 + 7, false);
                    newListItem.SetListItemData(i * 6 + 7 + 2, false);
                    newListItem.SetListItemData(i * 6 + 7 + 4, false);
                }
                newListItem.SetListItemData(i + 36, false);
                newListItem.SetListItemData(i + 41, false);
                newListItem.SetListItemData(i + 5 + 41, false);
                if (num2 / 100 >= 1)
                {
                    short num6 = num2 / 100;
                    short num7 = num2 / 10 % 10;
                    short num8 = num2 % 10;
                    text  = "Win_Number_" + num6;
                    text2 = "Win_Number_" + num7;
                    text3 = "Win_Number_" + num8;
                    newListItem.SetListItemData(i + 6 + 41, true);
                    newListItem.SetListItemData(i + 6 + 41, text, null, null, null);
                    newListItem.SetListItemData(i + 41, true);
                    newListItem.SetListItemData(i + 41, text2, null, null, null);
                    newListItem.SetListItemData(i + 5 + 41, true);
                    newListItem.SetListItemData(i + 5 + 41, text3, null, null, null);
                }
                else if (num2 / 10 <= 0 && num2 % 10 > 0)
                {
                    text = "Win_Number_" + num2;
                    newListItem.SetListItemData(i + 36, true);
                    newListItem.SetListItemData(i + 36, text, null, null, null);
                }
                else
                {
                    short num9  = num2 / 10;
                    short num10 = num2 % 10;
                    text  = "Win_Number_" + num9;
                    text2 = "Win_Number_" + num10;
                    newListItem.SetListItemData(i + 41, true);
                    newListItem.SetListItemData(i + 41, text, null, null, null);
                    newListItem.SetListItemData(i + 5 + 41, true);
                    newListItem.SetListItemData(i + 5 + 41, text2, null, null, null);
                }
                byte             babelFloorRankInfo = kMyCharInfo.GetBabelFloorRankInfo(num2, this.m_nFloorType);
                bool             treasure           = kMyCharInfo.IsBabelTreasure(num2, this.m_nFloorType);
                UIBaseInfoLoader loader             = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(NrTSingleton <BabelTowerManager> .Instance.GetBabelRankImgText(babelFloorRankInfo, treasure));

                newListItem.SetListItemData(i + 1, loader, num2, new EZValueChangedDelegate(this.BtClickFloor), null);
                if (num2 == num)
                {
                    this.m_nSelectindex = num4 - num5;
                }
                num2 -= 1;
            }
            newListItem.Data = (int)(num5 - 1);
            flag             = !flag;
            this.m_lbFloor.Add(newListItem);
            this.m_kFloorInfo.Add((int)num5);
        }
        this.m_lbFloor.RepositionItems();
        if (!this.m_lbFloor.ReUse)
        {
            this.m_lbFloor.SetSelectedItem((int)this.m_nSelectindex);
        }
    }
예제 #4
0
    public NewListItem MakeFloorInfo(short floor)
    {
        short        num         = floor * 5;
        string       text        = string.Empty;
        string       text2       = string.Empty;
        string       text3       = string.Empty;
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        string       text4       = string.Empty;
        bool         flag        = false;

        if (floor % 2 == 0)
        {
            flag = true;
        }
        if (flag)
        {
            text4 = string.Format("Mobile/DLG/BabelTower/newlistbox_floor_columndata{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        }
        else
        {
            text4 = string.Format("Mobile/DLG/BabelTower/newlistbox_floor1_columndata{0}", NrTSingleton <UIDataManager> .Instance.AddFilePath);
        }
        this.m_lbFloor.SetColumnData(text4);
        NewListItem newListItem = new NewListItem(this.m_lbFloor.ColumnNum, true, string.Empty);

        newListItem.m_szColumnData = text4;
        if (!flag)
        {
            if (this.m_nFloorType == 2)
            {
                newListItem.SetListItemData(0, "UI/BabelTower/babel_hard_main1", true, null, null);
            }
            else
            {
                newListItem.SetListItemData(0, "UI/BabelTower/babel_main1", true, null, null);
            }
        }
        else if (this.m_nFloorType == 2)
        {
            newListItem.SetListItemData(0, "UI/BabelTower/babel_hard_main2", true, null, null);
        }
        else
        {
            newListItem.SetListItemData(0, "UI/BabelTower/babel_main2", true, null, null);
        }
        for (int i = 4; i >= 0; i--)
        {
            newListItem.SetListItemData(i * 6 + 6, false);
            newListItem.SetListItemData(i * 6 + 6 + 2, false);
            newListItem.SetListItemData(i * 6 + 6 + 4, false);
            newListItem.SetListItemData(i * 6 + 7, false);
            newListItem.SetListItemData(i * 6 + 7 + 2, false);
            newListItem.SetListItemData(i * 6 + 7 + 4, false);
            List <FRIEND_BABEL_CLEARINFO> babelFloor_FriendList = kMyCharInfo.m_kFriendInfo.GetBabelFloor_FriendList(num, this.m_nFloorType);
            if (babelFloor_FriendList != null)
            {
                for (int j = 0; j < 3; j++)
                {
                    if (babelFloor_FriendList.Count >= j + 1)
                    {
                        USER_FRIEND_INFO friend = kMyCharInfo.m_kFriendInfo.GetFriend(babelFloor_FriendList[j].i64FriendPersonID);
                        if (friend != null)
                        {
                            Texture2D friendTexture = kMyCharInfo.GetFriendTexture(babelFloor_FriendList[j].i64FriendPersonID);
                            if (friendTexture == null)
                            {
                                NkListSolInfo nkListSolInfo = new NkListSolInfo();
                                nkListSolInfo.SolCharKind            = friend.i32FaceCharKind;
                                nkListSolInfo.SolGrade               = -1;
                                nkListSolInfo.SolLevel               = friend.i16Level;
                                nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(friend.i32FaceCharCostumeUnique);

                                newListItem.SetListItemData(i * 6 + 7 + j * 2, nkListSolInfo, num, new EZValueChangedDelegate(this.BtClickFloorFriendList), null);
                            }
                            else
                            {
                                newListItem.SetListItemData(i * 6 + 7 + j * 2, friendTexture, num, null, new EZValueChangedDelegate(this.BtClickFloorFriendList), null);
                            }
                            newListItem.SetListItemData(i * 6 + 6 + j * 2, !flag);
                            newListItem.SetListItemData(i * 6 + 7 + j * 2, !flag);
                        }
                    }
                    else
                    {
                        newListItem.SetListItemData(i * 6 + 6 + j * 2, false);
                        newListItem.SetListItemData(i * 6 + 7 + j * 2, false);
                    }
                }
            }
            else
            {
                newListItem.SetListItemData(i * 6 + 6, false);
                newListItem.SetListItemData(i * 6 + 6 + 2, false);
                newListItem.SetListItemData(i * 6 + 6 + 4, false);
                newListItem.SetListItemData(i * 6 + 7, false);
                newListItem.SetListItemData(i * 6 + 7 + 2, false);
                newListItem.SetListItemData(i * 6 + 7 + 4, false);
            }
            newListItem.SetListItemData(i + 36, false);
            newListItem.SetListItemData(i + 41, false);
            newListItem.SetListItemData(i + 5 + 41, false);
            if (num / 100 >= 1)
            {
                short num2 = num / 100;
                short num3 = num / 10 % 10;
                short num4 = num % 10;
                text  = "Win_Number_" + num2;
                text2 = "Win_Number_" + num3;
                text3 = "Win_Number_" + num4;
                newListItem.SetListItemData(i + 6 + 41, true);
                newListItem.SetListItemData(i + 6 + 41, text, null, null, null);
                newListItem.SetListItemData(i + 41, true);
                newListItem.SetListItemData(i + 41, text2, null, null, null);
                newListItem.SetListItemData(i + 5 + 41, true);
                newListItem.SetListItemData(i + 5 + 41, text3, null, null, null);
            }
            else if (num / 10 <= 0 && num % 10 > 0)
            {
                text = "Win_Number_" + num;
                newListItem.SetListItemData(i + 36, true);
                newListItem.SetListItemData(i + 36, text, null, null, null);
                newListItem.SetListItemData(i + 6 + 41, false);
            }
            else
            {
                short num5 = num / 10;
                short num6 = num % 10;
                text  = "Win_Number_" + num5;
                text2 = "Win_Number_" + num6;
                newListItem.SetListItemData(i + 41, true);
                newListItem.SetListItemData(i + 41, text, null, null, null);
                newListItem.SetListItemData(i + 5 + 41, true);
                newListItem.SetListItemData(i + 5 + 41, text2, null, null, null);
                if (num6 == 0)
                {
                    newListItem.SetListItemData(i + 6 + 41, false);
                }
            }
            if (num >= 9)
            {
                newListItem.SetListItemData(50, true);
            }
            byte             babelFloorRankInfo = kMyCharInfo.GetBabelFloorRankInfo(num, this.m_nFloorType);
            bool             treasure           = kMyCharInfo.IsBabelTreasure(num, this.m_nFloorType);
            UIBaseInfoLoader loader             = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(NrTSingleton <BabelTowerManager> .Instance.GetBabelRankImgText(babelFloorRankInfo, treasure));

            newListItem.SetListItemData(i + 1, loader, num, new EZValueChangedDelegate(this.BtClickFloor), null);
            num -= 1;
        }
        return(newListItem);
    }