//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class UIBaseWrap { public static void Register(LuaState L) { L.BeginClass(typeof(UIBase), typeof(MonoBase)); L.RegFunction("GetRoot", GetRoot); L.RegFunction("FindElementGo", FindElementGo); L.RegFunction("Show", Show); L.RegFunction("Hide", Hide); L.RegFunction("Close", Close); L.RegFunction("Dispose", Dispose); L.RegFunction("BackIn", BackIn); L.RegFunction("OnSubCloseAnimEnd", OnSubCloseAnimEnd); L.RegFunction("AddButtonExitListener", AddButtonExitListener); L.RegFunction("AddButtonEventListener", AddButtonEventListener); L.RegFunction("AddButtonUniqueEventListener", AddButtonUniqueEventListener); L.RegFunction("AddToggleEventListener", AddToggleEventListener); L.RegFunction("AddToggleUniqueEventListener", AddToggleUniqueEventListener); L.RegFunction("AddSliderEventListener", AddSliderEventListener); L.RegFunction("AddSliderUniqueEventListener", AddSliderUniqueEventListener); L.RegFunction("AddInputFileEventListener", AddInputFileEventListener); L.RegFunction("AddTMPInputFileEventListener", AddTMPInputFileEventListener); L.RegFunction("AddDropdownEventListener", AddDropdownEventListener); L.RegFunction("AddUIEventHandlerClickListener", AddUIEventHandlerClickListener); L.RegFunction("AddScrollRectValueChangeListener", AddScrollRectValueChangeListener); L.RegFunction("InvokeToggle", InvokeToggle); L.RegFunction("FindChildGo", FindChildGo); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("animListener", get_animListener, set_animListener); L.RegVar("initSortingOrder", get_initSortingOrder, set_initSortingOrder); L.RegVar("ParentId", get_ParentId, set_ParentId); L.RegVar("NeedParentKeep", get_NeedParentKeep, set_NeedParentKeep); L.RegVar("IsBattleMainPage", get_IsBattleMainPage, set_IsBattleMainPage); L.RegVar("Inited", get_Inited, null); L.RegVar("PageId", get_PageId, set_PageId); L.RegVar("PageUniqueID", get_PageUniqueID, null); L.RegVar("MPageName", get_MPageName, set_MPageName); L.RegVar("MSourceUIID", get_MSourceUIID, set_MSourceUIID); L.RegVar("ShowTopBtn", get_ShowTopBtn, set_ShowTopBtn); L.RegVar("MOutList", get_MOutList, set_MOutList); L.RegVar("IsActive", get_IsActive, null); L.RegVar("Data", get_Data, null); L.RegVar("IsHide", get_IsHide, null); L.RegVar("NeedCache", get_NeedCache, set_NeedCache); L.RegVar("CanPlaySound", get_CanPlaySound, set_CanPlaySound); L.RegVar("MUIType", get_MUIType, set_MUIType); L.RegVar("MPersistentStatus", get_MPersistentStatus, set_MPersistentStatus); L.RegVar("PageType", get_PageType, set_PageType); L.RegVar("SortingOrder", get_SortingOrder, set_SortingOrder); L.RegVar("PageBody", get_PageBody, null); L.RegVar("PageTrans", get_PageTrans, null); L.RegVar("StrAssetBundle", get_StrAssetBundle, set_StrAssetBundle); L.RegVar("ChildPaths", get_ChildPaths, set_ChildPaths); L.RegVar("IsEnabled", get_IsEnabled, set_IsEnabled); L.RegVar("IsDisposed", get_IsDisposed, null); L.RegVar("IsOpened", get_IsOpened, null); L.RegVar("PageAnimInType", get_PageAnimInType, set_PageAnimInType); L.RegVar("PageAnimOutType", get_PageAnimOutType, set_PageAnimOutType); L.RegVar("IsPageAnimation", get_IsPageAnimation, null); L.RegVar("CanvasEnabled", get_CanvasEnabled, set_CanvasEnabled); L.RegVar("IsShowed", get_IsShowed, null); L.RegVar("UICanvas", get_UICanvas, null); L.RegFunction("ButtonListener", UIBase_ButtonListener); L.RegFunction("ButtonListenerWithParam", UIBase_ButtonListenerWithParam); L.RegFunction("ToggleListener", UIBase_ToggleListener); L.RegFunction("ToggleListenerWithParams", UIBase_ToggleListenerWithParams); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetRoot(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.GameObject o = obj.GetRoot(); ToLua.PushSealed(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int FindElementGo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.GameObject o = obj.FindElementGo(arg0); ToLua.PushSealed(L, o); return 1; } else if (count == 3) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject)); string arg1 = ToLua.CheckString(L, 3); UnityEngine.GameObject o = obj.FindElementGo(arg0, arg1); ToLua.PushSealed(L, o); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.FindElementGo"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Show(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); obj.Show(); return 0; } else if (count == 2) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); object arg0 = ToLua.ToVarObject(L, 2); obj.Show(arg0); return 0; } else if (count == 3) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); object arg0 = ToLua.ToVarObject(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.Show(arg0, arg1); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.Show"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Hide(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); obj.Hide(); return 0; } else if (count == 2) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.Hide(arg0); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.Hide"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Close(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); obj.Close(); return 0; } else if (count == 2) { UIBase obj = (UIBase)ToLua.CheckObject(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.Close(arg0); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.Close"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Dispose(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); obj.Dispose(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int BackIn(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); obj.BackIn(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int OnSubCloseAnimEnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.OnSubCloseAnimEnd(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddButtonExitListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.CheckObject(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4); obj.AddButtonExitListener(arg0, arg1, arg2, arg3); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddButtonEventListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2); UIBase.ButtonListener arg1 = (UIBase.ButtonListener)ToLua.ToObject(L, 3); obj.AddButtonEventListener(arg0, arg1); return 0; } else if (count == 3 && TypeChecker.CheckTypes(L, 1)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2); LuaFunction arg1 = ToLua.ToLuaFunction(L, 3); obj.AddButtonEventListener(arg0, arg1); return 0; } else if (count == 4 && TypeChecker.CheckTypes(L, 1)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2); LuaTable arg1 = ToLua.ToLuaTable(L, 3); LuaFunction arg2 = ToLua.ToLuaFunction(L, 4); obj.AddButtonEventListener(arg0, arg1, arg2); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 5, count - 4)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2); LuaTable arg1 = ToLua.ToLuaTable(L, 3); LuaFunction arg2 = ToLua.ToLuaFunction(L, 4); object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4); obj.AddButtonEventListener(arg0, arg1, arg2, arg3); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 4, count - 3)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.ToObject(L, 2); UIBase.ButtonListenerWithParam arg1 = (UIBase.ButtonListenerWithParam)ToLua.ToObject(L, 3); object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3); obj.AddButtonEventListener(arg0, arg1, arg2); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.AddButtonEventListener"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddButtonUniqueEventListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Button arg0 = (UnityEngine.UI.Button)ToLua.CheckObject(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4); obj.AddButtonUniqueEventListener(arg0, arg1, arg2, arg3); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddToggleEventListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3 && TypeChecker.CheckTypes(L, 1)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2); UIBase.ToggleListener arg1 = (UIBase.ToggleListener)ToLua.ToObject(L, 3); obj.AddToggleEventListener(arg0, arg1); return 0; } else if (count == 3 && TypeChecker.CheckTypes(L, 1)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2); LuaFunction arg1 = ToLua.ToLuaFunction(L, 3); obj.AddToggleEventListener(arg0, arg1); return 0; } else if (count == 5 && TypeChecker.CheckTypes(L, 1)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2); LuaTable arg1 = ToLua.ToLuaTable(L, 3); LuaFunction arg2 = ToLua.ToLuaFunction(L, 4); object arg3 = ToLua.ToVarObject(L, 5); obj.AddToggleEventListener(arg0, arg1, arg2, arg3); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 4, count - 3)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2); UIBase.ToggleListenerWithParams arg1 = (UIBase.ToggleListenerWithParams)ToLua.ToObject(L, 3); object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3); obj.AddToggleEventListener(arg0, arg1, arg2); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 4, count - 3)) { UIBase obj = (UIBase)ToLua.ToObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.ToObject(L, 2); LuaFunction arg1 = ToLua.ToLuaFunction(L, 3); object[] arg2 = ToLua.ToParamsObject(L, 4, count - 3); obj.AddToggleEventListener(arg0, arg1, arg2); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: UIBase.AddToggleEventListener"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddToggleUniqueEventListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.CheckObject(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4); obj.AddToggleUniqueEventListener(arg0, arg1, arg2, arg3); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddSliderEventListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Slider arg0 = (UnityEngine.UI.Slider)ToLua.CheckObject(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4); obj.AddSliderEventListener(arg0, arg1, arg2, arg3); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddSliderUniqueEventListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Slider arg0 = (UnityEngine.UI.Slider)ToLua.CheckObject(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); object[] arg3 = ToLua.ToParamsObject(L, 5, count - 4); obj.AddSliderUniqueEventListener(arg0, arg1, arg2, arg3); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddInputFileEventListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.InputField arg0 = (UnityEngine.UI.InputField)ToLua.CheckObject(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.AddInputFileEventListener(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddTMPInputFileEventListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); TMPro.TMP_InputField arg0 = (TMPro.TMP_InputField)ToLua.CheckObject(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.AddTMPInputFileEventListener(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddDropdownEventListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Dropdown arg0 = (UnityEngine.UI.Dropdown)ToLua.CheckObject(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.AddDropdownEventListener(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddUIEventHandlerClickListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UIEventHandler arg0 = (UIEventHandler)ToLua.CheckObject(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.AddUIEventHandlerClickListener(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddScrollRectValueChangeListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.ScrollRect arg0 = (UnityEngine.UI.ScrollRect)ToLua.CheckObject(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); obj.AddScrollRectValueChangeListener(arg0, arg1, arg2); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int InvokeToggle(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); UnityEngine.UI.Toggle arg0 = (UnityEngine.UI.Toggle)ToLua.CheckObject(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.InvokeToggle(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int FindChildGo(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIBase obj = (UIBase)ToLua.CheckObject(L, 1); string arg0 = ToLua.CheckString(L, 2); UnityEngine.GameObject o = obj.FindChildGo(arg0); ToLua.PushSealed(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1); UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_animListener(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UIAnimationListener ret = obj.animListener; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index animListener on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_initSortingOrder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.initSortingOrder; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index initSortingOrder on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_ParentId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.ParentId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ParentId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_NeedParentKeep(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.NeedParentKeep; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedParentKeep on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsBattleMainPage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsBattleMainPage; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBattleMainPage on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Inited(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.Inited; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index Inited on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.PageId; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageUniqueID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.PageUniqueID; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageUniqueID on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_MPageName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; string ret = obj.MPageName; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPageName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_MSourceUIID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.MSourceUIID; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MSourceUIID on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_ShowTopBtn(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.ShowTopBtn; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ShowTopBtn on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_MOutList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.MOutList; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MOutList on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsActive(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsActive; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsActive on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Data(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; object ret = obj.Data; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index Data on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsHide(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsHide; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsHide on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_NeedCache(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.NeedCache; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedCache on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_CanPlaySound(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.CanPlaySound; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanPlaySound on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_MUIType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.MUIType; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MUIType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_MPersistentStatus(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.MPersistentStatus; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPersistentStatus on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; EUIPageType ret = obj.PageType; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_SortingOrder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int ret = obj.SortingOrder; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index SortingOrder on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageBody(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UnityEngine.GameObject ret = obj.PageBody; ToLua.PushSealed(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageBody on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageTrans(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UnityEngine.Transform ret = obj.PageTrans; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageTrans on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_StrAssetBundle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; string ret = obj.StrAssetBundle; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index StrAssetBundle on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_ChildPaths(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; string ret = obj.ChildPaths; LuaDLL.lua_pushstring(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ChildPaths on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsEnabled; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsDisposed(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsDisposed; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsDisposed on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsOpened(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsOpened; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsOpened on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageAnimInType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UI_ANIM ret = obj.PageAnimInType; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimInType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_PageAnimOutType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UI_ANIM ret = obj.PageAnimOutType; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimOutType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsPageAnimation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsPageAnimation; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsPageAnimation on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_CanvasEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.CanvasEnabled; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanvasEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_IsShowed(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool ret = obj.IsShowed; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsShowed on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_UICanvas(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UnityEngine.Canvas ret = obj.UICanvas; ToLua.PushSealed(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index UICanvas on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_animListener(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UIAnimationListener arg0 = (UIAnimationListener)ToLua.CheckObject(L, 2); obj.animListener = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index animListener on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_initSortingOrder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.initSortingOrder = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index initSortingOrder on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_ParentId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.ParentId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ParentId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_NeedParentKeep(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.NeedParentKeep = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedParentKeep on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_IsBattleMainPage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.IsBattleMainPage = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsBattleMainPage on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_PageId(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.PageId = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageId on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_MPageName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; string arg0 = ToLua.CheckString(L, 2); obj.MPageName = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPageName on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_MSourceUIID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.MSourceUIID = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MSourceUIID on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_ShowTopBtn(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.ShowTopBtn = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ShowTopBtn on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_MOutList(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.MOutList = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MOutList on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_NeedCache(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.NeedCache = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index NeedCache on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_CanPlaySound(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.CanPlaySound = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanPlaySound on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_MUIType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.MUIType = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MUIType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_MPersistentStatus(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.MPersistentStatus = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index MPersistentStatus on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_PageType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; EUIPageType arg0 = (EUIPageType)ToLua.CheckObject(L, 2, typeof(EUIPageType)); obj.PageType = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_SortingOrder(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.SortingOrder = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index SortingOrder on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_StrAssetBundle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; string arg0 = ToLua.CheckString(L, 2); obj.StrAssetBundle = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index StrAssetBundle on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_ChildPaths(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; string arg0 = ToLua.CheckString(L, 2); obj.ChildPaths = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index ChildPaths on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_IsEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.IsEnabled = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_PageAnimInType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UI_ANIM arg0 = (UI_ANIM)ToLua.CheckObject(L, 2, typeof(UI_ANIM)); obj.PageAnimInType = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimInType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_PageAnimOutType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; UI_ANIM arg0 = (UI_ANIM)ToLua.CheckObject(L, 2, typeof(UI_ANIM)); obj.PageAnimOutType = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index PageAnimOutType on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_CanvasEnabled(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIBase obj = (UIBase)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.CanvasEnabled = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index CanvasEnabled on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int UIBase_ButtonListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); LuaFunction func = ToLua.CheckLuaFunction(L, 1); if (count == 1) { Delegate arg1 = DelegateTraits.Create(func); ToLua.Push(L, arg1); } else { LuaTable self = ToLua.CheckLuaTable(L, 2); Delegate arg1 = DelegateTraits.Create(func, self); ToLua.Push(L, arg1); } return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int UIBase_ButtonListenerWithParam(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); LuaFunction func = ToLua.CheckLuaFunction(L, 1); if (count == 1) { Delegate arg1 = DelegateTraits.Create(func); ToLua.Push(L, arg1); } else { LuaTable self = ToLua.CheckLuaTable(L, 2); Delegate arg1 = DelegateTraits.Create(func, self); ToLua.Push(L, arg1); } return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int UIBase_ToggleListener(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); LuaFunction func = ToLua.CheckLuaFunction(L, 1); if (count == 1) { Delegate arg1 = DelegateTraits.Create(func); ToLua.Push(L, arg1); } else { LuaTable self = ToLua.CheckLuaTable(L, 2); Delegate arg1 = DelegateTraits.Create(func, self); ToLua.Push(L, arg1); } return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int UIBase_ToggleListenerWithParams(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); LuaFunction func = ToLua.CheckLuaFunction(L, 1); if (count == 1) { Delegate arg1 = DelegateTraits.Create(func); ToLua.Push(L, arg1); } else { LuaTable self = ToLua.CheckLuaTable(L, 2); Delegate arg1 = DelegateTraits.Create(func, self); ToLua.Push(L, arg1); } return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e); } } }