static int QPYX_SetEnable_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); ToggleCtrl QPYX_obj_YXQP = (ToggleCtrl)ToLua.CheckObject <ToggleCtrl>(L_YXQP, 1); bool QPYX_arg0_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 2); QPYX_obj_YXQP.SetEnable(QPYX_arg0_YXQP); return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int SetEnable(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ToggleCtrl obj = (ToggleCtrl)ToLua.CheckObject <ToggleCtrl>(L, 1); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.SetEnable(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }