void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIItemRewardGrid) { UIItemRewardGrid itemShow = grid as UIItemRewardGrid; if (itemShow != null) { if (index < list.Count) { UIItemRewardData data = list[index]; uint itemID = data.itemID; uint num = data.num; itemShow.SetGridData(itemID, num, false); BoxCollider[] coll = itemShow.transform.GetComponentsInChildren <BoxCollider>(); if (coll != null) { foreach (var i in coll) { i.enabled = false; } } } } } }
public override void SetGridData(object data) { base.SetGridData(data); _UIItemRewardDatas = (UIItemRewardData)data; if (_UIItemRewardDatas != null) { if (m_ctor != null) { m_ctor.CreateGrids(1); } } }
void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIItemRewardGrid) { UIItemRewardGrid itemShow = grid as UIItemRewardGrid; if (itemShow != null) { if (index < m_lst_UIItemRewardDatas.Count) { UIItemRewardData data = m_lst_UIItemRewardDatas[index]; uint itemID = data.itemID; itemShow.SetGridData(itemID, 1, false, false, false, null, data.blockVisible, data.hasGot, true, data.DataID); } } } }
void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIItemRewardGrid) { UIItemRewardGrid itemShow = grid as UIItemRewardGrid; if (itemShow != null) { if (index < m_lst_UIItemRewardDatas.Count) { UIItemRewardData data = m_lst_UIItemRewardDatas[index]; uint itemID = data.itemID; uint num = data.num; itemShow.SetGridData(itemID, num, false); } } } }
void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIItemRewardGrid) { UIItemRewardGrid itemShow = grid as UIItemRewardGrid; if (itemShow != null) { if (index < m_lst_UIItemRewardDatas.Count) { UIItemRewardData data = m_lst_UIItemRewardDatas[index]; uint itemID = data.itemID; uint num = data.num; itemShow.SetGridData(itemID, num, false, false, false); itemShow.transform.localScale = new Vector3(0.83f, 0.83f, 1.0f); } } } }
void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIItemRewardGrid) { UIItemRewardGrid itemShow = grid as UIItemRewardGrid; if (itemShow != null) { if (index < list.Count) { UIItemRewardData data = list[index]; uint itemID = data.itemID; uint num = data.num; itemShow.SetGridData(itemID, num, false, false, false); itemShow.SetBgAndBorder(false); } } } }
void OnUpdateGridData(UIGridBase grid, int index) { if (grid is UIItemRewardGrid) { UIItemRewardGrid itemShow = grid as UIItemRewardGrid; if (itemShow != null) { if (index < list.Count) { UIItemRewardData data = list[index]; uint itemID = data.itemID; uint num = data.num; itemShow.gameObject.SetActive(true); itemShow.SetGridData(itemID, num, true, false, !data.showAdditional); itemShow.SetName(true, data.name); SetAdditionalIcon(itemShow, data.additionalIconName, data.showAdditional); } } } }