Пример #1
0
    public static Delegate DG_Tweening_Core_DOSetter_string(LuaFunction func)
    {
        if (func == null)
        {
            DG.Tweening.Core.DOSetter <string> fn = delegate { };
            return(fn);
        }

        DG.Tweening.Core.DOSetter <string> d = (new DG_Tweening_Core_DOSetter_string_Event(func)).Call;
        return(d);
    }
Пример #2
0
    public static Delegate DG_Tweening_Core_DOSetter_UnityEngine_RectOffset(LuaFunction func)
    {
        if (func == null)
        {
            DG.Tweening.Core.DOSetter <UnityEngine.RectOffset> fn = delegate { };
            return(fn);
        }

        DG.Tweening.Core.DOSetter <UnityEngine.RectOffset> d = (new DG_Tweening_Core_DOSetter_UnityEngine_RectOffset_Event(func)).Call;
        return(d);
    }
Пример #3
0
 public static Delegate DOSetter_RectOffset(LuaFunction func)
 {
     DG.Tweening.Core.DOSetter <RectOffset> d = (param0) =>
     {
         int    top = func.BeginPCall();
         IntPtr L   = func.GetLuaState();
         LuaScriptMgr.PushObject(L, param0);
         func.PCall(top, 1);
         func.EndPCall(top);
     };
     return(d);
 }
    static int QPYX_set_setter_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.QuaternionOptions> QPYX_obj_YXQP = (DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.QuaternionOptions>)QPYX_o_YXQP;
            DG.Tweening.Core.DOSetter <UnityEngine.Vector3> QPYX_arg0_YXQP = (DG.Tweening.Core.DOSetter <UnityEngine.Vector3>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <UnityEngine.Vector3> >(L_YXQP, 2);
            QPYX_obj_YXQP.setter = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index setter on a nil value"));
        }
    }
    static int QPYX_get_setter_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.Options.VectorOptions> QPYX_obj_YXQP = (DG.Tweening.Core.TweenerCore <UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.Options.VectorOptions>)QPYX_o_YXQP;
            DG.Tweening.Core.DOSetter <UnityEngine.Vector3> QPYX_ret_YXQP = QPYX_obj_YXQP.setter;
            ToLua.Push(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index setter on a nil value"));
        }
    }
Пример #6
0
    static int set_setter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions> obj = (DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions>)o;
            DG.Tweening.Core.DOSetter <UnityEngine.Quaternion> arg0 = (DG.Tweening.Core.DOSetter <UnityEngine.Quaternion>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <UnityEngine.Quaternion> >(L, 2);
            obj.setter = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index setter on a nil value"));
        }
    }
Пример #7
0
    static int get_setter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions> obj = (DG.Tweening.Core.TweenerCore <UnityEngine.Quaternion, UnityEngine.Vector3, DG.Tweening.Plugins.Options.QuaternionOptions>)o;
            DG.Tweening.Core.DOSetter <UnityEngine.Quaternion> ret = obj.setter;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index setter on a nil value"));
        }
    }
Пример #8
0
 static int QPYX_ToGeterSeterFloat_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 4);
         DG.Tweening.Core.DOGetter <float> QPYX_arg0_YXQP = (DG.Tweening.Core.DOGetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOGetter <float> >(L_YXQP, 1);
         DG.Tweening.Core.DOSetter <float> QPYX_arg1_YXQP = (DG.Tweening.Core.DOSetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <float> >(L_YXQP, 2);
         float             QPYX_arg2_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 3);
         float             QPYX_arg3_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 4);
         DG.Tweening.Tween QPYX_o_YXQP    = CustomerUtil.ToGeterSeterFloat(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP);
         ToLua.PushObject(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Пример #9
0
    public void BeginTween(Vector4 startValue, Vector4 endValue, DG.Tweening.Core.DOSetter <Vector4> setter)
    {
        EndValule  = endValue;
        StartValue = startValue;

        if (false == IsController)//同步Controller的设置
        {
            LoopTime        = _springController.LoopTime;
            PlayStyle       = _springController.PlayStyle;
            AnimationCurves = _springController.AnimationCurves;
            EaseType        = _springController.EaseType;
            Duration        = _springController.Duration;
            StartDelay      = _springController.StartDelay;

            TweenGroup = _springController.TweenGroup;

            IgnoreTimeScale = _springController.IgnoreTimeScale;

//            OnDOTweenStart = _springController.OnDOTweenStart;
//            OnDOTweenComplete = _springController.OnDOTweenComplete;
//            OnDOTweenPlay = _springController.OnDOTweenPlay;
//            OnDOTweenPause = _springController.OnDOTweenPause;

            _springController.AddSpringEventCount();
        }

        Vector4 tempPosNSize = startValue;

        _DOTweener = DOTween.To(
            () => tempPosNSize,
            setter,
            endValue, Duration);

        base.SetupDOTweener();

        if (null != _layoutGroup)
        {
            _DOTweener.SetId(_layoutGroup);
        }

        if (this.enabled == false)
        {
            this.enabled = true;
        }
    }
Пример #10
0
 static int ToGeterSeterFloat(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         DG.Tweening.Core.DOGetter <float> arg0 = (DG.Tweening.Core.DOGetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOGetter <float> >(L, 1);
         DG.Tweening.Core.DOSetter <float> arg1 = (DG.Tweening.Core.DOSetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <float> >(L, 2);
         float             arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
         float             arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
         DG.Tweening.Tween o    = CustomerUtil.ToGeterSeterFloat(arg0, arg1, arg2, arg3);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #11
0
        static int _m_doFloatTo_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 5 && translator.Assignable <DG.Tweening.Core.DOSetter <float> >(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <DG.Tweening.TweenCallback>(L, 5))
                {
                    DG.Tweening.Core.DOSetter <float> call = translator.GetDelegate <DG.Tweening.Core.DOSetter <float> >(L, 1);
                    float startValue = (float)LuaAPI.lua_tonumber(L, 2);
                    float endValue   = (float)LuaAPI.lua_tonumber(L, 3);
                    float duration   = (float)LuaAPI.lua_tonumber(L, 4);
                    DG.Tweening.TweenCallback finish = translator.GetDelegate <DG.Tweening.TweenCallback>(L, 5);

                    DG.Tweening.Tweener __cl_gen_ret = LuaExtend.doFloatTo(call, startValue, endValue, duration, finish);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && translator.Assignable <DG.Tweening.Core.DOSetter <float> >(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    DG.Tweening.Core.DOSetter <float> call = translator.GetDelegate <DG.Tweening.Core.DOSetter <float> >(L, 1);
                    float startValue = (float)LuaAPI.lua_tonumber(L, 2);
                    float endValue   = (float)LuaAPI.lua_tonumber(L, 3);
                    float duration   = (float)LuaAPI.lua_tonumber(L, 4);

                    DG.Tweening.Tweener __cl_gen_ret = LuaExtend.doFloatTo(call, startValue, endValue, duration);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to LuaExtend.doFloatTo!"));
        }
Пример #12
0
    static int doFloatTo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4)
            {
                DG.Tweening.Core.DOSetter <float> arg0 = (DG.Tweening.Core.DOSetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <float> >(L, 1);
                float arg1            = (float)LuaDLL.luaL_checknumber(L, 2);
                float arg2            = (float)LuaDLL.luaL_checknumber(L, 3);
                float arg3            = (float)LuaDLL.luaL_checknumber(L, 4);
                DG.Tweening.Tweener o = LuaExtend.doFloatTo(arg0, arg1, arg2, arg3);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 5)
            {
                DG.Tweening.Core.DOSetter <float> arg0 = (DG.Tweening.Core.DOSetter <float>)ToLua.CheckDelegate <DG.Tweening.Core.DOSetter <float> >(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                float arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
                float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
                DG.Tweening.TweenCallback arg4 = (DG.Tweening.TweenCallback)ToLua.CheckDelegate <DG.Tweening.TweenCallback>(L, 5);
                DG.Tweening.Tweener       o    = LuaExtend.doFloatTo(arg0, arg1, arg2, arg3, arg4);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaExtend.doFloatTo"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #13
0
        static StackObject *To_1(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, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @duration = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Single @endValue = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Single @startValue = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            DG.Tweening.Core.DOSetter <System.Single> @setter = (DG.Tweening.Core.DOSetter <System.Single>) typeof(DG.Tweening.Core.DOSetter <System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = DG.Tweening.DOTween.To(@setter, @startValue, @endValue, @duration);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Пример #14
0
 public static Tween ToGeterSeterFloat(DG.Tweening.Core.DOGetter <float> getter, DG.Tweening.Core.DOSetter <float> setter, float endVal, float duration)
 {
     return(DOTween.To(getter, setter, endVal, duration));
 }
Пример #15
0
 public static Tweener DoCustomRotate(this TransformHandler target, float endValue, float duration)
 {
     DG.Tweening.Core.DOGetter <float> getter = () => { return(target.degreeValue); };
     DG.Tweening.Core.DOSetter <float> setter = (value) => { target.degreeValue = value; };
     return(DOTween.To(getter, setter, endValue, duration));
 }
Пример #16
0
        public static Tweener DoScrollVertical(this ScrollRect target, float endValue, float duration)
        {
            DG.Tweening.Core.DOSetter <float> setter = (x) => { target.verticalNormalizedPosition = x; };

            return(DOTween.To(setter, target.verticalNormalizedPosition, endValue, duration));
        }