Miiui is a lightweight, efficient Immediate Mode GUI (IMGUI) made for love2d framework:))
- Immediate Mode GUI**: Create efficient GUIs without complex state management
- Customizable Themes**: Easily adjust colors and sizes to match your game's aesthetic
- Animated Transitions**: Add smooth animations to enhance user experience
- Responsive Layouts**: Automatically adjusts to different screen sizes
showcase.mp4
- Download or clone the repo
- Extract the files into your LÖVE2D project directory.
- Require the library in your
main.lua
:
local Miiui = require "Miiui"
Here's a simple example of how to use Miiui to create a button and a slider:
local Miiui = require "Miiui"
function love.load()
love.window.setMode(800, 600)
end
function love.update(dt)
Miiui.update(dt)
end
function love.draw()
Miiui.begin()
if Miiui.button(50, 50, 200, 40, "Click me!") then
print("Button clicked!")
end
local sliderValue = Miiui.slider(50, 100, 200, 50, 0, 100)
Miiui.label(50, 130, "Slider value: " .. math.floor(sliderValue))
Miiui.end_frame()
end
function love.keypressed(key)
Miiui.keypressed(key)
end
function love.textinput(text)
Miiui.textinput(text)
end
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any problems or have any questions, please open an issue.
Made with love by Mii