Exemplo n.º 1
0
 static int Clean(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)ToLua.CheckObject <GameFramework.UGUIScrollView>(L, 1);
         obj.Clean();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 2
0
 static int SetListenter(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)ToLua.CheckObject <GameFramework.UGUIScrollView>(L, 1);
         System.Action <UnityEngine.GameObject, int> arg0 = (System.Action <UnityEngine.GameObject, int>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject, int> >(L, 2);
         obj.SetListenter(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 static int SetModel(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         GameFramework.UGUIScrollView obj  = (GameFramework.UGUIScrollView)ToLua.CheckObject <GameFramework.UGUIScrollView>(L, 1);
         UnityEngine.GameObject       arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         obj.SetModel(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 4
0
 static int SetStartIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)ToLua.CheckObject <GameFramework.UGUIScrollView>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.SetStartIndex(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 5
0
    static int set_offset(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.offset = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index offset on a nil value"));
        }
    }
Exemplo n.º 6
0
    static int set_model(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.UGUIScrollView obj  = (GameFramework.UGUIScrollView)o;
            UnityEngine.RectTransform    arg0 = (UnityEngine.RectTransform)ToLua.CheckObject(L, 2, typeof(UnityEngine.RectTransform));
            obj.model = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index model on a nil value"));
        }
    }
Exemplo n.º 7
0
    static int set_scorll(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.UGUIScrollView obj  = (GameFramework.UGUIScrollView)o;
            UnityEngine.UI.ScrollRect    arg0 = (UnityEngine.UI.ScrollRect)ToLua.CheckObject <UnityEngine.UI.ScrollRect>(L, 2);
            obj.scorll = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scorll on a nil value"));
        }
    }
Exemplo n.º 8
0
    static int get_length(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)o;
            int ret = obj.length;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index length on a nil value"));
        }
    }
Exemplo n.º 9
0
    static int get_model(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)o;
            UnityEngine.RectTransform    ret = obj.model;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index model on a nil value"));
        }
    }
Exemplo n.º 10
0
    static int get_scorll(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameFramework.UGUIScrollView obj = (GameFramework.UGUIScrollView)o;
            UnityEngine.UI.ScrollRect    ret = obj.scorll;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scorll on a nil value"));
        }
    }