示例#1
0
    public void InitReadyState()
    {
        for (int i = 0; i < 4; i++)
        {
            if (this.stMythRaidPersonInfo[i].nPartyPersonID > 0L)
            {
                if (this.m_nLeaderPersonID == this.stMythRaidPersonInfo[i].nPartyPersonID)
                {
                    this.stMythRaidPersonInfo[i].bReady = true;
                }
                else
                {
                    this.stMythRaidPersonInfo[i].bReady = false;
                }
            }
        }
        if (NrTSingleton <FormsManager> .Instance.IsShow(G_ID.MYTHRAID_USERLIST_DLG))
        {
            MythRaidLobbyUserListDlg mythRaidLobbyUserListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYTHRAID_USERLIST_DLG) as MythRaidLobbyUserListDlg;

            if (mythRaidLobbyUserListDlg != null)
            {
                mythRaidLobbyUserListDlg.UpdateMythRaidReadyState();
            }
        }
    }
示例#2
0
    public void SetSlotType(int pos, byte slot_type)
    {
        if (pos < 0 || pos >= 4)
        {
            return;
        }
        this.stMythRaidPersonInfo[pos].nSlotType = slot_type;
        MythRaidLobbyUserListDlg mythRaidLobbyUserListDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MYTHRAID_USERLIST_DLG) as MythRaidLobbyUserListDlg;

        mythRaidLobbyUserListDlg.SetUserSlotType(pos, slot_type);
    }
    public override void SetComponent()
    {
        this.m_btAutoBatch = (base.GetControl("BT_AutoBatch") as Button);
        Button expr_1C = this.m_btAutoBatch;

        expr_1C.Click = (EZValueChangedDelegate)Delegate.Combine(expr_1C.Click, new EZValueChangedDelegate(this.OnClickAutoBatch));
        float num = GUICamera.width;

        if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_BABEL_TOWER)
        {
            BabelLobbyUserListDlg babelLobbyUserListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWERUSERLIST_DLG) as BabelLobbyUserListDlg;

            if (babelLobbyUserListDlg != null)
            {
                num = babelLobbyUserListDlg.GetLocationX();
            }
        }
        else if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MYTHRAID)
        {
            MythRaidLobbyUserListDlg mythRaidLobbyUserListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYTHRAID_USERLIST_DLG) as MythRaidLobbyUserListDlg;

            if (mythRaidLobbyUserListDlg != null)
            {
                num = mythRaidLobbyUserListDlg.GetLocationX();
            }
        }
        else if (SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_GUILDBOSS_MAKEUP)
        {
            BabelTowerGuildBossLobbyDlg babelTowerGuildBossLobbyDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABEL_GUILDBOSS_LOBBY_DLG) as BabelTowerGuildBossLobbyDlg;

            if (babelTowerGuildBossLobbyDlg != null)
            {
                num = babelTowerGuildBossLobbyDlg.GetLocationX();
            }
        }
        base.SetLocation(num - base.GetSizeX(), GUICamera.height - base.GetSizeY(), base.GetLocation().z);
    }
    public void OnClickInviteFriend_MythRaid(IUIObject obj)
    {
        bool flag = false;

        for (int i = 0; i < 4; i++)
        {
            MYTHRAID_PERSON mythRaidPersonInfo = SoldierBatch.MYTHRAID_INFO.GetMythRaidPersonInfo(i);
            if (mythRaidPersonInfo.nPartyPersonID <= 0L && mythRaidPersonInfo.nPartyPersonID != SoldierBatch.MYTHRAID_INFO.m_nLeaderPersonID)
            {
                flag = true;
                if (mythRaidPersonInfo.nSlotType == 0)
                {
                    MythRaidLobbyUserListDlg mythRaidLobbyUserListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYTHRAID_USERLIST_DLG) as MythRaidLobbyUserListDlg;

                    if (mythRaidLobbyUserListDlg != null)
                    {
                        mythRaidLobbyUserListDlg.SetSlotIndex(i, 1);
                        GS_MYTHRAID_CHANGE_SLOTTYPE_REQ gS_MYTHRAID_CHANGE_SLOTTYPE_REQ = new GS_MYTHRAID_CHANGE_SLOTTYPE_REQ();
                        gS_MYTHRAID_CHANGE_SLOTTYPE_REQ.pos = i;
                        gS_MYTHRAID_CHANGE_SLOTTYPE_REQ.nMythRaidRoomIndex = SoldierBatch.MYTHRAID_INFO.m_nMythRaidRoomIndex;
                        gS_MYTHRAID_CHANGE_SLOTTYPE_REQ.change_type        = 1;
                        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MYTHRAID_CHANGE_SLOTTYPE_REQ, gS_MYTHRAID_CHANGE_SLOTTYPE_REQ);
                    }
                }
                break;
            }
        }
        if (flag)
        {
            NrTSingleton <NewGuildManager> .Instance.Send_GS_NEWGUILD_INFO_REQ(0);
        }
        else
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("306"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
        }
    }