static int ShowItemPanel(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes <int>(L, 2)) { littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); obj.ShowItemPanel(arg0); return(0); } else if (count == 2 && TypeChecker.CheckTypes <object>(L, 2)) { littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); obj.ShowItemPanel(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: littlerbird.UI.QuickGrid.ShowItemPanel")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int HideItemPanel(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); obj.HideItemPanel(); return(0); } else if (count == 2) { littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.HideItemPanel(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: littlerbird.UI.QuickGrid.HideItemPanel")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private static GameObject CreateGrid(GameObject parent) { int layer = parent.gameObject.layer; GameObject go = new GameObject("QuickGrid");//NGUITools.AddChild(parent, false); go.E_SetParentAndReset(parent); go.layer = layer; QuickGrid grid = go.AddComponent <QuickGrid>(); go.GetComponent <Mask>().showMaskGraphic = false; return(go); }
static int CalculateRows(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); obj.CalculateRows(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_get_config_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); littlerbird.UI.QuickGridItemBase QPYX_obj_YXQP = (littlerbird.UI.QuickGridItemBase)QPYX_o_YXQP; littlerbird.UI.QuickGrid QPYX_ret_YXQP = QPYX_obj_YXQP.config; 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 config on a nil value")); } }
static int MoveIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.MoveIndex(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int MoveByData(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); obj.MoveByData(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetSelectData(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); object[] arg0 = ToLua.ToParamsObject(L, 2, count - 1); obj.SetSelectData(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnDrag(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2); obj.OnDrag(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_set_config_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); littlerbird.UI.QuickGridItemBase QPYX_obj_YXQP = (littlerbird.UI.QuickGridItemBase)QPYX_o_YXQP; littlerbird.UI.QuickGrid QPYX_arg0_YXQP = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L_YXQP, 2); QPYX_obj_YXQP.config = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index config on a nil value")); } }
static int SetData(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); object arg0 = ToLua.ToVarObject(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.SetData(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetUserEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); string arg0 = ToLua.CheckString(L, 2); littlerbird.UI.QuickGrid.QuickGridItemEvenet arg1 = (littlerbird.UI.QuickGrid.QuickGridItemEvenet)ToLua.CheckDelegate <littlerbird.UI.QuickGrid.QuickGridItemEvenet>(L, 3); obj.SetUserEvent(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetUserEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 1); string arg0 = ToLua.CheckString(L, 2); littlerbird.UI.QuickGrid.QuickGridItemEvenet o = obj.GetUserEvent(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_tween(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGridTweenBase ret = obj.tween; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index tween on a nil value")); } }
static int get_ClipHeight(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; int ret = obj.ClipHeight; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ClipHeight on a nil value")); } }
static int get_Movement(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.MoveType ret = obj.Movement; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Movement on a nil value")); } }
static int set_needItemPanelMask(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.needItemPanelMask = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index needItemPanelMask on a nil value")); } }
static int get_OnMoveFirstOrLast(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.QuickCallback ret = obj.OnMoveFirstOrLast; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnMoveFirstOrLast on a nil value")); } }
static int get_OnItemDataChange(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.QuickGridItemEvenet ret = obj.OnItemDataChange; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnItemDataChange on a nil value")); } }
static int get_CanOpenItemPanel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.ReturnQuickGridItemEvent ret = obj.CanOpenItemPanel; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CanOpenItemPanel on a nil value")); } }
static int get_config(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGridItemBase obj = (littlerbird.UI.QuickGridItemBase)o; littlerbird.UI.QuickGrid ret = obj.config; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index config on a nil value")); } }
static int get_items(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; System.Collections.Generic.List <littlerbird.UI.QuickGridItemBase> ret = obj.items; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index items on a nil value")); } }
static int set_OnItemDataChange(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.QuickGridItemEvenet arg0 = (littlerbird.UI.QuickGrid.QuickGridItemEvenet)ToLua.CheckDelegate <littlerbird.UI.QuickGrid.QuickGridItemEvenet>(L, 2); obj.OnItemDataChange = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnItemDataChange on a nil value")); } }
static int set_Movement(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.MoveType arg0 = (littlerbird.UI.QuickGrid.MoveType)ToLua.CheckObject(L, 2, typeof(littlerbird.UI.QuickGrid.MoveType)); obj.Movement = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Movement on a nil value")); } }
static int set_ClipHeight(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.ClipHeight = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ClipHeight on a nil value")); } }
static int set_dataList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; System.Collections.Generic.List <object> arg0 = (System.Collections.Generic.List <object>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <object>)); obj.dataList = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index dataList on a nil value")); } }
static int get_isMoveLast(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; bool ret = obj.isMoveLast; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isMoveLast on a nil value")); } }
static int set_CanOpenItemPanel(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.ReturnQuickGridItemEvent arg0 = (littlerbird.UI.QuickGrid.ReturnQuickGridItemEvent)ToLua.CheckDelegate <littlerbird.UI.QuickGrid.ReturnQuickGridItemEvent>(L, 2); obj.CanOpenItemPanel = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CanOpenItemPanel on a nil value")); } }
static int set_config(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGridItemBase obj = (littlerbird.UI.QuickGridItemBase)o; littlerbird.UI.QuickGrid arg0 = (littlerbird.UI.QuickGrid)ToLua.CheckObject <littlerbird.UI.QuickGrid>(L, 2); obj.config = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index config on a nil value")); } }
static int set_OnMoveFirstOrLast(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); littlerbird.UI.QuickGrid obj = (littlerbird.UI.QuickGrid)o; littlerbird.UI.QuickGrid.QuickCallback arg0 = (littlerbird.UI.QuickGrid.QuickCallback)ToLua.CheckDelegate <littlerbird.UI.QuickGrid.QuickCallback>(L, 2); obj.OnMoveFirstOrLast = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnMoveFirstOrLast on a nil value")); } }