Example #1
0
        public void ProcessWebUrl(UWebUrlData webUrlData)
        {
            LogicDataCenter.gamePromotionDataManager.WebUrl[(GameWebUrl)webUrlData.nNavID] = webUrlData.szWebUrl;
            switch (webUrlData.nNavID)
            {
            case (int)GameWebUrl.SHARE_PERSONAL_LINK:
            {
                (m_subFrameViewList[(int)GamePromotionButtonType.BTN_TAITANSAYSAY] as TaiTanSaySayFrame).privateLinkText.text = webUrlData.szWebUrl + GameLogicAPI.getPlayerUserID(EntityFactory.MainHeroID);
            }
            break;

            case (int)GameWebUrl.WEB_INTERFACE_LINK:
            {
                if (gameObject.activeInHierarchy)
                {
                    StartCoroutine(LogicDataCenter.gamePromotionDataManager.GetInfoAndUserList());
                }
            }
            break;

            case (int)GameWebUrl.QRCODE_LINK:
            {
                if (gameObject.activeInHierarchy)
                {
                    StartCoroutine(LogicDataCenter.gamePromotionDataManager.BuildRecommendQRCode());
                }
            }
            break;

            default:
                break;
            }
        }
Example #2
0
        public void RedirectWeb(UWebUrlData webUrlData)
        {
            if (webUrlData.nNavID < 0 || webUrlData.nNavID != m_curNavID)
            {
                return;
            }

            foreach (UISubFrameView item in m_subFrameViewList)
            {
                if (item.GetButtonType() == GamePromotionButtonType.BTN_WEBLINK)
                {
                    (item as PromotionWebFrame).Redirection(webUrlData.szWebUrl);
                }
            }
        }