static int DispatchEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Framework.UI.Button obj = (Framework.UI.Button)ToLua.CheckObject <Framework.UI.Button>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.DispatchEvent(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveEventListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); Framework.UI.Button obj = (Framework.UI.Button)ToLua.CheckObject <Framework.UI.Button>(L, 1); string arg0 = ToLua.CheckString(L, 2); LuaTable arg1 = ToLua.CheckLuaTable(L, 3); LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4); obj.RemoveEventListener(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }