Hey everyone,
I’m excited to introduce my new library, Guified, designed to make building user interfaces in LOVE2D a lot easier and more intuitive. It's a lightweight and flexible GUI toolkit that simplifies window management, UI elements, and more.
Key Features:
- Button, TextBox, Box, and Image Elements: Ready-to-use elements to handle common UI components.
- Draw and Update Stack Management: Manage your UI elements' behavior and drawing in a structured way.
- Window Management: Easily set the window to always stay on top (works with Windows).
- Customizable: Easily update and modify UI elements like position, size, and text.
Guified allows you to create UI elements, register them in the system, and manage them with simple draw and update functions. You can also toggle drawing and updating, giving you control over the UI performance.
Example Usage:
Code: Select all
local guified = require("guified")
-- Create a button
local button = guified.registry.elements.button:new(100, 100, 200, 50, "Click Me!")
-- Register the button
guified.registry.register(button)
function love.update(dt)
if button.pressed() then
print("button was pressed !")
end
end