public static void InitGridView(this UILoopGridView self, int itemTotalCount, System.Func <LoopGridView, int, int, int, LoopGridViewItem> onGetItemByRowColumn, LoopGridViewSettingParam settingParam = null, LoopGridViewInitParam initParam = null) { self.ActivatingComponent(); self.unity_uiloopgridview.InitGridView(itemTotalCount, onGetItemByRowColumn, settingParam, initParam); }
public static void SetOnBeginDragAction(this UILoopGridView self, Action <PointerEventData> callback) { self.ActivatingComponent(); self.unity_uiloopgridview.mOnBeginDragAction = callback; }
public static void SetItemSize(this UILoopGridView self, Vector2 sizeDelta) { self.ActivatingComponent(); self.unity_uiloopgridview.SetItemSize(sizeDelta); }
public static void RefreshAllShownItem(this UILoopGridView self) { self.ActivatingComponent(); self.unity_uiloopgridview.RefreshAllShownItem(); }
public static void MovePanelToItemByRowColumn(this UILoopGridView self, int row, int column, int offsetX = 0, int offsetY = 0) { self.ActivatingComponent(); self.unity_uiloopgridview.MovePanelToItemByRowColumn(row, column, offsetX, offsetY); }
//获取当前index对应的item 没有显示的话返回null public static LoopGridViewItem GetShownItemByItemIndex(this UILoopGridView self, int itemIndex) { self.ActivatingComponent(); return(self.unity_uiloopgridview.GetShownItemByItemIndex(itemIndex)); }
//itemCount重设item的数量,resetPos是否刷新当前显示的位置 public static void SetListItemCount(this UILoopGridView self, int itemCount, bool resetPos = true) { self.ActivatingComponent(); self.unity_uiloopgridview.SetListItemCount(itemCount, resetPos); }