static int set_m_onEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; System.Action arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action; } obj.m_onEnd = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEnd on a nil value" : e.Message)); } }
static int RemoveSubHandle(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UI.SequenceHandle), typeof(UnityEngine.Component), typeof(UI.Handle), typeof(float))) { UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.ToObject(L, 1); UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.ToObject(L, 2); UI.Handle arg1 = (UI.Handle)ToLua.ToObject(L, 3); float arg2 = (float)LuaDLL.lua_tonumber(L, 4); obj.RemoveSubHandle(arg0, arg1, arg2); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UI.SequenceHandle), typeof(UnityEngine.Component), typeof(UI.Handle), typeof(UI.Handle))) { UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.ToObject(L, 1); UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.ToObject(L, 2); UI.Handle arg1 = (UI.Handle)ToLua.ToObject(L, 3); UI.Handle arg2 = (UI.Handle)ToLua.ToObject(L, 4); obj.RemoveSubHandle(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UI.SequenceHandle.RemoveSubHandle")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Update(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UI.Handle obj = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle)); obj.Update(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnEnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.HandleColor obj = (UI.HandleColor)ToLua.CheckObject(L, 1, typeof(UI.HandleColor)); UI.Handle arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle)); obj.OnEnd(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Reset(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.Handle obj = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.Reset(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetType(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.Handle obj = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle)); UI.Handle.Type arg0 = (UI.Handle.Type)ToLua.CheckObject(L, 2, typeof(UI.Handle.Type)); obj.SetType(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnUseNowStart(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.HandlePosition obj = (UI.HandlePosition)ToLua.CheckObject(L, 1, typeof(UI.HandlePosition)); UI.Handle arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle)); obj.OnUseNowStart(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetSubHandle(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UI.Handle o = obj.GetSubHandle(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnUpdate(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UI.HandleColor obj = (UI.HandleColor)ToLua.CheckObject(L, 1, typeof(UI.HandleColor)); UI.Handle arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle)); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.OnUpdate(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetFactor(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UI.Handle obj = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.SetFactor(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Sort(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle)); UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component)); UI.Handle arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle)); obj.Sort(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_m_seqIsExpand(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.m_seqIsExpand = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_seqIsExpand on a nil value" : e.Message)); } }
static int set_CurFactor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.CurFactor = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurFactor on a nil value" : e.Message)); } }
static int set_m_vBeginNow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); obj.m_vBeginNow = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_vBeginNow on a nil value" : e.Message)); } }
static int set_m_iBeginNow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.m_iBeginNow = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_iBeginNow on a nil value" : e.Message)); } }
static int set_m_sprite1(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; UnityEngine.Sprite arg0 = (UnityEngine.Sprite)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Sprite)); obj.m_sprite1 = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_sprite1 on a nil value" : e.Message)); } }
static int set_m_s1(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; string arg0 = ToLua.CheckString(L, 2); obj.m_s1 = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_s1 on a nil value" : e.Message)); } }
static int get_m_onEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; System.Action ret = obj.m_onEnd; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEnd on a nil value" : e.Message)); } }
static int get_CurTypeName(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; string ret = obj.CurTypeName; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurTypeName on a nil value" : e.Message)); } }
static int set_m_handle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SequenceHandleEx obj = (UI.SequenceHandleEx)o; UI.Handle arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle)); obj.m_handle = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_handle on a nil value" : e.Message)); } }
static int OnReset(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); UI.HandleColor obj = (UI.HandleColor)ToLua.CheckObject(L, 1, typeof(UI.HandleColor)); UI.Handle arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle)); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); bool arg2 = LuaDLL.luaL_checkboolean(L, 4); obj.OnReset(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_m_handle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.SequenceHandleEx obj = (UI.SequenceHandleEx)o; UI.Handle ret = obj.m_handle; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_handle on a nil value" : e.Message)); } }
static int get_CurFactor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; float ret = obj.CurFactor; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurFactor on a nil value" : e.Message)); } }
static int get_IsOverEnd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; bool ret = obj.IsOverEnd; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index IsOverEnd on a nil value" : e.Message)); } }
static int get_m_vBeginNow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; UnityEngine.Vector3 ret = obj.m_vBeginNow; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_vBeginNow on a nil value" : e.Message)); } }
static int get_m_iBeginNow(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.Handle obj = (UI.Handle)o; int ret = obj.m_iBeginNow; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_iBeginNow on a nil value" : e.Message)); } }
static int OffsetTime(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle)); UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component)); UI.Handle arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle)); System.Collections.Generic.List <UI.Handle> arg2 = (System.Collections.Generic.List <UI.Handle>)ToLua.CheckObject(L, 4, typeof(System.Collections.Generic.List <UI.Handle>)); float arg3 = (float)LuaDLL.luaL_checknumber(L, 5); obj.OffsetTime(arg0, arg1, arg2, arg3); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddSubHandle(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); UI.SequenceHandle obj = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle)); UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component)); UI.Handle arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle)); UI.Handle.Type arg2 = (UI.Handle.Type)ToLua.CheckObject(L, 4, typeof(UI.Handle.Type)); float arg3 = (float)LuaDLL.luaL_checknumber(L, 5); obj.AddSubHandle(arg0, arg1, arg2, arg3); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateUI_Handle(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { UI.Handle obj = new UI.Handle(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UI.Handle.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
//框架,绘制属性(不包含游戏对象),syncGo的话结束值变化会同步到m_go。这里是最小化绘制,只绘制最需要的属性 public override void OnDrawMid(Component comp, Handle h, System.Action <Handle.WndType, object> onOpenWnd, bool syncGo = false) { DrawStartEndV3(comp, h, true, true, false, true, false, syncGo, GetPos); DrawCommonDuationMid(comp, h); }