static int SetLoops(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween), typeof(int))) { ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); DG.Tweening.Tween o = obj.SetLoops(arg0); ToLua.PushObject(L, o); return(1); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(ToLua_DG_Tweening_Tween), typeof(int), typeof(DG.Tweening.LoopType))) { ToLua_DG_Tweening_Tween obj = (ToLua_DG_Tweening_Tween)ToLua.ToObject(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); DG.Tweening.LoopType arg1 = (DG.Tweening.LoopType)ToLua.ToObject(L, 3); DG.Tweening.Tween o = obj.SetLoops(arg0, arg1); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: ToLua_DG_Tweening_Tween.SetLoops")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tointeger(L, 1); DG.Tweening.LoopType o = (DG.Tweening.LoopType)arg0; ToLua.Push(L, o); return(1); }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); DG.Tweening.LoopType o = (DG.Tweening.LoopType)arg0; LuaScriptMgr.Push(L, o); return(1); }
static void DOTweenSettings_defaultLoopType(JSVCall vc) { if (vc.bGet) { DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj; var result = _this.defaultLoopType; JSApi.setEnum((int)JSApi.SetType.Rval, (int)result); } else { DG.Tweening.LoopType arg0 = (DG.Tweening.LoopType)JSApi.getEnum((int)JSApi.GetType.Arg); DG.Tweening.Core.DOTweenSettings _this = (DG.Tweening.Core.DOTweenSettings)vc.csObj; _this.defaultLoopType = arg0; } }
static int get_loopType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DG.Tweening.DOTweenPath obj = (DG.Tweening.DOTweenPath)o; DG.Tweening.LoopType ret = obj.loopType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index loopType on a nil value" : e.Message)); } }
static int set_loopType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); DG.Tweening.DOTweenPath obj = (DG.Tweening.DOTweenPath)o; DG.Tweening.LoopType arg0 = (DG.Tweening.LoopType)ToLua.CheckObject(L, 2, typeof(DG.Tweening.LoopType)); obj.loopType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index loopType on a nil value" : e.Message)); } }
static StackObject *SetLoops_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); DG.Tweening.LoopType @loopType = (DG.Tweening.LoopType) typeof(DG.Tweening.LoopType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @loops = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); DG.Tweening.Tweener @t = (DG.Tweening.Tweener) typeof(DG.Tweening.Tweener).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = DG.Tweening.TweenSettingsExtensions.SetLoops <DG.Tweening.Tweener>(@t, @loops, @loopType); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static void Push(IntPtr L, DG.Tweening.LoopType arg) { ToLua.Push(L, arg); }
static int QPYX_IntToEnum_YXQP(IntPtr L_YXQP) { int QPYX_arg0_YXQP = (int)LuaDLL.lua_tonumber(L_YXQP, 1); DG.Tweening.LoopType QPYX_o_YXQP = (DG.Tweening.LoopType)QPYX_arg0_YXQP; ToLua.Push(L_YXQP, QPYX_o_YXQP); return(1); }
static void QPYX_Push_YXQP(IntPtr L_YXQP, DG.Tweening.LoopType arg_YXQP) { ToLua.Push(L_YXQP, arg_YXQP); }
public DG.Tweening.Tween SetLoops(int arg1, DG.Tweening.LoopType arg2) { return(default(DG.Tweening.Tween)); }
protected void DrawCommonProperties() { DOTweenUtil tw = target as DOTweenUtil; if (DrawHeader("DOTweener")) { EditorGUIUtility.labelWidth = 110; EditorGUILayout.BeginHorizontal("AS TextArea", GUILayout.MinHeight(10f)); GUILayout.BeginVertical(); GUILayout.Space(5); GUI.changed = false; Transform tweenTarget = EditorGUILayout.ObjectField("Tween Target", tw.Target, typeof(Transform), true) as Transform; EditorGUILayout.BeginHorizontal(); int loopTime = EditorGUILayout.IntField("Loop Time", tw.LoopTime, GUILayout.Width(150)); //EditorGUILayout.HelpBox("-1 stand for infinite",MessageType.Info,false); GUILayout.Label("(-1 stand for infinite)"); EditorGUILayout.EndHorizontal(); DG.Tweening.LoopType playStyle = (DG.Tweening.LoopType)EditorGUILayout.EnumPopup("Play Style", tw.PlayStyle, GUILayout.Width(250)); AnimationCurve animationCurve = null; if (tw.EaseType == DG.Tweening.Ease.Unset) { animationCurve = EditorGUILayout.CurveField("Animation Curve", tw.AnimationCurves, GUILayout.Width(250), GUILayout.Height(30)); } DG.Tweening.Ease easeType = (DG.Tweening.Ease)EditorGUILayout.EnumPopup("Ease Type", tw.EaseType, GUILayout.Width(250f)); // if (easeType != DG.Tweening.Ease.Unset) // { // EditorGUILayout.HelpBox("(PS: AnimationCurve won't work unless EasyType is Unset)",MessageType.Info); // } float duration = EditorGUILayout.FloatField("Duration", tw.Duration, GUILayout.Width(250f)); float startDelay = EditorGUILayout.FloatField("Start Delay", tw.StartDelay, GUILayout.Width(250f)); string tweenGroup = EditorGUILayout.TextField("Tween Group", tw.TweenGroup, GUILayout.Width(250f)); bool ignoreTimeScale = EditorGUILayout.Toggle("Ignore TimeScale", tw.IgnoreTimeScale); bool resetOnDisable = EditorGUILayout.Toggle("Reset on Disable", tw.ResetOnDisable); bool autoPlayOnEnable = EditorGUILayout.Toggle("Auto Play on Enable", tw.AutoPlayOnEnable); if (GUI.changed) { tw.Target = tweenTarget; tw.LoopTime = loopTime; tw.PlayStyle = playStyle; if (null != animationCurve) { tw.AnimationCurves = animationCurve; } tw.EaseType = easeType; tw.Duration = duration; tw.StartDelay = startDelay; tw.TweenGroup = tweenGroup; tw.IgnoreTimeScale = ignoreTimeScale; tw.ResetOnDisable = resetOnDisable; tw.AutoPlayOnEnable = autoPlayOnEnable; } GUILayout.EndVertical(); EditorGUILayout.EndHorizontal(); GUILayout.Space(5); } if (DrawHeader("Tweener Event")) { GUI.changed = false; EditorGUILayout.BeginHorizontal("AS TextArea", GUILayout.MinHeight(10f)); GUILayout.BeginVertical(); GUILayout.Space(5); EditorGUILayout.PropertyField(serializedObject.FindProperty("OnDOTweenStart")); EditorGUILayout.PropertyField(serializedObject.FindProperty("OnDOTweenComplete")); EditorGUILayout.PropertyField(serializedObject.FindProperty("OnDOTweenPlay")); EditorGUILayout.PropertyField(serializedObject.FindProperty("OnDOTweenPause")); EditorGUILayout.PropertyField(serializedObject.FindProperty("OnDOTweenStepComplete")); if (GUI.changed) { serializedObject.ApplyModifiedProperties(); } GUILayout.EndVertical(); EditorGUILayout.EndHorizontal(); GUILayout.Space(5); } GUILayout.Space(5); }