Exemplo n.º 1
0
        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;
                }
            }
        }
Exemplo n.º 2
0
 //切换显示类型
 public void SwitchShowType(int type)
 {
     if (m_currentDataShowType != (EMGloryMomentDataShowType)type)
     {
         m_currentDataShowType = (EMGloryMomentDataShowType)type;
         RefreshDataList();
     }
 }
Exemplo n.º 3
0
        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));
        }