Giter Site home page Giter Site logo

tomdotbat / pixel-ui Goto Github PK

View Code? Open in Web Editor NEW
49.0 5.0 11.0 181 KB

A modern, optimised UI library to replace derma and other slow built in Garry's Mod functions.

Home Page: https://tomdotbat.dev

License: GNU General Public License v3.0

Lua 100.00%
gmod lua ui glua glua-library derma

pixel-ui's Issues

drawing/cl_images.lua:31: bad argument #1 to 'setMaterial' (IMaterial expected, got nil)

[pixel-ui-1.3.1] addons/pixel-ui-1.3.1/lua/pixelui/drawing/cl_images.lua:31: bad argument #1 to 'setMaterial' (IMaterial expected, got nil)
  1. setMaterial - [C]:-1
   2. drawProgressWheel - addons/pixel-ui-1.3.1/lua/pixelui/drawing/cl_images.lua:31
    3. DrawImage - addons/pixel-ui-1.3.1/lua/pixelui/drawing/cl_images.lua:49
     4. DrawImgur - addons/pixel-ui-1.3.1/lua/pixelui/drawing/cl_images.lua:90
      5. unknown - addons/cbox-hud/lua/cbox-hud/parts/icon.lua:16

Image directory is empty: https://i.imgur.com/m6j9vmG.png

feat: Documentation

Could do with setting up some documentation as the library is now public.

not working

empty f4 and spammed error in console

[pixel-ui-1.3.1] addons/pixel-ui-1.3.1/lua/pixelui/core/cl_color.lua:145: attempt to call method 'Lerp' (a nil value)

  1. LerpColor - addons/pixel-ui-1.3.1/lua/pixelui/core/cl_color.lua:145
  2. unknown - addons/pixel-ui-1.3.1/lua/pixelui/elements/cl_button.lua:121 (x3)

FindMetaTable seems to be not working in cl_color.lua

I'm playing on a server which has an addon which uses Pixel UI
I'm getting script errors from cl_color.lua

[_mutui] addons/_mutui/lua/pixelui/core/cl_color.lua:154: attempt to index local 'colorMeta' (a nil value)
    1. unknown - addons/_mutui/lua/pixelui/core/cl_color.lua:154
        2. include - [C]:-1
            3. LoadDirectory - addons/_mutui/lua/autorun/sh_pixelui_loader.lua:30
                4. LoadDirectoryRecursive - addons/_mutui/lua/autorun/sh_pixelui_loader.lua:47
                    5. LoadDirectoryRecursive - addons/_mutui/lua/autorun/sh_pixelui_loader.lua:49
                        6. unknown - addons/_mutui/lua/autorun/sh_pixelui_loader.lua:53

Which seems to indicate an issue with the following code in cl_color.lua (Line 153)

local colorMeta = FindMetaTable("Color")
colorMeta.Copy = PIXEL.CopyColor
colorMeta.IsLight = PIXEL.IsColorLight
colorMeta.EqualTo = PIXEL.IsColorEqualTo

It seems that FindMetaTable("Color") is returning nil instead of a table.

If you have any idea how to fix this, that would be great

feat: Settings system

Add a menu which you can configure client-side UI settings from, and add functions that make it easy for developers to implement.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.