Esempio n. 1
0
 public GTweener()
 {
     _startValue = new TweenValue();
     _endValue   = new TweenValue();
     _value      = new TweenValue();
     _deltaValue = new TweenValue();
 }
Esempio n. 2
0
 static int SetZero(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.TweenValue obj = (FairyGUI.TweenValue)ToLua.CheckObject <FairyGUI.TweenValue>(L, 1);
         obj.SetZero();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
 static int _set_this(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.TweenValue obj = (FairyGUI.TweenValue)ToLua.CheckObject <FairyGUI.TweenValue>(L, 1);
         int   arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj[arg0] = arg1;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 4
0
 static int _get_this(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.TweenValue obj = (FairyGUI.TweenValue)ToLua.CheckObject <FairyGUI.TweenValue>(L, 1);
         int   arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         float o    = obj[arg0];
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 5
0
    static int get_deltaValue(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GTweener   obj = (FairyGUI.GTweener)o;
            FairyGUI.TweenValue ret = obj.deltaValue;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index deltaValue on a nil value"));
        }
    }
Esempio n. 6
0
    static int set_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.TweenValue obj  = (FairyGUI.TweenValue)o;
            UnityEngine.Color   arg0 = ToLua.ToColor(L, 2);
            obj.color = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"));
        }
    }
Esempio n. 7
0
    static int set_vec4(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.TweenValue obj  = (FairyGUI.TweenValue)o;
            UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
            obj.vec4 = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index vec4 on a nil value"));
        }
    }
Esempio n. 8
0
    static int set_d(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.TweenValue obj = (FairyGUI.TweenValue)o;
            double arg0             = (double)LuaDLL.luaL_checknumber(L, 2);
            obj.d = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index d on a nil value"));
        }
    }
Esempio n. 9
0
    static int get_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.TweenValue obj = (FairyGUI.TweenValue)o;
            UnityEngine.Color   ret = obj.color;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"));
        }
    }
Esempio n. 10
0
    static int get_d(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.TweenValue obj = (FairyGUI.TweenValue)o;
            double ret = obj.d;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index d on a nil value"));
        }
    }
Esempio n. 11
0
    static int _CreateFairyGUI_TweenValue(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                FairyGUI.TweenValue obj = new FairyGUI.TweenValue();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.TweenValue.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }