Exemple #1
0
    private void UpdateApplyRedPoint(FriendPanelPageEnum type)
    {
        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            if (dicTabs != null)
            {
                if (type == FriendPanelPageEnum.Page_邮箱)
                {
                    bool value = DataManager.Manager <MailManager>().HaveMailCanGet;
                    if (dicTabs.TryGetValue((int)FriendPanelPageEnum.Page_邮箱, out tabGrid))
                    {
                        tabGrid.SetRedPointStatus(value);
                    }
                }
                else
                {
                    bool haveChat = privateChatManager.HaveMsgFromFriend;
                    if (dicTabs.TryGetValue((int)FriendPanelPageEnum.Page_最近, out tabGrid))
                    {
                        tabGrid.SetRedPointStatus(haveChat);
                    }
                }
            }
        }
    }
Exemple #2
0
    /// <summary>
    /// 页签红点提示
    /// </summary>
    void UpdateRedPoint()
    {
        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            //属性
            if (dicTabs != null && dicTabs.TryGetValue((int)PropPanelPageEnum.Page_Prop, out tabGrid))
            {
                //tabGrid.SetRedPointStatus();
            }

            //时装
            if (dicTabs != null && dicTabs.TryGetValue((int)PropPanelPageEnum.Page_Fashion, out tabGrid))
            {
                //tabGrid.SetRedPointStatus();
            }

            //称号页签
            if (dicTabs != null && dicTabs.TryGetValue((int)PropPanelPageEnum.Page_Title, out tabGrid))
            {
                tabGrid.SetRedPointStatus(TManager.HaveNewTitle());
            }
        }
    }
Exemple #3
0
    private void UpdateApplyRedPoint()
    {
        UITabGrid tabGrid = null;

        if (IsPanelMode(ClanPanelMode.Member))
        {
            m_dic_clanMemberTabs[ClanMemberMode.Apply].SetRedPointStatus(m_bool_showApplyRedPoint);
        }
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            if (dicTabs != null && dicTabs.TryGetValue((int)ClanPanelMode.Member, out tabGrid))
            {
                tabGrid.SetRedPointStatus(m_bool_showApplyRedPoint);
            }
        }

        //已读后隐藏主界面氏族红点显示
        stShowMainPanelRedPoint st = new stShowMainPanelRedPoint()
        {
            modelID   = (int)WarningEnum.Clan,
            direction = (int)WarningDirection.Left,
            bShowRed  = m_bool_showApplyRedPoint,
        };

        Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.MAINPANEL_SHOWREDWARING, st);
    }
Exemple #4
0
    /// <summary>
    /// 页签红点提示
    /// </summary>
    void UpdateRedPoint()
    {
        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            if (dicTabs != null && dicTabs.TryGetValue((int)LearnSkillPanelPageEnum.Page_HeartSkill, out tabGrid))
            {
                tabGrid.SetRedPointStatus(HSManager.HaveHeartSkillEnableUpgrade());
            }

            if (dicTabs != null && dicTabs.TryGetValue((int)LearnSkillPanelPageEnum.Page_LearnSkill, out tabGrid))
            {
                tabGrid.SetRedPointStatus(skilldataManager.HaveSkillUpgrade());
            }
        }
        InitLearnControls();
    }
Exemple #5
0
    /// <summary>
    /// 显示图鉴红点
    /// </summary>
    void ShowTujianRedPoint()
    {
        Dictionary <int, UITabGrid> dic = null;

        if (dicUITabGrid.TryGetValue(1, out dic))
        {
            UITabGrid grid = null;
            if (dic.TryGetValue((int)TabMode.TuJian, out grid))
            {
                if (petDataManager.GetCanComposePetList().Count > 0)
                {
                    grid.SetRedPointStatus(true);
                }
                else
                {
                    grid.SetRedPointStatus(false);
                }
            }
        }
    }
Exemple #6
0
    void ShowRedPoint()
    {
        Transform trans = transform.Find("RightTabs(Clone)/bg/btnRoot/QiShu");

        if (trans != null)
        {
            UITabGrid grid = trans.GetComponent <UITabGrid>();
            if (grid != null)
            {
                grid = trans.gameObject.AddComponent <UITabGrid>();
            }
            if (m_rideMgr.IsShowRideRedPoint())
            {
                grid.SetRedPointStatus(true);
            }
            else
            {
                grid.SetRedPointStatus(false);
            }
        }
    }
Exemple #7
0
    private void UpdateApplyRedPoint(int index, bool value)
    {
        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            if (dicTabs != null && dicTabs.TryGetValue(index, out tabGrid))
            {
                tabGrid.SetRedPointStatus(value);
            }
        }
    }
Exemple #8
0
    private void UpdateSkillRedPoint()
    {
        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            if (dicTabs != null && dicTabs.TryGetValue((int)ClanPanelMode.Skill, out tabGrid))
            {
                tabGrid.SetRedPointStatus(m_bool_showSkillRedPoint);
            }
        }
    }
Exemple #9
0
    void RefreshTabRedPoint(EquipPartMode mode, UITabGrid tab)
    {
        bool value = false;

        if (IsPanelMode(ForgingPanelMode.Strengthen))
        {
            value = DataManager.Manager <ForgingManager>().HaveEquipCanStrengthenByEquipPartMode(mode);
        }
        else if (IsPanelMode(ForgingPanelMode.Inlay))
        {
            value = DataManager.Manager <ForgingManager>().HaveEquipCanInlayByEquipPartMode(mode);
        }
        tab.SetRedPointStatus(value);
    }
Exemple #10
0
    /// <summary>
    /// 皇令显示红点
    /// </summary>
    private void UpdateApplyRedPoint()
    {
        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = new Dictionary <int, UITabGrid>();

        if (dicUITabGrid != null)
        {
            if (dicUITabGrid.TryGetValue(1, out dicTabs))
            {
                if (dicTabs != null && dicTabs.TryGetValue((int)TabMode.HuangLing, out tabGrid))
                {
                    tabGrid.SetRedPointStatus(mShowNobleRedPoint);
                }
            }
            m_sprite_nobleJiHuoIcon.gameObject.SetActive(DataManager.Manager <Mall_HuangLingManager>().NobleDic.Count == 0);
        }
    }
Exemple #11
0
    /// <summary>
    /// 红点提示
    /// </summary>
    void UpdateApplyWarning()
    {
        if (m_widget_applyListPanel.gameObject.activeSelf)
        {
            TDManager.HaveNewApplyMember = false;
        }

        UITabGrid tabGrid = null;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (dicUITabGrid.TryGetValue(1, out dicTabs))
        {
            if (dicTabs != null && dicTabs.TryGetValue((int)TeamPanelPageEnum.Page_Apply, out tabGrid))
            {
                tabGrid.SetRedPointStatus(TDManager.HaveNewApplyMember);
            }
        }
    }
Exemple #12
0
    private void AddTab(UIPanelBase panelBase)
    {
        if (rightTabs == null)
        {
            return;
        }
        rightTabs.transform.parent        = panelBase.transform;
        rightTabs.transform.localPosition = Vector3.zero;
        rightTabs.SetActive(true);

        //清空功能页签
        m_dicTabFunc.Clear();

        int index = 1;
        Dictionary <int, UITabGrid> dicTabs = null;

        if (!panelBase.dicUITabGrid.TryGetValue(index, out dicTabs))
        {
            dicTabs = new Dictionary <int, UITabGrid>(6);
            panelBase.dicUITabGrid.Add(index, dicTabs);
        }
        dicTabs.Clear();
        UITabGrid grid = null;
        List <UIPanelManager.PanelTabData.PanelTabUnit> tabUnitDatas = panelBase.PanelInfo.PanelTaData.GetTabUnitList();

        UIPanelManager.PanelTabData.PanelTabUnit tabUnit = null;
        List <int> activeTabIndex = new List <int>();
        bool       tabFuncOpen    = false;

        for (int i = 0; i < panelBase.PanelInfo.PanelTaData.Count; i++)
        {
            tabUnit = tabUnitDatas[i];

            grid = m_lstTabGrid[tabUnit.PosIndex];
            if (grid == null)
            {
                continue;
            }
            if (!activeTabIndex.Contains(tabUnit.PosIndex))
            {
                activeTabIndex.Add(tabUnit.PosIndex);
            }
            //grid.transform.parent = root;
            grid.gameObject.SetActive(true);
            // grid.transform.localPosition = new UnityEngine.Vector3(0, -i * 93, 0);
            grid.SetHightLight(false);
            grid.TabID   = tabUnit.EnumValue;
            grid.TabType = index;
            grid.SetName(tabUnit.EnumName);
            dicTabs.Add(grid.TabID, grid);
            grid.SetRedPointStatus(false);
            grid.SetSoundEffectType(ButtonPlay.ButtonSountEffectType.FuncTabFirst);
            tabFuncOpen = DataManager.Manager <GuideManager>().IsTabFuncOpen(tabUnit.FuncID);
            grid.SetOpenStatus(tabFuncOpen);
            grid.gameObject.name = tabUnit.ObjName;
            if (!tabFuncOpen && tabUnit.FuncID != 0 &&
                !m_dicTabFunc.ContainsKey(tabUnit.FuncID))
            {
                m_dicTabFunc.Add(tabUnit.FuncID, grid);
            }
            grid.RegisterUIEventDelegate((eventType, data, param) =>
            {
                switch (eventType)
                {
                case UIEventType.Click:
                    if (data is UITabGrid)
                    {
                        UITabGrid tabGRid = data as UITabGrid;
                        OnCilckTogglePanel(ref panelBase, grid.TabType, tabGRid.TabID);
                    }
                    break;

                default:
                    break;
                }
            });
        }
        coudsss++;
        for (int j = 0; j < m_lstTabGrid.Count; j++)
        {
            if (!activeTabIndex.Contains(j))
            {
                m_lstTabGrid[j].gameObject.SetActive(false);
            }
        }
    }