示例#1
0
    static int Repaint(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        GNewListLoop obj = (GNewListLoop)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewListLoop");

        obj.Repaint();
        return(0);
    }
示例#2
0
    static int RefreshItem(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        GNewListLoop obj  = (GNewListLoop)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewListLoop");
        int          arg0 = (int)LuaScriptMgr.GetNumber(L, 2);

        obj.RefreshItem(arg0);
        return(0);
    }
示例#3
0
    static int IsListItemVisible(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        GNewListLoop obj  = (GNewListLoop)LuaScriptMgr.GetUnityObjectSelf(L, 1, "GNewListLoop");
        int          arg0 = (int)LuaScriptMgr.GetNumber(L, 2);
        float        arg1 = (float)LuaScriptMgr.GetNumber(L, 3);
        bool         o    = obj.IsListItemVisible(arg0, arg1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
示例#4
0
    static int set_PreOutLook(IntPtr L)
    {
        object       o   = LuaScriptMgr.GetLuaObject(L, 1);
        GNewListLoop obj = (GNewListLoop)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name PreOutLook");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index PreOutLook on a nil value");
            }
        }

        obj.PreOutLook = (float)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }