private static int CompareInfo(NEWGUILD_BOSS_PLAYER_INFO x, NEWGUILD_BOSS_PLAYER_INFO y)
 {
     if (x.i32Rank > 0 && y.i32Rank > 0)
     {
         if (x.i32Rank < y.i32Rank)
         {
             return(-1);
         }
     }
     else if (x.i32Damage > y.i32Damage)
     {
         return(-1);
     }
     return(1);
 }
    public void SetInfo()
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return;
        }
        string          text  = string.Empty;
        string          text2 = string.Empty;
        BABEL_GUILDBOSS babelGuildBossinfo = NrTSingleton <BabelTowerManager> .Instance.GetBabelGuildBossinfo(this.m_GuildBossFloor);

        if (babelGuildBossinfo == null)
        {
            return;
        }
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(babelGuildBossinfo.m_nBossKind);

        this.m_laGuildBossName.Text = charKindInfo.GetName();
        this.m_dtBossImg.SetTexture(eCharImageType.LARGE, charKindInfo.GetCharKind(), -1, string.Empty);
        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1808");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "count1",
            ANNUALIZED.Convert(this.m_i32CurBossHp),
            "count2",
            ANNUALIZED.Convert(babelGuildBossinfo.m_nBossMaxHP)
        });

        this.m_laGuildBossHp.Text = text2;
        float num = (float)this.m_i32CurBossHp / (float)babelGuildBossinfo.m_nBossMaxHP;

        this.m_dtBossCurHP.SetSize(this.BOSSHP_BAR_WIDTH * num, this.m_dtBossCurHP.GetSize().y);
        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "itemname",
            NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(babelGuildBossinfo.m_nBaseReward_ItemUnique),
            "count",
            babelGuildBossinfo.m_nBaseReward_ItemNum
        });

        this.m_lbRewardBaseItemNum.Text = text2;
        int num2 = (babelGuildBossinfo.m_nReward_BaseMoney * kMyCharInfo.GetLevel() >= babelGuildBossinfo.m_nReward_BaseMoney_Max) ? babelGuildBossinfo.m_nReward_BaseMoney_Max : (babelGuildBossinfo.m_nReward_BaseMoney * kMyCharInfo.GetLevel());

        this.m_laBasicReward.Text = ANNUALIZED.Convert(num2);
        this.m_dtRewardBaseItem.SetTexture(NrTSingleton <ItemManager> .Instance.GetItemTexture(babelGuildBossinfo.m_nBaseReward_ItemUnique));
        this.SortMemberInfo();
        int  num3  = 1;
        bool flag  = false;
        bool flag2 = false;

        this.m_lbGuildMemberList.Clear();
        for (int i = 0; i < this.m_listMemberInfo.Count; i++)
        {
            NEWGUILD_BOSS_PLAYER_INFO nEWGUILD_BOSS_PLAYER_INFO = this.m_listMemberInfo[i];
            NewGuildMember            memberInfoFromPersonID    = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(nEWGUILD_BOSS_PLAYER_INFO.i64PersonID);

            if (memberInfoFromPersonID != null)
            {
                if (this.m_byRoomState != 3 && nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID)
                {
                    flag2 = true;
                }
                bool        flag3       = false;
                NewListItem newListItem = new NewListItem(this.m_lbGuildMemberList.ColumnNum, true, string.Empty);
                Texture2D   portrait    = memberInfoFromPersonID.GetPortrait();
                if (this.m_byRoomState == 3)
                {
                    if (nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID)
                    {
                        flag = true;
                    }
                    if (nEWGUILD_BOSS_PLAYER_INFO.i64PersonID == this.ClearPersonID)
                    {
                        this.m_itClearUserFace.Visible = true;
                        if (portrait != null)
                        {
                            this.m_itClearUserFace.SetTexture(portrait);
                        }
                        else
                        {
                            NkListSolInfo nkListSolInfo = new NkListSolInfo();
                            nkListSolInfo.SolCharKind            = memberInfoFromPersonID.GetFaceCharKind();
                            nkListSolInfo.SolLevel               = memberInfoFromPersonID.GetLevel();
                            nkListSolInfo.SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(memberInfoFromPersonID.GetCostumeUnique());

                            nkListSolInfo.SolGrade = -1;
                            this.m_itClearUserFace.SetSolImageTexure(eCharImageType.SMALL, nkListSolInfo, false);
                        }
                        this.m_lbClearUserName.SetText(memberInfoFromPersonID.GetCharName());
                        this.m_lbClearUserName.Visible = true;
                        newListItem.SetListItemData(21, true);
                        newListItem.SetListItemData(8, false);
                        flag3 = true;
                    }
                }
                if (!flag3)
                {
                    newListItem.SetListItemData(12, false);
                }
                newListItem.SetListItemData(2, memberInfoFromPersonID.GetCharName(), null, null, null);
                text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1915");

                newListItem.SetListItemData(3, text2, null, null, null);
                float num4 = (float)nEWGUILD_BOSS_PLAYER_INFO.i32Damage / (float)babelGuildBossinfo.m_nBossMaxHP;
                float num5 = num4 * 340f;
                newListItem.SetListItemData(5, string.Empty, num5, null, null);
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1916");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
                {
                    text,
                    "count1",
                    ANNUALIZED.Convert(nEWGUILD_BOSS_PLAYER_INFO.i32Damage),
                    "count2",
                    (int)(num4 * 100f)
                });

                newListItem.SetListItemData(6, text2, null, null, null);
                if (portrait != null)
                {
                    newListItem.SetListItemData(7, portrait, null, null, null, null);
                }
                else
                {
                    newListItem.SetListItemData(7, new NkListSolInfo
                    {
                        SolCharKind            = memberInfoFromPersonID.GetFaceCharKind(),
                        SolLevel               = memberInfoFromPersonID.GetLevel(),
                        SolCostumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(memberInfoFromPersonID.GetCostumeUnique()),
                        SolGrade               = -1
                    }, null, null, null);
                }
                if (!flag3)
                {
                    text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1186");

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

                    newListItem.SetListItemData(9, text2, null, null, null);
                }
                else
                {
                    newListItem.SetListItemData(9, false);
                }
                newListItem.SetListItemData(10, memberInfoFromPersonID.GetRankText(), null, null, null);
                this.m_lbGuildMemberList.Add(newListItem);
                num3++;
            }
        }
        this.m_lbGuildMemberList.RepositionItems();
        if (flag2 && !flag)
        {
            this.m_btGuildBossStart.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3292"));
        }
        else
        {
            this.m_btGuildBossStart.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("633"));
        }
        if (!flag)
        {
            Button expr_596 = this.m_btGuildBossStart;
            expr_596.Click = (EZValueChangedDelegate)Delegate.Combine(expr_596.Click, new EZValueChangedDelegate(this.OnClickStart));
        }
        else
        {
            this.m_btGuildBossStart.SetEnabled(false);
        }
        if (this.m_byRoomState == 3)
        {
            this.m_dtBossVictoyImg.Visible = true;
            this.m_dtClearUserBG.Visible   = true;
            this.m_dtClearBG.Visible       = true;
        }
    }
 public void AddPlayerInfo(NEWGUILD_BOSS_PLAYER_INFO player_info)
 {
     this.m_listMemberInfo.Add(player_info);
 }