private void OnBtnComplete(CUIEvent ciEvent) { if (this.m_urlAction != null && this.m_urlAction.Execute()) { this.OnCloseIDIPForm(null); } else if (this.m_bGoto && this.m_bShow && this.m_btnUrl != string.Empty) { NoticeSys.BTN_DOSOMTHING btnDoSth = this.m_btnDoSth; string text = this.m_btnUrl; this.OnCloseIDIPForm(null); if (btnDoSth == NoticeSys.BTN_DOSOMTHING.BTN_DOSOMTHING_URL) { CUICommonSystem.OpenUrl(text, true, 0); } else if (btnDoSth == NoticeSys.BTN_DOSOMTHING.BTN_DOSOMTHING_GAME) { int num = 0; int.TryParse(text, ref num); if (num > 0) { CUICommonSystem.JumpForm((RES_GAME_ENTRANCE_TYPE)num, 0, 0, null); } } text = string.Empty; } }
private void onClickVictoryTips(CUIEvent uiEvt) { uint tagUInt = uiEvt.m_eventParams.tagUInt; CUICommonSystem.OpenUrl(uiEvt.m_eventParams.tagStr, true); uiEvt.m_srcWidget.transform.parent.FindChild("Panel_Guide").gameObject.CustomSetActive(false); }
private void BannerImage_OnClickItem(CUIEvent uiEvent) { if (this.m_BannerImage == null || uiEvent.m_srcWidgetBelongedListScript != this.m_UIListScript) { return; } if (this.m_AllLoadImageInfo == null) { return; } int srcWidgetIndexInBelongedList = uiEvent.m_srcWidgetIndexInBelongedList; int num = this.m_AllLoadImageInfo.Length; if (srcWidgetIndexInBelongedList >= num) { return; } BannerImageSys.BannerImageInfo bannerImageInfo = this.m_AllLoadImageInfo[srcWidgetIndexInBelongedList]; if (bannerImageInfo != null) { if (bannerImageInfo.resImgInfo.dwBannerType == 1u) { CUICommonSystem.OpenUrl(bannerImageInfo.resImgInfo.szHttpUrl, true, 0); } else if (bannerImageInfo.resImgInfo.dwBannerType == 2u) { CUICommonSystem.JumpForm(bannerImageInfo.resImgInfo.dwJumpEntrance, bannerImageInfo.resImgInfo.iTargetID, bannerImageInfo.resImgInfo.iTargetID2); } } }
private void OnBtnComplete(CUIEvent ciEvent) { if ((this.m_urlAction != null) && this.m_urlAction.Execute()) { this.OnCloseIDIPForm(null); } else if ((this.m_bGoto && this.m_bShow) && (this.m_btnUrl != string.Empty)) { BTN_DOSOMTHING btnDoSth = this.m_btnDoSth; string btnUrl = this.m_btnUrl; this.OnCloseIDIPForm(null); switch (btnDoSth) { case BTN_DOSOMTHING.BTN_DOSOMTHING_URL: CUICommonSystem.OpenUrl(btnUrl, true); break; case BTN_DOSOMTHING.BTN_DOSOMTHING_GAME: { int result = 0; int.TryParse(btnUrl, out result); if (result > 0) { CUICommonSystem.JumpForm((RES_GAME_ENTRANCE_TYPE)result); } break; } } btnUrl = string.Empty; btnDoSth = BTN_DOSOMTHING.BTN_DOSOMTHING_NONE; } }
private void OnOpenStoryUrl(CUIEvent uiEvent) { CUICommonSystem.OpenUrl(Singleton <CTextManager> .instance.GetText("HeroView_StoryUrl"), true, 0); if (uiEvent.m_srcWidget.gameObject != null) { Singleton <CUINewFlagSystem> .instance.DelNewFlag(uiEvent.m_srcWidget.gameObject, enNewFlagKey.New_HeroOverViewOpenStoryUrl_V14, true); } }
private void OpenQQBuluo(CUIEvent uievent) { if ((ApolloConfig.platform == ApolloPlatform.QQ) || (ApolloConfig.platform == ApolloPlatform.WTLogin)) { string strUrl = "http://xiaoqu.qq.com/cgi-bin/bar/qqgame/handle_ticket?redirect_url=http%3A%2F%2Fxiaoqu.qq.com%2Fmobile%2Fbarindex.html%3F%26_bid%3D%26_wv%3D1027%23bid%3D227061"; CUICommonSystem.OpenUrl(strUrl, true); } }
public void Jump() { if (this._config.dwJumpEntrance > 0) { CUICommonSystem.JumpForm((RES_GAME_ENTRANCE_TYPE)this._config.dwJumpEntrance); } else if (!string.IsNullOrEmpty(this._config.szJumpBtnToUrl)) { CUICommonSystem.OpenUrl(this._config.szJumpBtnToUrl, true); } }
private void OnOpenXunYouBuyConfirm(CUIEvent uiEvent) { Singleton <CUINewFlagSystem> .GetInstance().SetNewFlagForXunYouBuy(false); string webUIUrl = NetworkAccelerator.getWebUIUrl(); if (!string.IsNullOrEmpty(webUIUrl)) { CUICommonSystem.OpenUrl(webUIUrl, true, 2); } }
public void Jump() { if (this._config.dwJumpEntrance > 0u) { CUICommonSystem.JumpForm(this._config.dwJumpEntrance, 0, 0); } else if (!string.IsNullOrEmpty(this._config.szJumpBtnToUrl)) { CUICommonSystem.OpenUrl(this._config.szJumpBtnToUrl, true, 0); } }
private void BannerImage_OnClickItem(CUIEvent uiEvent) { if (((this.m_BannerImage != null) && (uiEvent.m_srcWidgetBelongedListScript == this.m_UIListScript)) && (this.m_AllLoadImageInfo != null)) { int srcWidgetIndexInBelongedList = uiEvent.m_srcWidgetIndexInBelongedList; int length = this.m_AllLoadImageInfo.Length; if (srcWidgetIndexInBelongedList < length) { BannerImageSys.BannerImageInfo info = this.m_AllLoadImageInfo[srcWidgetIndexInBelongedList]; if (info != null) { if (info.resImgInfo.dwBannerType == 1) { CUICommonSystem.OpenUrl(info.resImgInfo.szHttpUrl, true); } else if (info.resImgInfo.dwBannerType == 2) { CUICommonSystem.JumpForm((RES_GAME_ENTRANCE_TYPE)info.resImgInfo.dwJumpEntrance); } } } } }
public bool Execute() { switch (this.action) { case UrlAction.Action.openUrl: CUICommonSystem.OpenUrl(this.url, false, 0); break; case UrlAction.Action.openForm: CUICommonSystem.JumpForm(this.form, 0, 0, null); break; case UrlAction.Action.buy: switch (this.prodType) { case COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP: if (GameDataMgr.specSaleDict.ContainsKey(this.prodID)) { CMallFactoryShopController.ShopProduct theSp = new CMallFactoryShopController.ShopProduct(GameDataMgr.specSaleDict[this.prodID]); Singleton <CMallFactoryShopController> .GetInstance().StartShopProduct(theSp); goto IL_231; } return(false); case COM_ITEM_TYPE.COM_OBJTYPE_HERO: { CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo == null) { Singleton <CUIManager> .GetInstance().OpenTips("internalError", false, 1.5f, null, new object[0]); return(false); } if (masterRoleInfo.IsHaveHero(this.prodID, false)) { Singleton <CUIManager> .GetInstance().OpenTips("hasOwnHero", true, 1.5f, null, new object[0]); return(false); } CUIEvent cUIEvent = new CUIEvent(); cUIEvent.m_eventID = enUIEventID.HeroInfo_OpenBuyHeroForm; cUIEvent.m_eventParams.heroId = this.prodID; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(cUIEvent); goto IL_231; } case COM_ITEM_TYPE.COM_OBJTYPE_HEROSKIN: { CRoleInfo masterRoleInfo2 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo2 == null) { Singleton <CUIManager> .GetInstance().OpenTips("internalError", false, 1.5f, null, new object[0]); return(false); } if (!masterRoleInfo2.IsHaveHero(this.prodID, false)) { Singleton <CUIManager> .GetInstance().OpenTips("Skin_NeedToBuyAHero", true, 1.5f, null, new object[0]); return(false); } if (masterRoleInfo2.IsHaveHeroSkin(this.prodID, (uint)this.prodSpec, false)) { Singleton <CUIManager> .GetInstance().OpenTips("hasOwnHeroSkin", true, 1.5f, null, new object[0]); return(false); } CUIEvent cUIEvent2 = new CUIEvent(); cUIEvent2.m_eventID = enUIEventID.HeroSkin_OpenBuySkinForm; cUIEvent2.m_eventParams.heroSkinParam.heroId = this.prodID; cUIEvent2.m_eventParams.heroSkinParam.skinId = (uint)this.prodSpec; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(cUIEvent2); goto IL_231; } } return(false); IL_231: break; case UrlAction.Action.openMatchUrl: CUICommonSystem.OpenUrl(this.target, true, 0); break; default: return(false); } return(true); }
private void OnClickTermOfService(CUIEvent uiEvent) { CUICommonSystem.OpenUrl("http://www.tencent.com/en-us/zc/termsofservice.shtml", false); }
private void OnClickPrivacyPolicy(CUIEvent uiEvent) { CUICommonSystem.OpenUrl("http://www.tencent.com/en-us/zc/privacypolicy.shtml", false); }
private void OnClickContract(CUIEvent uiEvent) { CUICommonSystem.OpenUrl("http://game.qq.com/contract.shtml", false); }
private void OpenIntegralHall(CUIEvent uiEvent) { string str = "http://jfq.qq.com/comm/index_android.html"; CUICommonSystem.OpenUrl(string.Format("{0}?partition={1}", str, MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID), true); }
private void onOpenWeb(CUIEvent uiEvent) { string strUrl = "http://www.qq.com"; CUICommonSystem.OpenUrl(strUrl, true); }
private void OpenWebHome(CUIEvent uiEvent) { CUICommonSystem.OpenUrl("http://yxzj.qq.com/ingame/all/index.shtml?partition=" + MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID, true); }