static int QPYX_SetData_YXQP(IntPtr L_YXQP) { try { int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP); if (QPYX_count_YXQP == 2) { LoopScrollView QPYX_obj_YXQP = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L_YXQP, 1); object QPYX_arg0_YXQP = ToLua.ToVarObject(L_YXQP, 2); QPYX_obj_YXQP.SetData(QPYX_arg0_YXQP); return(0); } else if (QPYX_count_YXQP == 3) { LoopScrollView QPYX_obj_YXQP = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L_YXQP, 1); object QPYX_arg0_YXQP = ToLua.ToVarObject(L_YXQP, 2); int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3); QPYX_obj_YXQP.SetData(QPYX_arg0_YXQP, QPYX_arg1_YXQP); return(0); } else { return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: LoopScrollView.SetData")); } } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
public void InitItemGrid() { m_scrollView = grid.transform.GetComponent <LoopScrollView>(); m_scrollView.Init(true); int count = 0; string[] tempItems = null; //if (itemList.TryGetValue(currLayer, out tempItems)) //{ // count = tempItems.Length; //} if (itemList.TryGetValue(maxTowerLevel, out tempItems)) { count = tempItems.Length; } m_scrollView.UpdateListItem(count); m_scrollView.SetDelegate(UpdateItemInfo, null); //yield return new WaitForSeconds(1.0f); for (int i = 0; i < grid.transform.childCount; i++) { UpdateItemInfo(grid.transform.GetChild(i).gameObject); } }
static int ResetToBegining(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); obj.ResetToBegining(); return(0); } else if (count == 2) { LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.ResetToBegining(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LoopScrollView.ResetToBegining")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetData(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); obj.SetData(arg0); return(0); } else if (count == 3) { LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.SetData(arg0, arg1); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: LoopScrollView.SetData")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void FindLoopScrollView(Transform trans) { m_loopScrollView = trans.GetComponent<LoopScrollView>(); if (m_loopScrollView == null) { trans = trans.parent; FindLoopScrollView(trans); } }
private void FindLoopScrollView(Transform trans) { m_loopScrollView = trans.GetComponent <LoopScrollView>(); if (m_loopScrollView == null) { trans = trans.parent; FindLoopScrollView(trans); } }
void Awake() { NoneItemLable.SetText(LanguageTextManager.GetString("IDS_I22_9")); RegUIEvent(); IsShowing = true; UnReadLable_go = UnReadCountLable.transform.parent.gameObject; view = ItemTable.GetComponent <LoopScrollView>(); InitItem(); }
void Start() { for (int i = 0; i < 99; i++) { testList.Add(i); } LoopScrollView loopScrollView = GetComponent <LoopScrollView>(); loopScrollView.SetData(testList); loopScrollView.OnItemClick = OnItemClick; loopScrollView.MoveToIndex(72); }
static int QPYX_MoveToIndex_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); LoopScrollView QPYX_obj_YXQP = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L_YXQP, 1); int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2); QPYX_obj_YXQP.MoveToIndex(QPYX_arg0_YXQP); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int QPYX_get_loopScrollView_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); LoopBaseNode QPYX_obj_YXQP = (LoopBaseNode)QPYX_o_YXQP; LoopScrollView QPYX_ret_YXQP = QPYX_obj_YXQP.loopScrollView; ToLua.Push(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index loopScrollView on a nil value")); } }
static int MoveToIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.MoveToIndex(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Test(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); int[] arg0 = ToLua.CheckNumberArray <int>(L, 2); obj.Test(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_GetBaseNodeByIndex_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); LoopScrollView QPYX_obj_YXQP = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L_YXQP, 1); int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2); LoopBaseNode QPYX_o_YXQP = QPYX_obj_YXQP.GetBaseNodeByIndex(QPYX_arg0_YXQP); ToLua.Push(L_YXQP, QPYX_o_YXQP); return(1); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int GetBaseNodeByIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); LoopBaseNode o = obj.GetBaseNodeByIndex(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Init(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LoopScrollView obj = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1); LoopItemData[] arg0 = ToLua.CheckObjectArray <LoopItemData>(L, 2); LoopScrollView.DelegateHandler arg1 = (LoopScrollView.DelegateHandler)ToLua.CheckDelegate <LoopScrollView.DelegateHandler>(L, 3); obj.Init(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_firstItem(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; LoopItemObject ret = obj.firstItem; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index firstItem on a nil value")); } }
static int set_firstItem(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; LoopItemObject arg0 = (LoopItemObject)ToLua.CheckObject <LoopItemObject>(L, 2); obj.firstItem = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index firstItem on a nil value")); } }
static int set_gapDis(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.gapDis = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gapDis on a nil value")); } }
static int set_itemStartPos(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.itemStartPos = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemStartPos on a nil value")); } }
static int get_gapDis(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; float ret = obj.gapDis; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gapDis on a nil value")); } }
static int set_pivot(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; UIWidget.Pivot arg0 = (UIWidget.Pivot)ToLua.CheckObject(L, 2, typeof(UIWidget.Pivot)); obj.pivot = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index pivot on a nil value")); } }
static int set_itemParent(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); obj.itemParent = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemParent on a nil value")); } }
static int set_datasList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; System.Collections.Generic.List <LoopItemData> arg0 = (System.Collections.Generic.List <LoopItemData>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <LoopItemData>)); obj.datasList = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index datasList on a nil value")); } }
static int set_arrangeDirection(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; LoopScrollView.ArrangeDirection arg0 = (LoopScrollView.ArrangeDirection)ToLua.CheckObject(L, 2, typeof(LoopScrollView.ArrangeDirection)); obj.arrangeDirection = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index arrangeDirection on a nil value")); } }
static int get_loopScrollView(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopBaseNode obj = (LoopBaseNode)o; LoopScrollView ret = obj.loopScrollView; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index loopScrollView on a nil value")); } }
static int set_maxPerLine(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.maxPerLine = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index maxPerLine on a nil value")); } }
static int set_EnableMaxPerline(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.EnableMaxPerline = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index EnableMaxPerline on a nil value")); } }
static int get_OnItemInit(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; LoopScrollView.DelegateHandler ret = obj.OnItemInit; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnItemInit on a nil value")); } }
static int set_OnItemInit(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; LoopScrollView.DelegateHandler arg0 = (LoopScrollView.DelegateHandler)ToLua.CheckDelegate <LoopScrollView.DelegateHandler>(L, 2); obj.OnItemInit = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnItemInit on a nil value")); } }
static int set_scrollView(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; UIScrollView arg0 = (UIScrollView)ToLua.CheckObject <UIScrollView>(L, 2); obj.scrollView = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scrollView on a nil value")); } }
static int get_itemStartPos(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LoopScrollView obj = (LoopScrollView)o; UnityEngine.Vector3 ret = obj.itemStartPos; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemStartPos on a nil value")); } }