/// <summary> /// 设置上面的也签红点提示 /// </summary> /// <param name="go"></param> /// <param name="b"></param> void SetTopCategoryGridNewMark(bool b) { UITitleCategoryGrid grid = m_ctor_TitleCategoryScrollview.GetGrid <UITitleCategoryGrid>(m_lstTitleCategory.IndexOf(this.m_SelectCategoryItem)); if (grid != null) { grid.SetNewMark(b); } }
/// <summary> /// 跟新格子数据 /// </summary> /// <param name="data"></param> /// <param name="index"></param> private void OnGridDataUpdate(UIGridBase data, int index) { if (data is UITitleCategoryGrid) { if (null != m_lstTitleCategory && index < m_lstTitleCategory.Count) { UITitleCategoryGrid grid = data as UITitleCategoryGrid; if (grid != null) { grid.SetGridData(m_lstTitleCategory[index]); //name List <uint> ownlist = TManager.GetOwnTitleListByType(m_lstTitleCategory[index]); string name = string.Format("{0}{1}", TManager.TitleCategoryDic[m_lstTitleCategory[index]], ownlist.Count > 0 ? "(" + ownlist.Count + ")" : ""); grid.SetName(name); //newMark List <uint> titleList = TManager.GetTitleTypeList(m_lstTitleCategory[index]); bool haveNew = HaveNewTilteInList(titleList); grid.SetNewMark(haveNew); } } } //附加属性(永久属性) if (data is UITitleForeverPropGrid) { List <uint> foreverAddList = TManager.GetForeverAddList(this.m_selectTitleId); if (foreverAddList != null && index < foreverAddList.Count) { UITitleForeverPropGrid grid = data as UITitleForeverPropGrid; if (grid != null) { grid.SetGridData(foreverAddList[index]); } } } //激活属性 if (data is UITitleActivatePropGrid) { List <uint> activateAddList = TManager.GetActivateAddList(this.m_selectTitleId); if (activateAddList != null && index < activateAddList.Count) { UITitleActivatePropGrid grid = data as UITitleActivatePropGrid; if (grid != null) { grid.SetGridData(activateAddList[index]); } } } }