engine/main.lua
2026-05-21 18:38:35 -07:00

17 lines
329 B
Lua

local ui = require("editor.ui")
function love.load()
end
function love.update(dt)
ui.flush()
end
function love.draw()
ui.panel(50,50,50,50)
local test = ui.button(100,200,100,100,"hello world")
if ui.on("hello world") then -- detect if the button is pressed.
ui.panel(250,250,250,250)
end
end