private void OnGridDataUpdate(UIGridBase data, int index) { if (data is UIDailyTestGrid) { if (m_lstDailyTestInfo != null && index < m_lstDailyTestInfo.Count) { UIDailyTestGrid grid = data as UIDailyTestGrid; if (grid != null) { grid.SetGridData(m_lstDailyTestInfo[index].id); grid.SetTitleName(m_lstDailyTestInfo[index].name); string expDesc = string.Format("{0}倍经验", m_lstDailyTestInfo[index].expMultiple); grid.SetExpDesc(expDesc); string lvDesc = string.Format("怪物等级:{0}-{1}", m_lstDailyTestInfo[index].lvMin, m_lstDailyTestInfo[index].lvMax); grid.SetLvDesc(lvDesc); grid.SetMark(m_lstDailyTestInfo[index].isRecommend); grid.SetBg(m_lstDailyTestInfo[index].bgId); } } } }
private void OnGridUIEvent(UIEventType eventType, object data, object param) { if (eventType == UIEventType.Click) { UIDailyTestGrid grid = data as UIDailyTestGrid; if (grid != null) { GoToWindow(grid.Id); //关tips m_trans_tipsContent.gameObject.SetActive(false); } } }