예제 #1
0
 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);
 }
예제 #2
0
 public static void SetOnBeginDragAction(this UILoopGridView self, Action <PointerEventData> callback)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.mOnBeginDragAction = callback;
 }
예제 #3
0
 public static void SetItemSize(this UILoopGridView self, Vector2 sizeDelta)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.SetItemSize(sizeDelta);
 }
예제 #4
0
 public static void RefreshAllShownItem(this UILoopGridView self)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.RefreshAllShownItem();
 }
예제 #5
0
 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);
 }
예제 #6
0
 //获取当前index对应的item 没有显示的话返回null
 public static LoopGridViewItem GetShownItemByItemIndex(this UILoopGridView self, int itemIndex)
 {
     self.ActivatingComponent();
     return(self.unity_uiloopgridview.GetShownItemByItemIndex(itemIndex));
 }
예제 #7
0
 //itemCount重设item的数量,resetPos是否刷新当前显示的位置
 public static void SetListItemCount(this UILoopGridView self, int itemCount, bool resetPos = true)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.SetListItemCount(itemCount, resetPos);
 }