Beispiel #1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        UnityEngine.UI.ScrollRect.MovementType o = (UnityEngine.UI.ScrollRect.MovementType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
 public ScrollRectData(ScrollRect sr)
 {
     decelerationRate            = sr.decelerationRate;
     elasticity                  = sr.elasticity;
     inertia                     = sr.inertia;
     movementType                = sr.movementType;
     normalizedPosition          = sr.normalizedPosition;
     scrollSensitivity           = sr.scrollSensitivity;
     velocity                    = sr.velocity;
     vertical                    = sr.vertical;
     verticalNormalizedPosition  = sr.verticalNormalizedPosition;
     verticalScrollbarSpacing    = sr.verticalScrollbarSpacing;
     verticalScrollbarVisibility = sr.verticalScrollbarVisibility;
 }
    static int QPYX_set_movementType_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.UI.ScrollRect QPYX_obj_YXQP = (UnityEngine.UI.ScrollRect)QPYX_o_YXQP;
            UnityEngine.UI.ScrollRect.MovementType QPYX_arg0_YXQP = (UnityEngine.UI.ScrollRect.MovementType)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.UI.ScrollRect.MovementType));
            QPYX_obj_YXQP.movementType = 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 movementType on a nil value"));
        }
    }
    static int QPYX_get_movementType_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.UI.ScrollRect QPYX_obj_YXQP = (UnityEngine.UI.ScrollRect)QPYX_o_YXQP;
            UnityEngine.UI.ScrollRect.MovementType QPYX_ret_YXQP = QPYX_obj_YXQP.movementType;
            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 movementType on a nil value"));
        }
    }
    static int set_movementType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)o;
            UnityEngine.UI.ScrollRect.MovementType arg0 = (UnityEngine.UI.ScrollRect.MovementType)ToLua.CheckObject(L, 2, typeof(UnityEngine.UI.ScrollRect.MovementType));
            obj.movementType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index movementType on a nil value"));
        }
    }
    static int get_movementType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.ScrollRect obj = (UnityEngine.UI.ScrollRect)o;
            UnityEngine.UI.ScrollRect.MovementType ret = obj.movementType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index movementType on a nil value"));
        }
    }
Beispiel #7
0
 static void Push(IntPtr L, UnityEngine.UI.ScrollRect.MovementType arg)
 {
     ToLua.Push(L, arg);
 }