private void SetGuardAngelSkillButton()
    {
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        for (int i = 0; i < 4; i++)
        {
            MYTHRAID_PERSON mythRaidPersonInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidPersonInfo(i);
            if (mythRaidPersonInfo != null)
            {
                if (@char.GetPersonID() == mythRaidPersonInfo.nPartyPersonID)
                {
                    this.user_info[i].btn_Guardian_Select.Click   = new EZValueChangedDelegate(this.OnClickGuardAngelSelect);
                    this.user_info[i].btn_Guardian_Reselect.Click = new EZValueChangedDelegate(this.OnClickGuardAngelSelect);
                }
                if (mythRaidPersonInfo.selectedGuardianUnique >= 0)
                {
                    this.user_info[i].btn_Guardian_Select.Visible   = false;
                    this.user_info[i].btn_Guardian_Reselect.Visible = true;
                    this.user_info[i].dt_GuardianImg.Visible        = true;
                    this.user_info[i].dt_GuardianImg_Frame.Visible  = true;
                    MYTHRAID_GUARDIANANGEL_INFO mythRaidGuardAngelInfo = NrTSingleton <NrBaseTableManager> .Instance.GetMythRaidGuardAngelInfo(mythRaidPersonInfo.selectedGuardianUnique);

                    this.user_info[i].dt_GuardianImg.SetTextureFromUISoldierBundle(eCharImageType.SMALL, mythRaidGuardAngelInfo.IMAGE);
                }
                else if (@char.GetPersonID() == mythRaidPersonInfo.nPartyPersonID)
                {
                    this.user_info[i].btn_Guardian_Select.Visible   = true;
                    this.user_info[i].btn_Guardian_Reselect.Visible = false;
                    this.user_info[i].dt_GuardianImg.Visible        = false;
                    this.user_info[i].dt_GuardianImg_Frame.Visible  = false;
                }
                else if (mythRaidPersonInfo.nPartyPersonID > 0L)
                {
                    this.user_info[i].btn_Guardian_Select.Visible   = false;
                    this.user_info[i].btn_Guardian_Reselect.Visible = false;
                    this.user_info[i].dt_GuardianImg.Visible        = true;
                    this.user_info[i].dt_GuardianImg_Frame.Visible  = false;
                    this.user_info[i].dt_GuardianImg.SetTextureKey("Win_I_NotSelSol");
                }
                else
                {
                    this.user_info[i].btn_Guardian_Select.Visible   = false;
                    this.user_info[i].btn_Guardian_Reselect.Visible = false;
                    this.user_info[i].dt_GuardianImg.Visible        = false;
                    this.user_info[i].dt_GuardianImg_Frame.Visible  = false;
                }
            }
        }
    }
    private void SetCharList()
    {
        NrCharBase[] @char = NrTSingleton <NkCharManager> .Instance.Get_Char();

        NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        int num = 0;

        this.m_nlbCharList.Clear();
        NrCharBase[] array = @char;
        for (int i = 0; i < array.Length; i++)
        {
            NrCharBase nrCharBase = array[i];
            if (nrCharBase != null && nrCharBase.GetPersonID() > 0L && char2.GetPersonID() != nrCharBase.GetPersonID())
            {
                if (num >= this.m_nCurPage * this.m_nNumPerPage && num < (this.m_nCurPage + 1) * this.m_nNumPerPage)
                {
                    NewListItem newListItem = new NewListItem(this.m_nlbCharList.ColumnNum, true, string.Empty);
                    newListItem.SetListItemData(0, nrCharBase.GetCharName(), null, null, null);
                    newListItem.SetListItemData(1, nrCharBase.GetPersonInfo().GetLevel(0L).ToString(), null, null, null);
                    newListItem.Data = nrCharBase.GetCharName();
                    this.m_nlbCharList.Add(newListItem);
                    this.m_nlbCharList.RepositionItems();
                    num++;
                }
                else
                {
                    num++;
                }
            }
        }
        this.m_nTotalPage = num / this.m_nNumPerPage + 1;
    }
    public void RefreshPossibleLevel()
    {
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        MYTHRAID_PERSON mythRaidLeaderInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidLeaderInfo();

        if (mythRaidLeaderInfo == null || @char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID)
        {
        }
    }
    public void RefreshPossibleLevel()
    {
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        BABELTOWER_PERSON babelLeaderInfo = SoldierBatch.BABELTOWER_INFO.GetBabelLeaderInfo();

        if (babelLeaderInfo == null || @char.GetPersonID() == babelLeaderInfo.nPartyPersonID)
        {
        }
    }
    public void SetLayer()
    {
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        for (int i = 0; i < 5; i++)
        {
            base.SetShowLayer(i, false);
        }
        base.SetShowLayer(0, true);
        BABELTOWER_PERSON babelLeaderInfo = SoldierBatch.BABELTOWER_INFO.GetBabelLeaderInfo();

        if (babelLeaderInfo != null)
        {
            if (@char.GetPersonID() == babelLeaderInfo.nPartyPersonID)
            {
                this.m_btStart.Hide(false);
                this.m_btReady.Hide(true);
            }
            else
            {
                this.m_btStart.Hide(true);
                this.m_btReady.Hide(false);
            }
        }
        for (int j = 0; j < 4; j++)
        {
            if (j != 0)
            {
                BABELTOWER_PERSON babelPersonInfo = SoldierBatch.BABELTOWER_INFO.GetBabelPersonInfo(j);
                if (babelPersonInfo.nPartyPersonID > 0L)
                {
                    base.SetShowLayer(j + 1, true);
                }
                else
                {
                    base.SetShowLayer(j + 1, false);
                }
            }
        }
    }
    public void SetGuardianInfo(long _personID, int _guardianUnique)
    {
        for (int i = 0; i < 4; i++)
        {
            MYTHRAID_PERSON mythRaidPersonInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidPersonInfo(i);
            if (mythRaidPersonInfo.nPartyPersonID == _personID)
            {
                mythRaidPersonInfo.selectedGuardianUnique = _guardianUnique;
            }
        }
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        if (_personID == @char.GetPersonID())
        {
            if (_guardianUnique == -1)
            {
                MythRaid_GuardianSelect_DLG mythRaid_GuardianSelect_DLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MYTHRAID_GUARDIANSELECT_DLG) as MythRaid_GuardianSelect_DLG;

                if (mythRaid_GuardianSelect_DLG != null)
                {
                    mythRaid_GuardianSelect_DLG.Show();
                }
            }
            else
            {
                NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.MYTHRAID_GUARDIANSELECT_DLG);
            }
        }
        else
        {
            MythRaid_GuardianSelect_DLG mythRaid_GuardianSelect_DLG2 = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYTHRAID_GUARDIANSELECT_DLG) as MythRaid_GuardianSelect_DLG;

            if (mythRaid_GuardianSelect_DLG2 != null)
            {
                mythRaid_GuardianSelect_DLG2.Show();
            }
        }
        this.SetGuardAngelSkillButton();
    }
    private void OnKickOutUser(object a_oObject)
    {
        GS_MYTHRAID_LEAVE_REQ gS_MYTHRAID_LEAVE_REQ = new GS_MYTHRAID_LEAVE_REQ();

        if (this.m_nSelectIndex < 0)
        {
            return;
        }
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        if (@char.GetPersonID() == this.user_info[this.m_nSelectIndex].PersonID)
        {
            gS_MYTHRAID_LEAVE_REQ.mode = 1;
        }
        else
        {
            gS_MYTHRAID_LEAVE_REQ.mode = 2;
        }
        gS_MYTHRAID_LEAVE_REQ.nLeavePersonID     = this.user_info[this.m_nSelectIndex].PersonID;
        gS_MYTHRAID_LEAVE_REQ.nMythRaidRoomIndex = SoldierBatch.MYTHRAID_INFO.m_nMythRaidRoomIndex;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MYTHRAID_LEAVE_REQ, gS_MYTHRAID_LEAVE_REQ);
    }
    public void OnClickKickUser(IUIObject obj)
    {
        int num = (int)obj.Data;

        if (num >= 4)
        {
            return;
        }
        this.m_nSelectIndex = num;
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        if (@char.GetPersonID() == this.user_info[num].PersonID)
        {
            SoldierBatch.MYTHRAID_INFO.Init();
            NrTSingleton <NkClientLogic> .Instance.SetClearMiddleStage();

            this.OnKickOutUser(null);
            return;
        }
        string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("72");

        string textFromMessageBox2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("82");

        string          empty = string.Empty;
        MYTHRAID_PERSON mythRaidPersonInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidPersonInfo(num);

        if (mythRaidPersonInfo != null)
        {
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                textFromMessageBox2,
                "targetname",
                mythRaidPersonInfo.strCharName
            });
        }
        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        msgBoxUI.SetMsg(new YesDelegate(this.OnKickOutUser), null, textFromMessageBox, empty, eMsgType.MB_OK_CANCEL, 2);
    }
    public void SetLayer()
    {
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        for (int i = 6; i < 9; i++)
        {
            base.SetShowLayer(i, false);
        }
        MYTHRAID_PERSON mythRaidLeaderInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidLeaderInfo();

        if (mythRaidLeaderInfo != null)
        {
            if (@char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID)
            {
                this.m_btStart.Hide(false);
                this.m_btReady.Hide(true);
            }
            else
            {
                this.m_btStart.Hide(true);
                this.m_btReady.Hide(false);
            }
        }
        for (int j = 5; j < 9; j++)
        {
            if (j - 5 != 0)
            {
                MYTHRAID_PERSON mythRaidPersonInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidPersonInfo(j - 5);
                if (mythRaidPersonInfo.nPartyPersonID > 0L)
                {
                    base.SetShowLayer(j, true);
                }
                else
                {
                    base.SetShowLayer(j, false);
                }
            }
        }
    }
Exemple #10
0
    public override void SetComponent()
    {
        this.openMenu = (base.GetControl("Button_HideMenu") as Button);
        this.openMenu.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickOpenMenu));
        this.oldOpenMenuPos   = this.openMenu.GetLocation();
        this.openMenu.ToolTip = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1829");

        this.closeMenu = (base.GetControl("Button_ReleaseMenu") as Button);
        this.closeMenu.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickCloseMenu));
        this.oldCloseMenuPos   = this.closeMenu.GetLocation();
        this.closeMenu.ToolTip = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1829");

        this.openStoryChat = (base.GetControl("Button_Chat") as Button);
        this.openStoryChat.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickStoryChat));
        this.newNotice          = (base.GetControl("Box_New") as Box);
        this.menuNotice         = (base.GetControl("Box_Notice") as Box);
        this.menuNotice.Visible = false;
        this.ShopNotice         = (base.GetControl("Box_Notice1") as Box);
        this.ShopNotice.Visible = false;
        this.btShopMenu         = (base.GetControl("Button_Shop") as Button);
        this.btShopMenu.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickShopMenu));
        this.lbShopMenu        = (base.GetControl("Label_ItemShop") as Label);
        this.newNotice.Visible = NrTSingleton <UIDataManager> .Instance.NoticeStoryChat;
        this.btPatchDownload   = (base.GetControl("Button_Download") as Button);
        this.btPatchDownload.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickDownLoad));
        this.lbPatchDownload         = (base.GetControl("Label_Download") as Label);
        this.lbPatchDownload.Visible = false;
        this.btPatchDownload.Visible = false;
        this.btShopMenu.Visible      = true;
        this.ShowDownButton(true);
        NrTSingleton <ItemMallItemManager> .Instance.Send_GS_ITEMMALL_INFO_REQ(eITEMMALL_TYPE.VOUCHER_ITEM, false);

        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        GS_CHAR_CHALLENGE_EVENT_REWARD_REQ gS_CHAR_CHALLENGE_EVENT_REWARD_REQ = new GS_CHAR_CHALLENGE_EVENT_REWARD_REQ();

        gS_CHAR_CHALLENGE_EVENT_REWARD_REQ.i64PersonID = @char.GetPersonID();
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_CHAR_CHALLENGE_EVENT_REWARD_REQ, gS_CHAR_CHALLENGE_EVENT_REWARD_REQ);
    }
