示例#1
0
 static int ResetChildren(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIScrollBase obj = (UIScrollBase)ToLua.CheckObject(L, 1, typeof(UIScrollBase));
         obj.ResetChildren();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
 static int OnInitializePotentialDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIScrollBase obj = (UIScrollBase)ToLua.CheckObject(L, 1, typeof(UIScrollBase));
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
         obj.OnInitializePotentialDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
 static int TurnBy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIScrollBase obj  = (UIScrollBase)ToLua.CheckObject(L, 1, typeof(UIScrollBase));
         float        arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.TurnBy(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
    static int set_centerOnChildDecay(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj  = (UIScrollBase)o;
            float        arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.centerOnChildDecay = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index centerOnChildDecay on a nil value" : e.Message));
        }
    }
示例#5
0
    static int set_centerOnChild(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj  = (UIScrollBase)o;
            bool         arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.centerOnChild = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index centerOnChild on a nil value" : e.Message));
        }
    }
示例#6
0
    static int set_moveType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            UIScrollBase.MovementType arg0 = (UIScrollBase.MovementType)ToLua.CheckObject(L, 2, typeof(UIScrollBase.MovementType));
            obj.moveType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moveType on a nil value" : e.Message));
        }
    }
示例#7
0
    static int set_viewPort(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RectTransform));
            obj.viewPort = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index viewPort on a nil value" : e.Message));
        }
    }
示例#8
0
    static int set_uiMod(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj  = (UIScrollBase)o;
            UIMod        arg0 = (UIMod)ToLua.CheckUnityObject(L, 2, typeof(UIMod));
            obj.uiMod = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiMod on a nil value" : e.Message));
        }
    }
示例#9
0
    static int set_controlID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj  = (UIScrollBase)o;
            int          arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.controlID = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controlID on a nil value" : e.Message));
        }
    }
示例#10
0
    static int get_darkRatio(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            float        ret = obj.darkRatio;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index darkRatio on a nil value" : e.Message));
        }
    }
示例#11
0
    static int get_darkFromCenter(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            bool         ret = obj.darkFromCenter;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index darkFromCenter on a nil value" : e.Message));
        }
    }
示例#12
0
    static int get_moveType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            UIScrollBase.MovementType ret = obj.moveType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index moveType on a nil value" : e.Message));
        }
    }
示例#13
0
    static int get_enableDragginEvent(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            bool         ret = obj.enableDragginEvent;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index enableDragginEvent on a nil value" : e.Message));
        }
    }
示例#14
0
    static int get_viewPort(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            UnityEngine.RectTransform ret = obj.viewPort;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index viewPort on a nil value" : e.Message));
        }
    }
示例#15
0
    static int get_uiMod(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            UIMod        ret = obj.uiMod;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiMod on a nil value" : e.Message));
        }
    }
示例#16
0
    static int get_controlID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIScrollBase obj = (UIScrollBase)o;
            int          ret = obj.controlID;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controlID on a nil value" : e.Message));
        }
    }