public void SetDataSizeValueByID(long id, float value) { FastGridItemData data = GetData(id); if (data != null) { data.SetSizeValue(value); } }
public void SetDataSizeValueByIndex(int index, float value) { FastGridItemData data = GetDataByIndex(index); if (data != null) { data.SetSizeValue(value); } }
/// <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; }