Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.
/ MatLib Public archive

MatLib is a simple UI Library to allow you to make Material UIs easily.

Notifications You must be signed in to change notification settings

LivacoNew/MatLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

MatLib

MatLib is a simple and easy to use UI Library that allows you to make Material VGUIs easily and hassle free.

So, what can I do with this?

You can create your entire VGUI, but instead of the usual 200-300 lines you might have, you might only need about 30. MatLib allows you to make almost everything with a simple function and also allows you to change colors, ect.

Example

-- Creates a frame and has an example text inside it.

-- MatLib.Frame(posX[-1 for center], posY[-1 for center], width, height, title)
local frame = MatLib.Frame(-1, -1, ScrW() * 0.5, ScrH() * 0.5, "Example Frame")
-- MatLib.Text(parentItem, posX, posY, text)
MatLib.Text(frame, frame:GetWide() * 0.1, frame:GetTall() * 0.2, "This is an example frame with example text!")

It's about as easy as that. If you need any more help, you can view cl_example.lua and get more insight into it.

Images

Here's some images of how the UI looks.

Image of the example above. First Image
One of the built-in examples (matlib_fact command). Second Image
Same image as above, but with Dark Mode enabled. Third Image

Can I Use this?

Anyone is free to use this. If you're re-distributing it (In an addon per-say), please credit me. You can also use this for Gmodstore/Paid addons if you so wish.

Credits

If anyone chooses to contribute, you will also be listed here.

  • Livaco for fucking making it.
  • Owain who came up with the idea.

About

MatLib is a simple UI Library to allow you to make Material UIs easily.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages