A light, fast, and efficient UI framework that has a small learning curve.
In order to use lumin/ui you must have the following dependencies installed:
This usage example will create a new TextButton
in a ScreenGui
with an Activated
event.
local PlayerService = game:GetService("Players")
local Player = PlayerService.LocalPlayer
local UI = require(path.to.UI)
local New = UI.New
local Event = UI.Event
New "ScreenGui" {
Name = "SampleGUI",
IgnoreGuiInset = true,
Parent = Player:WaitForChild("PlayerGui"),
New "TextButton" {
AnchorPoint = Vector2.new(0.5, 0.5),
Position = UDim2.fromScale(0.5, 0.5),
Size = UDim2.fromOffset(100, 100),
ZIndex = 1,
Event("Activated", function()
print("Button clicked!")
end),
}
}
This project is licensed under the MIT license