Example #1
0
    private void OnClickBtnQualification(GameObject go)
    {
        GuildWarVSInfoUI guildWarVSInfoUI = UIManagerControl.Instance.OpenUI("GuildWarVSInfoUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as GuildWarVSInfoUI;

        guildWarVSInfoUI.get_transform().SetAsLastSibling();
        this.Show(false);
    }
Example #2
0
    private void OnClickOpenGuildWarVSUI(GameObject go)
    {
        if (MySceneManager.Instance.IsCurrentGuildWarCityScene)
        {
            UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(515069, false));
            return;
        }
        GuildWarVSInfoUI guildWarVSInfoUI = UIManagerControl.Instance.OpenUI("GuildWarVSInfoUI", UINodesManager.NormalUIRoot, false, UIType.NonPush) as GuildWarVSInfoUI;

        guildWarVSInfoUI.get_transform().SetAsLastSibling();
    }
    public void OpenCurrentActivityUI(int activityID)
    {
        if (!this.CurrentACInfoDic.ContainsKey(activityID) || this.CurrentACInfoDic.get_Item(activityID).status != ActiveCenterInfo.ActiveStatus.AS.Start)
        {
            UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(513526, false), 2f, 2f);
            return;
        }
        if (!DataReader <HuoDongZhongXin> .Contains(activityID))
        {
            return;
        }
        HuoDongZhongXin huoDongZhongXin = DataReader <HuoDongZhongXin> .Get(activityID);

        if (huoDongZhongXin == null)
        {
            return;
        }
        if (activityID == 10004 || activityID == 10005)
        {
            if (!GuildManager.Instance.IsJoinInGuild())
            {
                UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(34157, false));
                return;
            }
            if (activityID == 10004)
            {
                GuildActivityCenterUI guildActivityCenterUI = UIManagerControl.Instance.OpenUI("GuildActivityCenterUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as GuildActivityCenterUI;
                guildActivityCenterUI.get_transform().SetAsLastSibling();
            }
            else if (activityID == 10005)
            {
                GuildWarVSInfoUI guildWarVSInfoUI = UIManagerControl.Instance.OpenUI("GuildWarVSInfoUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as GuildWarVSInfoUI;
                guildWarVSInfoUI.get_transform().SetAsLastSibling();
            }
            return;
        }
        else
        {
            if (huoDongZhongXin.minLv > EntityWorld.Instance.EntSelf.Lv)
            {
                string text = string.Format(GameDataUtils.GetChineseContent(513512, false), huoDongZhongXin.minLv);
                UIManagerControl.Instance.ShowToastText(text);
                return;
            }
            if (activityID == 10001)
            {
                InstanceManagerUI.OpenGangFightUI();
            }
            else if (activityID == 10002)
            {
                MultiPlayerManager.Instance.OpenMultiPlayerUI(10002, "多人活动");
            }
            else if (activityID == 10003)
            {
                LinkNavigationManager.OpenMushroomHitUI();
            }
            else if (activityID == 10006)
            {
                LinkNavigationManager.OpenMultiPVPUI();
            }
            else if (activityID == 10007)
            {
                LinkNavigationManager.SystemLink(55, true, null);
            }
            return;
        }
    }