public void SetDataWeight1ByID(long id, int weight1) { FastGridItemData data = GetData(id); if (data != null) { data.SetWeight1(weight1); } }
public void SetDataWeight1ByIndex(int index, int weight1) { FastGridItemData data = GetDataByIndex(index); if (data != null) { data.SetWeight1(weight1); } }
/// <summary> /// id一定不能==0 /// </summary> public void AddData1(long id, LuaTable table, int weight0, int weight1, float size = 0) { FastGridItemData data = new FastGridItemData(id, table); data.SetWeight(weight0); data.SetWeight1(weight1); if (size > 0) { data.SetSizeValue(size); } datas.Add(data); RepositionNow = true; }