Ejemplo n.º 1
0
    private void MessageBox_PreviewHero(object a_oObject)
    {
        NkSoldierInfo nkSoldierInfo = (NkSoldierInfo)a_oObject;

        if (nkSoldierInfo == null)
        {
            return;
        }
        if (nkSoldierInfo.GetCharKindInfo() == null)
        {
            return;
        }
        GS_PREVIEW_HERO_START_REQ gS_PREVIEW_HERO_START_REQ = new GS_PREVIEW_HERO_START_REQ();

        gS_PREVIEW_HERO_START_REQ.i32CharKind      = nkSoldierInfo.GetCharKind();
        gS_PREVIEW_HERO_START_REQ.i32CostumeUnique = (int)nkSoldierInfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_COSTUME);
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_PREVIEW_HERO_START_REQ, gS_PREVIEW_HERO_START_REQ);
        SolMilitaryGroupDlg solMilitaryGroupDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLMILITARYGROUP_DLG) as SolMilitaryGroupDlg;

        if (solMilitaryGroupDlg != null)
        {
            solMilitaryGroupDlg.ChangeSceneDestory = false;
            solMilitaryGroupDlg.Hide();
            NrTSingleton <NkClientLogic> .Instance.GidPrivewHero = 82;
        }
    }
Ejemplo n.º 2
0
    private void MessageBox_PreviewHero(object a_oObject)
    {
        int num = (int)a_oObject;

        if (num < 0)
        {
            return;
        }
        GS_PREVIEW_HERO_START_REQ gS_PREVIEW_HERO_START_REQ = new GS_PREVIEW_HERO_START_REQ();

        gS_PREVIEW_HERO_START_REQ.i32CharKind = num;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_PREVIEW_HERO_START_REQ, gS_PREVIEW_HERO_START_REQ);
        NrTSingleton <NkClientLogic> .Instance.GidPrivewHero = (int)this.m_eParentUI;
    }
Ejemplo n.º 3
0
    private void MessageBox_PreviewHero(object a_oObject)
    {
        int num = (int)a_oObject;

        if (num < 0)
        {
            return;
        }
        GS_PREVIEW_HERO_START_REQ gS_PREVIEW_HERO_START_REQ = new GS_PREVIEW_HERO_START_REQ();

        gS_PREVIEW_HERO_START_REQ.i32CharKind = num;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_PREVIEW_HERO_START_REQ, gS_PREVIEW_HERO_START_REQ);
        HeroCollect_DLG heroCollect_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.HEROCOLLECT_DLG) as HeroCollect_DLG;

        if (heroCollect_DLG != null)
        {
            NrTSingleton <NkClientLogic> .Instance.GidPrivewHero = 433;
        }
    }
Ejemplo n.º 4
0
    private void MessageBox_PreviewHero(object a_oObject)
    {
        int num = (int)a_oObject;

        if (num < 0)
        {
            return;
        }
        GS_PREVIEW_HERO_START_REQ gS_PREVIEW_HERO_START_REQ = new GS_PREVIEW_HERO_START_REQ();

        gS_PREVIEW_HERO_START_REQ.i32CharKind = num;
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_PREVIEW_HERO_START_REQ, gS_PREVIEW_HERO_START_REQ);
        SolGuide_Dlg solGuide_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLGUIDE_DLG) as SolGuide_Dlg;

        if (solGuide_Dlg != null)
        {
            solGuide_Dlg.ChangeSceneDestory = false;
            solGuide_Dlg.Hide();
            NrTSingleton <NkClientLogic> .Instance.GidPrivewHero = 166;
        }
    }