Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio 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));
        }
Esempio n. 4
0
        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);
        }