Example #1
0
    static int ScrollToSelectedItem(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                ShibaInu.Picker obj = (ShibaInu.Picker)ToLua.CheckObject <ShibaInu.Picker>(L, 1);
                obj.ScrollToSelectedItem();
                return(0);
            }
            else if (count == 2)
            {
                ShibaInu.Picker obj  = (ShibaInu.Picker)ToLua.CheckObject <ShibaInu.Picker>(L, 1);
                float           arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
                obj.ScrollToSelectedItem(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ShibaInu.Picker.ScrollToSelectedItem"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #2
0
 static int Clean(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ShibaInu.Picker obj = (ShibaInu.Picker)ToLua.CheckObject <ShibaInu.Picker>(L, 1);
         obj.Clean();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
 static int SerializedPropertyChanged(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ShibaInu.Picker obj  = (ShibaInu.Picker)ToLua.CheckObject <ShibaInu.Picker>(L, 1);
         bool            arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.SerializedPropertyChanged(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #4
0
    static int set_index(IntPtr L)
    {
        object o = null;

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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker        obj  = (ShibaInu.Picker)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"));
        }
    }
Example #7
0
    static int set_luaTarget(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker obj  = (ShibaInu.Picker)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"));
        }
    }
Example #8
0
    static int get_index(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker obj = (ShibaInu.Picker)o;
            int             ret = obj.index;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index index on a nil value"));
        }
    }
Example #9
0
    static int get_content(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker           obj = (ShibaInu.Picker)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"));
        }
    }
Example #10
0
    static int get_scrollRatio(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker obj = (ShibaInu.Picker)o;
            float           ret = obj.scrollRatio;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scrollRatio on a nil value"));
        }
    }
Example #11
0
    static int get_isBounces(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker obj = (ShibaInu.Picker)o;
            bool            ret = obj.isBounces;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isBounces on a nil value"));
        }
    }
Example #12
0
    static int get_itemOffsetCount(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.Picker        obj = (ShibaInu.Picker)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"));
        }
    }