コード例 #1
0
 static int RefreshAllContentItems(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContent));
         obj.RefreshAllContentItems();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
 static int ScrollTo(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContent));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.ScrollTo(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
    static int set_verticalSpacing(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.verticalSpacing = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index verticalSpacing on a nil value" : e.Message));
        }
    }
コード例 #4
0
    static int set_onInitComplete(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent  obj  = (Common.UI.Components.ScrollContent)o;
            Common.UI.Components.OnInitComplete arg0 = (Common.UI.Components.OnInitComplete)ToLua.CheckObject(L, 2, typeof(Common.UI.Components.OnInitComplete));
            obj.onInitComplete = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onInitComplete on a nil value" : e.Message));
        }
    }
コード例 #5
0
    static int set_contentItemPrefab(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj  = (Common.UI.Components.ScrollContent)o;
            UnityEngine.GameObject             arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
            obj.contentItemPrefab = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contentItemPrefab on a nil value" : e.Message));
        }
    }
コード例 #6
0
    static int set_shouldDisablePrefab(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.shouldDisablePrefab = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index shouldDisablePrefab on a nil value" : e.Message));
        }
    }
コード例 #7
0
    static int get_onInitComplete(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent  obj = (Common.UI.Components.ScrollContent)o;
            Common.UI.Components.OnInitComplete ret = obj.onInitComplete;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onInitComplete on a nil value" : e.Message));
        }
    }
コード例 #8
0
    static int set_rectTransform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj  = (Common.UI.Components.ScrollContent)o;
            UnityEngine.RectTransform          arg0 = (UnityEngine.RectTransform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RectTransform));
            obj.rectTransform = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rectTransform on a nil value" : e.Message));
        }
    }
コード例 #9
0
    static int get_verticalSpacing(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)o;
            float ret = obj.verticalSpacing;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index verticalSpacing on a nil value" : e.Message));
        }
    }
コード例 #10
0
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)ToLua.CheckObject(L, 1, typeof(Common.UI.Components.ScrollContent));
         int   arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool  arg1 = LuaDLL.luaL_checkboolean(L, 3);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         obj.Init(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #11
0
    static int get_col(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)o;
            int ret = obj.col;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index col on a nil value" : e.Message));
        }
    }
コード例 #12
0
    static int get_contentItemPrefab(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)o;
            UnityEngine.GameObject             ret = obj.contentItemPrefab;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index contentItemPrefab on a nil value" : e.Message));
        }
    }
コード例 #13
0
    static int get_rectTransform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Common.UI.Components.ScrollContent obj = (Common.UI.Components.ScrollContent)o;
            UnityEngine.RectTransform          ret = obj.rectTransform;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rectTransform on a nil value" : e.Message));
        }
    }