Beispiel #1
0
 private void OnCheckDelMallEntryRedDot()
 {
     if ((((!CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_HeroTab) && !CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_HeroSkinTab)) && (!CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_SymbolTab) && !CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_SaleTab))) && ((!CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_LotteryTab) && !CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_RecommendTab)) && (!CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_MysteryTab) || !CUIRedDotSystem.IsShowRedDotByLogic(enRedID.Mall_MysteryTab)))) && (!CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_BoutiqueTab) && !CUIRedDotSystem.IsShowRedDotByLogic(enRedID.Mall_SymbolTab)))
     {
         Singleton <LobbyUISys> .instance.DelRedDot(enSysEntryID.MallBtn);
     }
 }
Beispiel #2
0
 private void OnCheckAddMallEntryRedDot()
 {
     if ((((CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_HeroTab) || CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_HeroSkinTab)) || (CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_SymbolTab) || CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_SaleTab))) || ((CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_LotteryTab) || CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_RecommendTab)) || (CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_MysteryTab) && CUIRedDotSystem.IsShowRedDotByLogic(enRedID.Mall_MysteryTab)))) || (CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Mall_BoutiqueTab) || CUIRedDotSystem.IsShowRedDotByLogic(enRedID.Mall_SymbolTab)))
     {
         this.AddRedDot(enSysEntryID.MallBtn, enRedDotPos.enTopRight, 0);
     }
 }
        private void OnOpenForm(CUIEvent uiEvent)
        {
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm("UGUI/Form/System/Pay/Form_Partner.prefab", false, true);

            if (cUIFormScript != null && NetworkAccelerator.IsCommercialized())
            {
                CUIRedDotSystem.SetRedDotViewByVersion(enRedID.Lobby_PayEntry);
                Singleton <CUINewFlagSystem> .GetInstance().SetNewFlagForXunYouBuy(true);
            }
            this.UpdateEntryStatus(cUIFormScript);
        }
        public static void HideSysEntryChargeRedDot()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CLobbySystem.SYSENTRY_FORM_PATH);

            if (form != null)
            {
                GameObject gameObject = Utility.FindChild(form.gameObject, "PlayerBtn/Dianquan/Button");
                if (gameObject != null)
                {
                    CUIRedDotSystem.DelRedDot(gameObject);
                }
            }
        }
        private void OnRevertoVisiable(CUIEvent uiEvent)
        {
            CUIFormScript srcFormScript = uiEvent.m_srcFormScript;

            if (srcFormScript == null)
            {
                return;
            }
            GameObject target = srcFormScript.m_formWidgets[1];

            if (NetworkAccelerator.IsCommercialized() && !CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Lobby_PayEntry))
            {
                CUIRedDotSystem.DelRedDot(target);
            }
        }
        public void OpenBuyDianQuanPanel(CUIEvent uiEvent)
        {
            if (this.IsOpenPaySys())
            {
                Singleton <CChatController> .GetInstance().ShowPanel(true, false);

                CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CPaySystem.s_buyDianQuanFormPath, false, true);

                if (cUIFormScript == null)
                {
                    return;
                }
                GameObject obj        = cUIFormScript.m_formWidgets[0];
                GameObject gameObject = cUIFormScript.m_formWidgets[1];
                if (NetworkAccelerator.IsCommercialized())
                {
                    obj.CustomSetActive(false);
                    gameObject.CustomSetActive(true);
                    if (CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Lobby_PayEntry))
                    {
                        CUIRedDotSystem.AddRedDot(gameObject, enRedDotPos.enTopRight, 0, 0, 0);
                    }
                }
                else
                {
                    obj.CustomSetActive(CTongCaiSys.IsShowBuyTongCaiBtn());
                    gameObject.CustomSetActive(false);
                }
                Singleton <CTopLobbyEntry> .GetInstance().OpenForm();

                this.RefreshBuyDianQuanPanel();
                MonoSingleton <NobeSys> .GetInstance().ShowNobeTipsInDiamond();

                if (uiEvent.m_eventID != enUIEventID.Pay_OpenBuyDianQuanPanelWithLobby)
                {
                    Transform transform = cUIFormScript.transform.Find("bg/btnClose");
                    if (transform)
                    {
                        CUIEventScript component = transform.GetComponent <CUIEventScript>();
                        if (component != null)
                        {
                            component.SetUIEvent(enUIEventType.Click, enUIEventID.None);
                            component.m_closeFormWhenClicked = true;
                        }
                    }
                }
            }
        }
        public static void RefreshSysEntryChargeRedDot()
        {
            if (!NetworkAccelerator.IsCommercialized())
            {
                return;
            }
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CLobbySystem.SYSENTRY_FORM_PATH);

            if (form != null)
            {
                GameObject gameObject = Utility.FindChild(form.gameObject, "PlayerBtn/Dianquan/Button");
                if (gameObject != null && CUIRedDotSystem.IsShowRedDotByVersion(enRedID.Lobby_PayEntry))
                {
                    CUIRedDotSystem.AddRedDot(gameObject, enRedDotPos.enTopRight, 0, 0, 0);
                }
            }
        }