public void OnClickBackMove(IUIObject obj)
    {
        if ((this.m_expeditiondetailinfo.ui8ExpeditionState == 1 || this.m_expeditiondetailinfo.ui8ExpeditionState == 3) && this.m_expeditiondetailinfo.i64BattleTime == this.m_expeditiondetailinfo.i64CheckBattleTime)
        {
            if (this.m_expeditiondetailinfo != null)
            {
                GS_EXPEDITION_MILITARY_BACKMOVE_REQ gS_EXPEDITION_MILITARY_BACKMOVE_REQ = new GS_EXPEDITION_MILITARY_BACKMOVE_REQ();
                gS_EXPEDITION_MILITARY_BACKMOVE_REQ.i64ExpeditionID          = this.m_expeditiondetailinfo.i64ExpeditionID;
                gS_EXPEDITION_MILITARY_BACKMOVE_REQ.i16ExpeditionCreateID    = this.m_expeditiondetailinfo.i16ExpeditionCreateDataID;
                gS_EXPEDITION_MILITARY_BACKMOVE_REQ.byExpeditionMilitaryUniq = this.m_expeditiondetailinfo.ui8ExpeditionMilitaryUniq;
                SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXPEDITION_MILITARY_BACKMOVE_REQ, gS_EXPEDITION_MILITARY_BACKMOVE_REQ);
                this.Close();
            }
        }
        else if (this.m_expeditiondetailinfo.ui8ExpeditionState == 2)
        {
            string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("319");

            Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
        }
        else if (this.m_expeditiondetailinfo.ui8ExpeditionState == 4)
        {
            string textFromNotify2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("406");

            Main_UI_SystemMessage.ADDMessage(textFromNotify2, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
        }
    }
Exemplo n.º 2
0
    public void OnClickBackMove(IUIObject obj)
    {
        EXPEDITION_CURRENT_STATE_INFO eXPEDITION_CURRENT_STATE_INFO = obj.Data as EXPEDITION_CURRENT_STATE_INFO;

        if (eXPEDITION_CURRENT_STATE_INFO != null)
        {
            if ((eXPEDITION_CURRENT_STATE_INFO.ui8ExpeditionState == 1 || eXPEDITION_CURRENT_STATE_INFO.ui8ExpeditionState == 3) && eXPEDITION_CURRENT_STATE_INFO.i64Time == eXPEDITION_CURRENT_STATE_INFO.i64CheckBattleTime)
            {
                GS_EXPEDITION_MILITARY_BACKMOVE_REQ gS_EXPEDITION_MILITARY_BACKMOVE_REQ = new GS_EXPEDITION_MILITARY_BACKMOVE_REQ();
                gS_EXPEDITION_MILITARY_BACKMOVE_REQ.i64ExpeditionID          = eXPEDITION_CURRENT_STATE_INFO.i64ExpeditionID;
                gS_EXPEDITION_MILITARY_BACKMOVE_REQ.i16ExpeditionCreateID    = eXPEDITION_CURRENT_STATE_INFO.i16ExpeditionCreateDataID;
                gS_EXPEDITION_MILITARY_BACKMOVE_REQ.byExpeditionMilitaryUniq = eXPEDITION_CURRENT_STATE_INFO.ui8ExpeditionMilitaryUniq;
                SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXPEDITION_MILITARY_BACKMOVE_REQ, gS_EXPEDITION_MILITARY_BACKMOVE_REQ);
            }
            else if (eXPEDITION_CURRENT_STATE_INFO.ui8ExpeditionState == 2)
            {
                string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("319");

                Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            }
            else if (eXPEDITION_CURRENT_STATE_INFO.ui8ExpeditionState == 4)
            {
                string textFromNotify2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("406");

                Main_UI_SystemMessage.ADDMessage(textFromNotify2, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            }
        }
    }