Beispiel #1
0
 void ShowSearchOppoent(int continueSecond, int Progress)
 {
     UIStage        = 0;
     SearchSecond   = continueSecond;
     Countdown.text = StrDictionary.GetClientDictionaryString("#{4809}", SearchSecond);
     searchTip.text = Utils.GetDicByID(4810);
     progress.text  = WuLinData.WuLinRounderTip();
     CleanViewInfoUI();
 }
Beispiel #2
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_WULIN_MEMBERLIST packet = (GC_WULIN_MEMBERLIST )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            WuLinData.ShowRegisterMemberList(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Beispiel #3
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_WULIN_STATE packet = (GC_WULIN_STATE )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            WuLinData.DealWuLinState(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_WULIN_ShowSearch packet = (GC_WULIN_ShowSearch )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            WuLinData.ShowSearchOpponent(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_WULIN_HEROS_LIST packet = (GC_WULIN_HEROS_LIST )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            WuLinData.ShowWuLinHerosInHistory(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_WULIN_OPPONENTVIEW packet = (GC_WULIN_OPPONENTVIEW )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            WuLinData.ShowOppoentViewInfo(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Beispiel #7
0
    void ShowOpponentView()
    {
        UIStage       = 1;
        SearchSecond  = 0;
        progress.text = WuLinData.WuLinRounderTip();
        if (WuLinData.OppoViewInfo.guid == Games.GlobeDefine.GlobeVar.INVALID_GUID)
        {
            string text = "";
            if (WuLinData.Rounder == 1)
            {
                text = StrDictionary.GetClientDictionaryString("#{4813}");
            }
            else
            {
                string roundTips = WuLinData.WuLinRoundTipPrefix();
                text = StrDictionary.GetClientDictionaryString("#{4814}", roundTips);
            }

            searchTip.text = text;
            Countdown.text = text;
        }
        else
        {
            searchTip.text = Utils.GetDicByID(1845);
            Countdown.text = Utils.GetDicByID(1845);
            int id = (int)WuLinData.OppoViewInfo.profession;
            Tab_RoleBaseAttr roleBaseAttr = TableManager.GetRoleBaseAttrByID(id, 0);
            if (roleBaseAttr != null)
            {
                Tab_CharModel charModel = TableManager.GetCharModelByID(roleBaseAttr.CharModelID, 0);
                if (charModel != null)
                {
                    HeadIcon.spriteName = charModel.HeadPic;
                }
            }
            // if( id >= 0 && id <  CharacterDefine.PROFESSION_DICNUM.Length)
            {
                Profession.text = Utils.GetProfessionNameByType(id);
                //Utils.GetDicByID(CharacterDefine.PROFESSION_DICNUM[id]);
            }
        }

        Name.text      = WuLinData.OppoViewInfo.name;
        CombatNum.text = WuLinData.OppoViewInfo.combat.ToString();
        HP.text        = WuLinData.OppoViewInfo.hp.ToString();
        MP.text        = WuLinData.OppoViewInfo.mp.ToString();
        Attack.text    = WuLinData.OppoViewInfo.atk.ToString();
        Defense.text   = WuLinData.OppoViewInfo.def.ToString();
        Critical.text  = WuLinData.OppoViewInfo.cri.ToString();
        Speed.text     = WuLinData.OppoViewInfo.spd.ToString();
        dodge.text     = WuLinData.OppoViewInfo.dge.ToString();
    }
    public void ShowWuLinResult()
    {
        string tips = WuLinData.WuLinRoundTipPrefix();

        if (WuLinData.Resultwin == 1)
        {
            if (WuLinData.Rounder == 1)
            {
                LableResult.text = StrDictionary.GetClientDictionaryString("#{4813}");
            }
            else
            {
                LableResult.text = StrDictionary.GetClientDictionaryString("#{4824}", tips);
            }
            SprWinOrLose.spriteName = "Win";
        }
        else
        {
            LableResult.text        = StrDictionary.GetClientDictionaryString("#{4825}", tips);
            SprWinOrLose.spriteName = "Lose";
        }
    }
    void OnTabDungeonTableau(TabButton button)
    {
        if (null != m_TeamPlatformWindow)
        {
            m_TeamPlatformWindow.gameObject.SetActive(false);
        }

        if (button.name == "Tab2")
        {
            CangJingGeWindow.gameObject.SetActive(true);
            if (m_NewPlayerGuide_Step == 9)
            {
                NewPlayerGuidLogic.CloseWindow();
                m_NewPlayerGuide_Step = -1;
                CangJingGeWindow.NewPlayerGuide(1);
            }
            CangJingGeWindow.OnOpenCopyScene((int)GameDefine_Globe.SCENE_DEFINE.SCENE_FB_HUNDUNZHIDI);
        }
        else if (button.name == "Tab3")
        {
            m_DungeonWindow.gameObject.SetActive(true);
            m_DungeonWindow.OnOpenCopyScene(15);

            if (m_NewPlayerGuide_Step == 42)
            {
                NewPlayerGuidLogic.CloseWindow();
                m_NewPlayerGuide_Step = -1;
                m_DungeonWindow.NewPlayerGuide(1);
                //NewPlayerGuidLogic.OpenWindow(m_EnterCopyScene, 200, 80, "", "right", 0, true, true);
            }
        }
        else if (button.name == "Tab1")
        {
            //             if (m_NewPlayerGuide_Step == 2)
            //             {
            //                 NewPlayerGuidLogic.CloseWindow();
            //                 m_DailyMissionActiveWindow.NewPlayerGuide(1);
            //                 m_NewPlayerGuide_Step = -1;
            //             }
        }
        else if (button.name == "Tab4")
        {
            m_HuaShanWindow.gameObject.SetActive(true);
            CG_ASK_HUASHANPVP_STATE packet = (CG_ASK_HUASHANPVP_STATE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_HUASHANPVP_STATE);
            packet.None = 0;
            packet.SendPacket();
            //.. 请求数据
        }
        else if (button.name == "Tab5")
        {
            if (m_NewPlayerGuide_Step == 3)
            {
                CangJingGeWindow.NewPlayerGuide(1);
                m_NewPlayerGuide_Step = -1;
            }
            CangJingGeWindow.OnOpenCopyScene((int)GameDefine_Globe.SCENE_DEFINE.SCENE_FB_HUNDUNZHIDI);
        }
        else if (button.name == "Tab6")
        {
            m_DungeonWindow.OnOpenCopyScene(16);
            if (m_NewPlayerGuide_Step == 40)
            {
                NewPlayerGuidLogic.CloseWindow();
                m_NewPlayerGuide_Step = -1;
                m_DungeonWindow.NewPlayerGuide(1);
            }
        }
        else if (button.name == "Tab7")
        {
            m_DungeonWindow.OnOpenCopyScene(14);
            if (m_NewPlayerGuide_Step == 41)
            {
                NewPlayerGuidLogic.CloseWindow();
                m_NewPlayerGuide_Step = -1;
                m_DungeonWindow.NewPlayerGuide(1);
            }
        }
        else if (button.name == "Tab8")
        {
            m_DungeonWindow.OnOpenCopyScene(35);
            if (m_NewPlayerGuide_Step == 43)
            {
                NewPlayerGuidLogic.CloseWindow();
                m_NewPlayerGuide_Step = -1;
                m_DungeonWindow.NewPlayerGuide(1);
            }
        }
        else if (button.name == "Tab10")
        {
            m_DungeonWindow.OnOpenCopyScene(31);
        }
        else if (button.name == "Tab13")
        {
            m_DungeonWindow.OnOpenCopyScene(13);
            if (m_NewPlayerGuide_Step == 44)
            {
                NewPlayerGuidLogic.CloseWindow();
                m_NewPlayerGuide_Step = -1;
                m_DungeonWindow.NewPlayerGuide(1);
            }
        }
        else if (button.name == "Tab14")
        {
            //m_WuLinWindow.gameObject.SetActive(true);
            WuLinData.HerosInHistoryList.Clear();
            if (WuLinData.delegateShowWuLinHeroesInHistory != null)
            {
                WuLinData.delegateShowWuLinHeroesInHistory();
            }
            CG_ASK_WULIN_STATE packet = (CG_ASK_WULIN_STATE)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_WULIN_STATE);
            packet.None = 0;
            packet.SendPacket();
            //.. 请求数据
        }
        else if (button.name == "Tab15")
        {
            if (m_VillainWindow != null && m_VillainWindow.gameObject != null)
            {
                m_VillainWindow.gameObject.SetActive(true);
                CG_ASK_VILLAIN_INFO packet = (CG_ASK_VILLAIN_INFO)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_VILLAIN_INFO);
                packet.Ndata = 1;
                packet.SendPacket();
            }
            else
            {
                LogModule.ErrorLog("m_VillainWindow.gameObject is null");
            }
        }
        else if (button.name == "Tab16")
        {
            m_DungeonWindow.OnOpenCopyScene(41);
        }
        else if (button.name == "Tab17")
        {
            m_RebuyWindow.gameObject.SetActive(true);
        }
        else if (button.name == "Tab18")
        {
            UpdateWorldBossState();
        }
    }