Example #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);
 }
Example #2
0
 public static void SetOnBeginDragAction(this UILoopGridView self, Action <PointerEventData> callback)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.mOnBeginDragAction = callback;
 }
Example #3
0
 public static void SetItemSize(this UILoopGridView self, Vector2 sizeDelta)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.SetItemSize(sizeDelta);
 }
Example #4
0
 public static void RefreshAllShownItem(this UILoopGridView self)
 {
     self.ActivatingComponent();
     self.unity_uiloopgridview.RefreshAllShownItem();
 }
Example #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);
 }
Example #6
0
 //获取当前index对应的item 没有显示的话返回null
 public static LoopGridViewItem GetShownItemByItemIndex(this UILoopGridView self, int itemIndex)
 {
     self.ActivatingComponent();
     return(self.unity_uiloopgridview.GetShownItemByItemIndex(itemIndex));
 }
Example #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);
 }