static int _CreateFairyGUI_ScrollPane(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 7) { FairyGUI.GComponent arg0 = (FairyGUI.GComponent)ToLua.CheckObject(L, 1, typeof(FairyGUI.GComponent)); FairyGUI.ScrollType arg1 = (FairyGUI.ScrollType)ToLua.CheckObject(L, 2, typeof(FairyGUI.ScrollType)); FairyGUI.Margin arg2 = (FairyGUI.Margin)ToLua.CheckObject(L, 3, typeof(FairyGUI.Margin)); FairyGUI.ScrollBarDisplayType arg3 = (FairyGUI.ScrollBarDisplayType)ToLua.CheckObject(L, 4, typeof(FairyGUI.ScrollBarDisplayType)); int arg4 = (int)LuaDLL.luaL_checknumber(L, 5); string arg5 = ToLua.CheckString(L, 6); string arg6 = ToLua.CheckString(L, 7); FairyGUI.ScrollPane obj = new FairyGUI.ScrollPane(arg0, arg1, arg2, arg3, arg4, arg5, arg6); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.ScrollPane.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); FairyGUI.ScrollType o = (FairyGUI.ScrollType)arg0; ToLua.Push(L, o); return(1); }