Ejemplo n.º 1
0
        protected virtual void OnEnable()
        {
            m_baseList = (BaseList)target;

            m_itemPrefab = serializedObject.FindProperty("m_itemPrefab");
            // m_columnCount = serializedObject.FindProperty ("m_columnCount");
            // m_rowCount = serializedObject.FindProperty ("m_rowCount");
            // m_horizontalGap = serializedObject.FindProperty ("m_horizontalGap");
            // m_verticalGap = serializedObject.FindProperty ("m_verticalGap");
        }
Ejemplo n.º 2
0
        protected virtual void OnEnable()
        {
            m_baseList = (BaseList)target;

            m_itemPrefab = serializedObject.FindProperty("m_itemPrefab");

            if (!EditorApplication.isPlaying && m_baseList.CreateElements())
            {
                MarkSceneDirty();
            }
        }
    static int get_rowCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList obj = (ShibaInu.BaseList)o;
            uint ret = obj.rowCount;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index rowCount on a nil value"));
        }
    }
    static int get_itemPrefab(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList      obj = (ShibaInu.BaseList)o;
            UnityEngine.GameObject ret = obj.itemPrefab;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemPrefab on a nil value"));
        }
    }
    static int set_isAutoItemGap(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList obj = (ShibaInu.BaseList)o;
            bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
            obj.isAutoItemGap = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isAutoItemGap on a nil value"));
        }
    }
    static int set_verticalGap(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList obj = (ShibaInu.BaseList)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.verticalGap = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index verticalGap on a nil value"));
        }
    }
    static int set_itemPrefab(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList obj  = (ShibaInu.BaseList)o;
            LuaTable          arg0 = ToLua.CheckLuaTable(L, 2);
            obj.luaTarget = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaTarget on a nil value"));
        }
    }
    static int get_content(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList         obj = (ShibaInu.BaseList)o;
            UnityEngine.RectTransform ret = obj.content;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index content on a nil value"));
        }
    }
    static int get_isAutoItemGap(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList obj = (ShibaInu.BaseList)o;
            bool ret = obj.isAutoItemGap;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isAutoItemGap on a nil value"));
        }
    }
    static int get_verticalGap(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.BaseList obj = (ShibaInu.BaseList)o;
            int ret = obj.verticalGap;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index verticalGap on a nil value"));
        }
    }
 static int SyncPropertys(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 6);
         ShibaInu.BaseList      obj  = (ShibaInu.BaseList)ToLua.CheckObject <ShibaInu.BaseList>(L, 1);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         uint arg1 = (uint)LuaDLL.luaL_checknumber(L, 3);
         uint arg2 = (uint)LuaDLL.luaL_checknumber(L, 4);
         int  arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
         int  arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
         obj.SyncPropertys(arg0, arg1, arg2, arg3, arg4);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 13
0
        protected virtual void OnEnable()
        {
            m_baseList = (BaseList)target;

            m_itemPrefab = serializedObject.FindProperty("m_itemPrefab");
        }