static int set_onDragFinished(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIProgressBar obj = (UIProgressBar)o; UIProgressBar.OnDragFinished arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (UIProgressBar.OnDragFinished)ToLua.CheckObject(L, 2, typeof(UIProgressBar.OnDragFinished)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(UIProgressBar.OnDragFinished), func) as UIProgressBar.OnDragFinished; } obj.onDragFinished = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onDragFinished on a nil value" : e.Message)); } }
static internal int checkDelegate(IntPtr l, int p, out UIProgressBar.OnDragFinished ua) { int op = extractFunction(l, p); if (LuaDLL.lua_isnil(l, p)) { ua = null; return(op); } else if (LuaDLL.lua_isuserdata(l, p) == 1) { ua = (UIProgressBar.OnDragFinished)checkObj(l, p); return(op); } LuaDelegate ld; checkType(l, -1, out ld); if (ld.d != null) { ua = (UIProgressBar.OnDragFinished)ld.d; return(op); } LuaDLL.lua_pop(l, 1); l = LuaState.get(l).L; ua = () => { int error = pushTry(l); ld.pcall(0, error); LuaDLL.lua_settop(l, error - 1); }; ld.d = ua; return(op); }
internal static int checkDelegate(IntPtr l, int p, out UIProgressBar.OnDragFinished ua) { int result = LuaObject.extractFunction(l, p); if (LuaDLL.pua_isnil(l, p)) { ua = null; return(result); } if (LuaDLL.pua_isuserdata(l, p) == 1) { ua = (UIProgressBar.OnDragFinished)LuaObject.checkObj(l, p); return(result); } LuaDelegate ld; LuaObject.checkType(l, -1, out ld); LuaDLL.pua_pop(l, 1); if (ld.d != null) { ua = (UIProgressBar.OnDragFinished)ld.d; return(result); } l = LuaState.get(l).L; ua = delegate { int num = LuaObject.pushTry(l); ld.pcall(0, num); LuaDLL.pua_settop(l, num - 1); }; ld.d = ua; return(result); }
public static Delegate UIProgressBar_OnDragFinished(LuaFunction func) { UIProgressBar.OnDragFinished d = () => { func.Call(); }; return(d); }
public static Delegate UIProgressBar_OnDragFinished(LuaFunction func) { if (func == null) { UIProgressBar.OnDragFinished fn = delegate { }; return(fn); } UIProgressBar.OnDragFinished d = (new UIProgressBar_OnDragFinished_Event(func)).Call; return(d); }
static int get_onDragFinished(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIProgressBar obj = (UIProgressBar)o; UIProgressBar.OnDragFinished ret = obj.onDragFinished; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onDragFinished on a nil value")); } }
static int set_onDragFinished(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIProgressBar obj = (UIProgressBar)o; UIProgressBar.OnDragFinished arg0 = (UIProgressBar.OnDragFinished)ToLua.CheckDelegate <UIProgressBar.OnDragFinished>(L, 2); obj.onDragFinished = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onDragFinished on a nil value")); } }
private static int get_onDragFinished(IntPtr L) { object obj = null; int result; try { obj = ToLua.ToObject(L, 1); UIProgressBar uIProgressBar = (UIProgressBar)obj; UIProgressBar.OnDragFinished onDragFinished = uIProgressBar.onDragFinished; ToLua.Push(L, onDragFinished); result = 1; } catch (Exception ex) { result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index onDragFinished on a nil value"); } return(result); }
public UIProgressBar.OnDragFinished UIProgressBar_OnDragFinished(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UIProgressBar.OnDragFinished fn = delegate() { }; return(fn); } if (!flag) { UIProgressBar_OnDragFinished_Event target = new UIProgressBar_OnDragFinished_Event(func); UIProgressBar.OnDragFinished d = target.Call; target.method = d.Method; return(d); } else { UIProgressBar_OnDragFinished_Event target = new UIProgressBar_OnDragFinished_Event(func, self); UIProgressBar.OnDragFinished d = target.CallWithSelf; target.method = d.Method; return(d); } }
void Push_UIProgressBar_OnDragFinished(IntPtr L, UIProgressBar.OnDragFinished o) { ToLua.Push(L, o); }