void OnOpenHideAndSeekOKClick()
    {
        int nDifficulty = GlobeVar.INVALID_ID;

        if (m_HideAndSeekTabController.GetHighlightTab().name == "Choose1-Easy")
        {
            nDifficulty = 0;
        }
        else if (m_HideAndSeekTabController.GetHighlightTab().name == "Choose2-Normal")
        {
            nDifficulty = 1;
        }
        else if (m_HideAndSeekTabController.GetHighlightTab().name == "Choose3-Hard")
        {
            nDifficulty = 2;
        }

        if (nDifficulty == GlobeVar.INVALID_ID)
        {
            m_HideAndSeekDifficultyChoose.SetActive(false);
            return;
        }

        CG_GUILD_OPEN_HIDEANDSEEK pak = (CG_GUILD_OPEN_HIDEANDSEEK)PacketDistributed.CreatePacket(MessageID.PACKET_CG_GUILD_OPEN_HIDEANDSEEK);

        pak.Difficulty = nDifficulty;
        pak.SendPacket();

        m_HideAndSeekDifficultyChoose.SetActive(false);
    }
    public bool IsShowWuLinTab()
    {
        GameObject curTab = m_TabController.GetHighlightTab().gameObject;

        if (curTab.name == "Tab4")
        {
            return(true);
        }
        return(false);
    }
示例#3
0
    void UpdateData()
    {
        if (m_GuildReserveWindow.activeInHierarchy)
        {
            ShowGuildReserveMemberList();
            return;
        }

        TabButton curTab = m_GuildTabController.GetHighlightTab();

        if (curTab == null)
        {
            return;
        }

        //如果点击帮会列表分页
        if (curTab.name == "01JoinGuild")
        {
            //显示帮会列表
            ShowGuildList();
        }

        //如果点击帮会信息分页
        if (curTab.name == "03GuildInfoButton")
        {
            //清理正式成员Grid
            Utils.CleanGrid(m_GuildMemberListGrid);

            //如果发现需要申请,则发送申请消息
            if (null != Singleton <ObjManager> .GetInstance().MainPlayer&&
                Singleton <ObjManager> .GetInstance().MainPlayer.NeedRequestGuildInfo)
            {
                Singleton <ObjManager> .GetInstance().MainPlayer.ReqGuildInfo();
            }
            else
            {
                //否则直接显示帮会信息
                ShowGuildInfo();
            }
        }

        //如果点击帮会预备成员分页
        if (curTab.name == "GuildReserveMemberButton")
        {
            //由于玩家打开帮会界面的时候会显示申请帮会信息,所以这里直接读取,而不申请
            //审批页面单独显示 不再是tabbutton了
            //ShowGuildReserveMemberList();
        }
        //如果点击的是帮战战况按钮
        if (curTab.name == "GuildWarButton")
        {
            //   ShowGuildWarPremilinaryInfo();
        }
        if (curTab.name.Equals("GuildReserveMemberButton"))
        {
            OnReserveClick();
        }
    }
    public void HandleSyncHideAndSeek()
    {
        TabButton curTab = m_TabController.GetHighlightTab();

        if (curTab.name == "Activity01-HideAndSeek")
        {
            UpdateHideAndSeekContent();
        }
    }
示例#5
0
    void UpdateData()
    {
        GameObject curTab = m_MasterTabController.GetHighlightTab().gameObject;

        if (curTab.name == "1MasterInfoTab")
        {
            ClearInfoTabPage();
            //师门信息
            if (Singleton <ObjManager> .GetInstance().MainPlayer.NeedRequestMasterInfo&& m_NeedUpdateMasterInfo)
            {
                m_NeedUpdateMasterInfo = false;
                Singleton <ObjManager> .GetInstance().MainPlayer.ReqMasterInfo();
            }
            else
            {
                ShowInfoTabPage();
            }
        }
        else if (curTab.name == "2MasterMemberTab")
        {
            //成员列表
            ShowMemberTabPage();
        }
        else if (curTab.name == "3MasterCheckLisctTab")
        {
            //审批列表
            ShowCheckTabPage();
        }
        else if (curTab.name == "4MasterJoinTab")
        {
            //加入师门
            if (Singleton <ObjManager> .GetInstance().MainPlayer.NeedRequestMasterList)
            {
                Singleton <ObjManager> .GetInstance().MainPlayer.ReqMasterList();
            }
            else
            {
                ShowJoinTabPage();
            }
        }
        else if (curTab.name == "5MasterCreateTab")
        {
            //创建师门
            ShowCreateTabPage();
        }
        else if (curTab.name == "6MasterShopTab")
        {
            UpdateQingYi();
        }

        UpdateMasterReserverRemain();
    }
示例#6
0
    void UpdateData()
    {
        if (m_TabController.GetHighlightTab() == null)
        {
            return;
        }

        GameObject curTab = m_TabController.GetHighlightTab().gameObject;

        //update的时候先cleangrid,注释掉了update时候的clean。在note3上会出现闪UI的现象。
        Utils.CleanGrid(friendListGrid);
        hideFindFriendWin();

        // 隐藏 批量删除的相关
        m_lotDeleteBtn.SetActive(false);
        m_Enemydelete.gameObject.SetActive(false);
        m_isClickLotDelete = false;

        SelectPlayerListItem(null);
        if (curTab.name == "0")
        {
            UpdateFriendListData();
        }
        else if (curTab.name == "1")
        {
            UpdateBlackList();
        }
        else if (curTab.name == "2")
        {
            UpdateHateList( );
        }
        else if (curTab.name == "3")
        {
        }
        friendListGrid.GetComponent <UIGrid>().Reposition();
    }
示例#7
0
 void ShowLeftList()
 {
     if (BePowerData.curScoreList.Count > 0)
     {
         for (int i = 0; i < BePowerData.curScoreList.Count; i++)
         {
             if (BePowerData.curScoreList[i].type <= m_Tab.Length && BePowerData.curScoreList[i].type > 0)
             {
                 if (i < m_PowerLeftItem.Length)
                 {
                     if (m_PowerLeftItem[i] != null)
                     {
                         bool setSlider = false;
                         if (i < m_Tab.Length && m_Tab[i] != null)
                         {
                             if (m_TabController.GetHighlightTab() != null)
                             {
                                 GameObject curTab = m_TabController.GetHighlightTab().gameObject;
                                 if (curTab != null)
                                 {
                                     setSlider = m_Tab[i].gameObject.name == curTab.name;
                                 }
                             }
                         }
                         m_PowerLeftItem[i].SetData(BePowerData.curScoreList[i].type,
                                                    BePowerData.curScoreList[i].value, BePowerData.curScoreList[i].level, setSlider);
                         if (setSlider)
                         {
                             SetSlider(m_PowerLeftItem[i].ItemLevel);
                         }
                     }
                 }
             }
         }
     }
 }
示例#8
0
    void OnTabChanged(TabButton curButton)
    {
        for (int i = 0; i < m_TeamMemberSortSprite.Length; i++)
        {
            m_TeamMemberSortSprite[i].gameObject.SetActive(false);
        }
        for (int i = 0; i < m_AroundPlayerSortSprite.Length; i++)
        {
            m_AroundPlayerSortSprite[i].gameObject.SetActive(false);
        }
        for (int i = 0; i < m_AroundTeamSortSprite.Length; i++)
        {
            m_AroundTeamSortSprite[i].gameObject.SetActive(false);
        }
        if (null == Singleton <ObjManager> .GetInstance().MainPlayer)
        {
            Module.Log.LogModule.ErrorLog("OnTabChanged:: MainPlayer is null");
            return;
        }
        GameObject curTab = m_TabController.GetHighlightTab().gameObject;

        if (null == curTab)
        {
            Module.Log.LogModule.ErrorLog("OnTabChanged:: curTab is null");
            return;
        }

        if (curTab.name == "0")
        {
            UpdateTeamInfo(Singleton <ObjManager> .GetInstance().MainPlayer.GUID);
        }
        else if (curTab.name == "1")
        {
            DestroyPartnerFakeObj();
            Utils.CleanGrid(m_AroundPlayerGrid);
            SelectPlayerListItem(null);
            // 服务器如果发现周围没有玩家就不会回包,所以先清空人数
            m_AroundPlayerSumLabel.text = "0";
            ReqNearbyPlayer();
        }
        else if (curTab.name == "2")
        {
            DestroyPartnerFakeObj();
            Utils.CleanGrid(m_AroundTeamGrid);
            SelectPlayerListItem(null);
            ReqNearbyTeam();
        }
    }