/// <summary> /// 释放所有的限时活动详细列表完成特效 /// </summary> private void ReleaseAllTimeLimitActivityInfoUIFx() { var m_dataList = m_infoGridListMogoListImproved.DataList; for (int i = 0; i < m_dataList.Count; i++) { TimeLimitActivityInfo gridUI = (TimeLimitActivityInfo)m_dataList[i]; gridUI.ReleaseFXFromTimeLimitActivityInfoUI(); } }
/// <summary> /// 限时活动详细界面显示或隐藏按钮 /// 只有在进入详细界面时才根据数据列表刷新,而在界面中只根据界面刷新,防止跳位 /// </summary> /// <param name="id"></param> /// <param name="isShow"></param> public void SetLimitActivityInfoHasReward(int id) { var m_gridUIList = m_infoGridListMogoListImproved.DataList; for (int i = 0; i < m_gridUIList.Count; i++) { TimeLimitActivityInfo gridUI = (TimeLimitActivityInfo)m_gridUIList[i]; if (gridUI.ActivityID == id) { gridUI.CDText = LanguageData.GetContent(7134); gridUI.SetActivityStatus(ActivityStatus.HasReward); return; } } }
/// <summary> /// 设置限时活动详细列表界面Data /// </summary> private void LimitActivityInfoListResourceLoaded() { var m_dataList = m_infoGridListMogoListImproved.DataList; for (int i = 0; i < m_dataList.Count; i++) { TimeLimitActivityInfo gridUI = (TimeLimitActivityInfo)m_dataList[i]; LimitActivityInfoGridData gridData = m_listLimitActivityInfoData[i]; gridUI.LoadResourceInsteadOfAwake(); gridUI.ActivityID = gridData.ID; gridUI.CDText = gridData.CDText; gridUI.InfoDesc = gridData.Desc; gridUI.InfoTitle = gridData.Title; gridUI.Rule = gridData.Rule; gridUI.InfoImgName = gridData.InfoImgName; gridUI.ListItemID = gridData.ItemListID; gridUI.SetActivityStatus(gridData.Status); } }