Exemple #11
0
    private void OnUserPortraitRefresh(IUIObject obj)
    {
        float num = Time.time - this.m_fRefreshTime;

        if (num > 3f)
        {
            NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

            if (@char != null)
            {
                GS_GETPORTRAIT_INFO_REQ gS_GETPORTRAIT_INFO_REQ = new GS_GETPORTRAIT_INFO_REQ();
                gS_GETPORTRAIT_INFO_REQ.bDataType = 0;
                gS_GETPORTRAIT_INFO_REQ.i64DataID = @char.GetPersonID();
                SendPacket.GetInstance().SendObject(1726, gS_GETPORTRAIT_INFO_REQ);
                this.m_fRefreshTime = Time.time;
            }
        }
        else
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("508"));
        }
    }
    public void RefreshSolInfo()
    {
        for (int i = 0; i < 4; i++)
        {
            this.user_info[i].Init();
        }
        this.SetLayer();
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        string text  = string.Empty;
        string text2 = string.Empty;

        switch (SoldierBatch.MYTHRAID_INFO.m_nDifficulty)
        {
        case eMYTHRAID_DIFFICULTY.eMYTHRAID_EASY:
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3243");

            break;

        case eMYTHRAID_DIFFICULTY.eMYTHRAID_NORMAL:
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3244");

            break;

        case eMYTHRAID_DIFFICULTY.eMYTHRAID_HARD:
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3245");

            break;
        }
        text2 = text;
        PlunderSolNumDlg plunderSolNumDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLNUM_DLG) as PlunderSolNumDlg;

        if (plunderSolNumDlg != null)
        {
            plunderSolNumDlg.SetTitle(text2);
        }
        MYTHRAID_PERSON mythRaidLeaderInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidLeaderInfo();

        if (mythRaidLeaderInfo != null)
        {
            this.user_info[0].Show(true);
            this.user_info[0].PersonID = mythRaidLeaderInfo.nPartyPersonID;
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3254");

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

            this.user_info[0].m_laUserName.SetText(text2);
            for (int j = 0; j < 4; j++)
            {
                if (j != 0)
                {
                    MYTHRAID_PERSON mythRaidPersonInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidPersonInfo(j);
                    if (mythRaidPersonInfo != null)
                    {
                        if (mythRaidPersonInfo.nPartyPersonID > 0L)
                        {
                            this.m_ddlSlotType[j].SetVisible(false);
                            this.user_info[j].Show(true);
                            this.user_info[j].PersonID = mythRaidPersonInfo.nPartyPersonID;
                            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
                            {
                                text,
                                "count",
                                mythRaidPersonInfo.nLevel.ToString(),
                                "targetname",
                                mythRaidPersonInfo.strCharName
                            });

                            this.user_info[j].m_laUserName.SetText(text2);
                            this.user_info[j].m_dtReady.Visible = mythRaidPersonInfo.bReady;
                            if (mythRaidPersonInfo.bReady)
                            {
                                this.user_info[j].m_laReady.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("662");
                            }
                            else
                            {
                                this.user_info[j].m_laReady.Text = string.Empty;
                            }
                            if (@char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID || @char.GetPersonID() == mythRaidPersonInfo.nPartyPersonID)
                            {
                                this.user_info[j].m_btKickUser.Data = j;
                                this.user_info[j].m_btKickUser.SetValueChangedDelegate(new EZValueChangedDelegate(this.OnClickKickUser));
                            }
                            else
                            {
                                this.user_info[j].m_btKickUser.Visible = false;
                            }
                        }
                        else
                        {
                            this.user_info[j].Show(false);
                            if (@char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID)
                            {
                                this.user_info[j].SetSlotState(false, 0);
                                this.m_ddlSlotType[j].SetVisible(true);
                            }
                            else
                            {
                                this.user_info[j].SetSlotState(true, (int)mythRaidPersonInfo.nSlotType);
                                this.m_ddlSlotType[j].SetVisible(false);
                            }
                        }
                    }
                }
            }
        }
        if (@char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID)
        {
            if (SoldierBatch.MYTHRAID_INFO.IsCanBattle())
            {
                if (this.m_StartEffect == null)
                {
                }
            }
            else if (this.m_StartEffect != null)
            {
                UnityEngine.Object.DestroyImmediate(this.m_StartEffect);
            }
        }
        this.RefreshSolCount();
        this.RefreshPossibleLevel();
        this.SetGuardAngelSkillButton();
        if (!base.Visible)
        {
            this.Show();
        }
    }
    private void ClickRightMenu(IUIObject obj)
    {
        if (TsPlatform.IsWeb)
        {
            NrTSingleton <CRightClickMenu> .Instance.CloseUI(CRightClickMenu.CLOSEOPTION.CLICK);
        }
        else if (NrTSingleton <CRightClickMenu> .Instance.IsOpen())
        {
            TsLog.Log("CloseUI(CRightClickMenu.CLOSEOPTION.CLICK", new object[0]);
            NrTSingleton <CRightClickMenu> .Instance.CloseUI(CRightClickMenu.CLOSEOPTION.CLICK);

            return;
        }
        NewGuildMember newGuildMember = obj.Data as NewGuildMember;

        if (newGuildMember == null)
        {
            return;
        }
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        if (@char.GetPersonID() == newGuildMember.GetPersonID())
        {
            return;
        }
        bool flag;

        if (NrTSingleton <NewGuildManager> .Instance.IsMaster(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID))
        {
            if (NrTSingleton <NewGuildManager> .Instance.IsMaster(newGuildMember.GetPersonID()) || NrTSingleton <NewGuildManager> .Instance.IsSubMaster(newGuildMember.GetPersonID()))
            {
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(newGuildMember.GetPersonID(), 0, newGuildMember.GetCharName(), CRightClickMenu.KIND.GUILD_MASTER_SELECT_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_1, false);
            }
            else
            {
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(newGuildMember.GetPersonID(), 0, newGuildMember.GetCharName(), CRightClickMenu.KIND.GUILD_MASTER_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_1, false);
            }
        }
        else if (NrTSingleton <NewGuildManager> .Instance.IsSubMaster(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID))
        {
            if (NrTSingleton <NewGuildManager> .Instance.IsMaster(newGuildMember.GetPersonID()) || NrTSingleton <NewGuildManager> .Instance.IsSubMaster(newGuildMember.GetPersonID()))
            {
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(newGuildMember.GetPersonID(), 0, newGuildMember.GetCharName(), CRightClickMenu.KIND.GUILD_SUBMASTER_SELECT_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_1, false);
            }
            else
            {
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(newGuildMember.GetPersonID(), 0, newGuildMember.GetCharName(), CRightClickMenu.KIND.GUILD_SUBMASTER_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_1, false);
            }
        }
        else
        {
            flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(newGuildMember.GetPersonID(), 0, newGuildMember.GetCharName(), CRightClickMenu.KIND.GUILD_MEMBER_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_1, false);
        }
        Button button = obj as Button;

        if (button != null && flag)
        {
            float x          = this.m_nlbMember.GetSize().x;
            float height     = 28f;
            float left       = base.GetLocation().x + this.m_nlbMember.GetLocation().x + button.gameObject.transform.localPosition.x;
            float top        = base.GetLocationY() + this.m_nlbMember.GetLocationY() + -button.gameObject.transform.localPosition.y;
            Rect  windowRect = new Rect(left, top, x, height);
            NrTSingleton <CRightClickMenu> .Instance.SetWindowRect(windowRect);
        }
    }
    public override void SetComponent()
    {
        this.m_btInvite       = (base.GetControl("BT_InviteAlly") as Button);
        this.m_btInvite.Click = new EZValueChangedDelegate(this.OnClickInviteFriend);
        this.m_btInvite.Hide(true);
        this.m_btInvite.EffectAni = false;
        this.m_btInitiative       = (base.GetControl("BT_Initiative") as Button);
        Button expr_61 = this.m_btInitiative;

        expr_61.Click = (EZValueChangedDelegate)Delegate.Combine(expr_61.Click, new EZValueChangedDelegate(this.OnClickSetInitiative));
        this.m_btInitiative.EffectAni = false;
        this.m_btChat      = (base.GetControl("BT_Chat") as Button);
        this.m_btChat.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1922");

        Button expr_C4 = this.m_btChat;

        expr_C4.Click           = (EZValueChangedDelegate)Delegate.Combine(expr_C4.Click, new EZValueChangedDelegate(this.ChatDlg));
        this.m_bChatNew         = (base.GetControl("Box_New") as Box);
        this.m_bChatNew.Visible = false;
        this.m_lbChat           = (base.GetControl("Label_Chat") as Label);
        this.m_lbInvite         = (base.GetControl("Label_InviteAlly") as Label);
        this.m_lbInitiative     = (base.GetControl("Label_Initiative") as Label);
        this.tf_chat            = (base.GetControl("TF_Chat") as TextField);
        this.tf_chat.SetCommitDelegate(new EZKeyboardCommitDelegate(this.OnInputText));
        this.tf_chat.Visible = false;
        this.m_btAuto        = (base.GetControl("BT_AUTO") as Button);
        this.m_btAuto.Click  = new EZValueChangedDelegate(this.ClickAutoBattleCheck);
        this.m_dtAuto        = (base.GetControl("DT_AUTO") as DrawTexture);
        if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MYTHRAID)
        {
            this.tf_chat.Visible = true;
            MYTHRAID_PERSON mythRaidLeaderInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidLeaderInfo();
            if (mythRaidLeaderInfo != null)
            {
                NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

                if (@char.GetPersonID() == mythRaidLeaderInfo.nPartyPersonID)
                {
                    this.m_btInvite.Click = new EZValueChangedDelegate(this.OnClickInviteFriend_MythRaid);
                    this.m_btInvite.Hide(false);
                }
                else
                {
                    this.m_btInvite.Hide(false);
                    this.m_btInvite.SetEnabled(false);
                }
            }
        }
        else
        {
            BABELTOWER_PERSON babelLeaderInfo = SoldierBatch.BABELTOWER_INFO.GetBabelLeaderInfo();
            if (babelLeaderInfo != null)
            {
                NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1);

                if (char2.GetPersonID() == babelLeaderInfo.nPartyPersonID)
                {
                    this.m_btInvite.Hide(false);
                }
                else
                {
                    this.m_btInvite.Hide(false);
                    this.m_btInvite.SetEnabled(false);
                }
            }
        }
        PlunderSolListDlg plunderSolListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLLIST_DLG) as PlunderSolListDlg;

        if (plunderSolListDlg != null)
        {
            base.SetLocation(plunderSolListDlg.GetLocationX() + plunderSolListDlg.GetSizeX(), -(GUICamera.height - base.GetSizeY()), base.GetLocation().z);
        }
        base.DonotDepthChange(1005f);
        if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_GUILDBOSS_MAKEUP)
        {
            this.m_btChat.Visible   = false;
            this.m_lbChat.Visible   = false;
            this.m_btInvite.Visible = false;
            this.m_lbInvite.Visible = false;
        }
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return;
        }
        if (kMyCharInfo.GetAutoBattle() == E_BF_AUTO_TYPE.AUTO)
        {
            this.isAutoOn = true;
        }
        else
        {
            this.isAutoOn = false;
        }
        this.SetAutoBattleTexture(this.isAutoOn);
    }
    public void RefreshSolInfo()
    {
        for (int i = 0; i < 4; i++)
        {
            this.user_info[i].Init();
        }
        this.SetLayer();
        NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1);

        string text  = string.Empty;
        string text2 = string.Empty;

        if (0 >= SoldierBatch.BABELTOWER_INFO.BountHuntUnique)
        {
            if (SoldierBatch.BABELTOWER_INFO.m_nBabelFloorType == 2)
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2787");
            }
            else
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("833");
            }
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
            {
                text,
                "floor",
                SoldierBatch.BABELTOWER_INFO.m_nBabelFloor,
                "subfloor",
                (int)(SoldierBatch.BABELTOWER_INFO.m_nBabelSubFloor + 1)
            });
        }
        else
        {
            BountyInfoData bountyInfoDataFromUnique = NrTSingleton <BountyHuntManager> .Instance.GetBountyInfoDataFromUnique(SoldierBatch.BABELTOWER_INFO.BountHuntUnique);

            if (bountyInfoDataFromUnique != null)
            {
                text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(bountyInfoDataFromUnique.i32WeekTitleKey.ToString());
            }
        }
        PlunderSolNumDlg plunderSolNumDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.PLUNDERSOLNUM_DLG) as PlunderSolNumDlg;

        if (plunderSolNumDlg != null)
        {
            plunderSolNumDlg.SetTitle(text2);
        }
        BABELTOWER_PERSON babelLeaderInfo = SoldierBatch.BABELTOWER_INFO.GetBabelLeaderInfo();

        if (babelLeaderInfo != null)
        {
            this.user_info[0].Show(true);
            this.user_info[0].PersonID = babelLeaderInfo.nPartyPersonID;
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1639");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
            {
                text,
                "count",
                babelLeaderInfo.nLevel.ToString(),
                "targetname",
                babelLeaderInfo.strCharName
            });

            this.user_info[0].m_laUserName.SetText(text2);
            for (int j = 0; j < 4; j++)
            {
                if (j != 0)
                {
                    BABELTOWER_PERSON babelPersonInfo = SoldierBatch.BABELTOWER_INFO.GetBabelPersonInfo(j);
                    if (babelPersonInfo != null)
                    {
                        if (babelPersonInfo.nPartyPersonID > 0L)
                        {
                            this.m_ddlSlotType[j].SetVisible(false);
                            this.user_info[j].Show(true);
                            this.user_info[j].PersonID = babelPersonInfo.nPartyPersonID;
                            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
                            {
                                text,
                                "count",
                                babelPersonInfo.nLevel.ToString(),
                                "targetname",
                                babelPersonInfo.strCharName
                            });

                            this.user_info[j].m_laUserName.SetText(text2);
                            this.user_info[j].m_dtReady.Visible = babelPersonInfo.bReady;
                            if (babelPersonInfo.bReady)
                            {
                                this.user_info[j].m_laReady.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("662");
                            }
                            else
                            {
                                this.user_info[j].m_laReady.Text = string.Empty;
                            }
                            if (@char.GetPersonID() == babelLeaderInfo.nPartyPersonID || @char.GetPersonID() == babelPersonInfo.nPartyPersonID)
                            {
                                this.user_info[j].m_btKickUser.Data = j;
                                this.user_info[j].m_btKickUser.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickKickUser));
                            }
                            else
                            {
                                this.user_info[j].m_btKickUser.Visible = false;
                            }
                        }
                        else
                        {
                            this.user_info[j].Show(false);
                            if (@char.GetPersonID() == babelLeaderInfo.nPartyPersonID)
                            {
                                this.user_info[j].SetSlotState(false, 0);
                                this.m_ddlSlotType[j].SetVisible(true);
                            }
                            else
                            {
                                this.user_info[j].SetSlotState(true, (int)babelPersonInfo.nSlotType);
                                this.m_ddlSlotType[j].SetVisible(false);
                            }
                        }
                    }
                }
            }
        }
        if (@char.GetPersonID() == babelLeaderInfo.nPartyPersonID)
        {
            if (SoldierBatch.BABELTOWER_INFO.IsCanBattle())
            {
                if (this.m_StartEffect == null)
                {
                }
            }
            else if (this.m_StartEffect != null)
            {
                UnityEngine.Object.DestroyImmediate(this.m_StartEffect);
            }
        }
        this.RefreshSolCount();
        this.RefreshPossibleLevel();
        if (!base.Visible)
        {
            this.Show();
        }
    }