public override void Destroy() { if (null != gloryMomentRedPoint) { URedPointTip.DestroyRedPointTip(gloryMomentRedPoint); } }
public override void SetVisible(bool visible) { base.SetVisible(visible); if (visible) { m_currentPageType = EMGloryMomentPageType.EMPage_Image; m_currentDataShowType = EMGloryMomentDataShowType.EMType_All; PageBtnGroup.SetItemSelectedItem(0); DefaultToggle.isOn = true; ImgShareView.CloseView(); VideoPlayView.CloseView(); RefreshTimeAxis(); RefreshDataList(); RefreshTipPart(); } else { if (imgRedPoint != null) { URedPointTip.DestroyRedPointTip(imgRedPoint); imgRedPoint = null; } if (videoRedPoint != null) { URedPointTip.DestroyRedPointTip(videoRedPoint); videoRedPoint = null; } } }
public void OnMomentBtnClick(bool bActive) { if (!bActive) { return; } if (gloryMomentRedPoint != null) { URedPointTip.DestroyRedPointTip(gloryMomentRedPoint); gloryMomentRedPoint = null; } ShowSubWnd(PlayerSubWndType.WND_MOMENT); }
public override void Destroy() { URedPointTip.DestroyRedPointTip(m_socialRedPoint); URedPointTip.DestroyRedPointTip(m_chestRedPoint); URedPointTip.DestroyRedPointTip(m_mailBoxRedPoint); URedPointTip.DestroyRedPointTip(m_taskRedPoint); URedPointTip.DestroyRedPointTip(m_gemstoneRedPoint); if (m_nBtnWarHallEffect != null) { UEffect.UEffectManager.Instance.DestroyEffect(UEffect.UEffectType.UET_EffectPrefab, ref m_nBtnWarHallEffect); m_nBtnWarHallEffect = null; } base.Destroy(); }
public override void Start() { base.Start(); int redPointCount = CaptureScreen.GetInstance().WarImgCount + ScreenREC.GetInstance().WarVideoCount; if (null == gloryMomentRedPoint) { gloryMomentRedPoint = URedPointTip.CreateRedPointObject(MomentBtnObj.GetComponent <RectTransform>(), 100.0f, 20.0f); if (gloryMomentRedPoint != null) { gloryMomentRedPoint.SetTipCount(redPointCount); } } //m_PlayerFrameWnd.GetSubWnd(PlayerSubWndType.WND_CROWN).SetContainer(UISystem.Instance.GetWndLayerTrans(WndLayerDef.WND_LAYER_FILL));//(this.transform.parent); }
public override bool Init(IUIWnd wnd) { base.Init(wnd); m_UseImageEffect = true; SocialWnd socialWnd = wnd as SocialWnd; if (socialWnd != null) { socialWnd.InitSubWndContainer(confineFrame); } clanRedTip = URedPointTip.CreateRedPointObject(clanTipFrame as RectTransform); return(true); }
public override void OnDestroy() { base.OnDestroy(); if (ImgShareView) { ImgShareView.Clear(); } if (VideoPlayView) { VideoPlayView.Clear(); } if (m_timeAxisMap != null) { m_timeAxisMap.Clear(); m_timeAxisMap = null; } if (m_timeAxisItemList != null) { m_timeAxisItemList.Clear(); m_timeAxisItemList = null; } if (m_ImgDataList != null) { m_ImgDataList.Clear(); m_ImgDataList = null; } if (m_videoDataList != null) { m_videoDataList.Clear(); m_videoDataList = null; } if (imgRedPoint != null) { URedPointTip.DestroyRedPointTip(imgRedPoint); } if (videoRedPoint != null) { URedPointTip.DestroyRedPointTip(videoRedPoint); } }
public override bool Init(IUISubWnd wnd) { m_timeAxisMap = new List <string>(); m_timeAxisItemList = new List <GloryMomentTimeAxisItem>(); m_videoDataList = new List <CaptureVideoData>(); m_ImgDataList = new List <CaptureImgData>(); m_currentPageType = EMGloryMomentPageType.EMPage_Image; m_currentDataShowType = EMGloryMomentDataShowType.EMType_All; //侦听列表滚动事件,不能用 OnEndScrolling 因为这个是在延迟一定时间后发出的,数据对不上 GloryMomentList.OnStartScrolling.AddListener(OnGloryMomentListStartScrolling); TimeAxisHandle.Init(this); ImgShareView.Init(this); VideoPlayView.Init(this); LogicDataCenter.screenCaptureDataManager.ReLoad(); bRecOpen = GameSettingConfig.Instance.GetGameSettingBoolValue(GameSettingIndex.OpenScrenRec); RecToggle.isOn = bRecOpen; SliderObj.SetActive(!bRecOpen); if (PageBtnList.Count() >= 2) { imgRedPoint = URedPointTip.CreateRedPointObject(PageBtnList[(int)EMGloryMomentPageType.EMPage_Image], RedPointOffset_x, RedPointOffset_y); if (imgRedPoint != null) { imgRedPoint.SetTipCount(CaptureScreen.GetInstance().WarImgCount); } videoRedPoint = URedPointTip.CreateRedPointObject(PageBtnList[(int)EMGloryMomentPageType.EMPage_Video], RedPointOffset_x, RedPointOffset_y); if (videoRedPoint != null) { videoRedPoint.SetTipCount(ScreenREC.GetInstance().WarVideoCount); } } RefreshTimeAxis(); RefreshDataList(); RefreshTipPart(); return(base.Init(wnd)); }
//请求查看视频 public void OnVideoPageBtnClick(bool bSelect) { if (!bSelect) { return; } if (m_currentPageType != EMGloryMomentPageType.EMPage_Video) { m_currentPageType = EMGloryMomentPageType.EMPage_Video; RefreshTimeAxis(); RefreshDataList(); RefreshTipPart(); ImgShareView.CloseView(); VideoPlayView.CloseView(); if (videoRedPoint != null) { URedPointTip.DestroyRedPointTip(videoRedPoint); videoRedPoint = null; } } }
public override bool Init(IUIWnd wnd) { base.Init(wnd); //SetVisible(true); // 设置系统按钮文字 Text playerBtnText = playerBtn.transform.FindChild("Text").GetComponent <Text>(); playerBtnText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "PlayerBtn"); Text socialBtnText = socialBtn.transform.FindChild("Text").GetComponent <Text>(); socialBtnText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "SocialBtn"); Text taskBtnText = taskBtn.transform.FindChild("Text").GetComponent <Text>(); taskBtnText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "TaskBtn"); Text rankBtnText = rankBtn.transform.FindChild("Text").GetComponent <Text>(); rankBtnText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "RankBtn"); Text genstoneText = genstoneBtn.transform.FindChild("Text").GetComponent <Text>(); genstoneText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "GenstoneBtn"); Text LegendText = LegendCupBtn.transform.FindChild("Text").GetComponent <Text>(); LegendText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "LegendCupBtn"); Text chestBtnText = chestBtn.transform.FindChild("Text").GetComponent <Text>(); chestBtnText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "ChestBtn"); Text shopBtnText = shopBtn.transform.FindChild("Text").GetComponent <Text>(); shopBtnText.text = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "ShopBtn"); mailBoxBtnTip = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "mailBoxBtnTip"); wingBtnTip = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "wingBtnTip"); friendBtnTip = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "friendBtnTip"); pkBtnTip = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "pkBtnTip"); systemBtnTip = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "systemBtnTip"); hideBtnTip = ULocalizationService.Instance.Get("UIView", "PLayerButtonFrameView", "hideBtnTip"); m_socialRedPoint = URedPointTip.CreateRedPointObject(socialBtn.transform as RectTransform, -29f, -12f); m_chestRedPoint = URedPointTip.CreateRedPointObject(chestBtn.transform as RectTransform, -29f, -12f); m_gemstoneRedPoint = URedPointTip.CreateRedPointObject(genstoneBtn.transform as RectTransform, -29f, -12f); m_taskRedPoint = URedPointTip.CreateRedPointObject(taskBtn.transform as RectTransform, -29f, -12f); m_mailBoxRedPoint = URedPointTip.CreateRedPointObject(mailBoxBtn.transform as RectTransform, 13f, 19f); mailBoxTrigger = mailBoxBtn.GetComponent <UTooltipTrigger>(); UBB.toHtml(ref mailBoxBtnTip); mailBoxTrigger.SetText(UTooltipParamName.BodyText, mailBoxBtnTip); wingTipTrigger = wingBtn.GetComponent <UTooltipTrigger>(); UBB.toHtml(ref wingBtnTip); wingTipTrigger.SetText(UTooltipParamName.BodyText, wingBtnTip); friendTipTrigger = friendBtn.GetComponent <UTooltipTrigger>(); UBB.toHtml(ref friendBtnTip); friendTipTrigger.SetText(UTooltipParamName.BodyText, friendBtnTip); pkTipTrigger = PkBtn.GetComponent <UTooltipTrigger>(); UBB.toHtml(ref pkBtnTip); pkTipTrigger.SetText(UTooltipParamName.BodyText, pkBtnTip); systemTipTrigger = systemBtn.GetComponent <UTooltipTrigger>(); UBB.toHtml(ref systemBtnTip); systemTipTrigger.SetText(UTooltipParamName.BodyText, systemBtnTip); hideTipTrigger = hideBtn.GetComponent <UTooltipTrigger>(); UBB.toHtml(ref hideBtnTip); hideTipTrigger.SetText(UTooltipParamName.BodyText, hideBtnTip); if (warHallBtn != null) { if (m_nBtnWarHallEffect != null) { UEffect.UEffectManager.Instance.DestroyEffect(UEffect.UEffectType.UET_EffectPrefab, ref m_nBtnWarHallEffect); m_nBtnWarHallEffect = null; } //m_nBtnWarHallEffect = new UEffect.UEffectPrefabParam(UEffect.UEffectPrefabType.UEPT_PlayerSysButton_BtnWarHall, warHallBtn.transform); m_nBtnWarHallEffect = new UEffect.UEffectPrefabAsyncParam(UEffect.UEffectPrefabType.UEPT_PlayerSysButton_BtnWarHall, warHallBtn.transform); UEffect.UEffectManager.Instance.CreateEffect(UEffect.UEffectType.UET_EffectPrefab, ref m_nBtnWarHallEffect); } if (warHallBtn != null) { warHallBtn.onClick.AddListener(onWarHillPressDwon); } return(true); }