2026-05-21 00:49:54 +00:00
|
|
|
local ui = require("editor.ui")
|
|
|
|
|
|
|
|
|
|
function love.load()
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function love.update(dt)
|
2026-05-22 01:59:46 +00:00
|
|
|
|
2026-05-21 00:49:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function love.draw()
|
|
|
|
|
ui.panel(50,50,50,50)
|
2026-05-22 01:59:46 +00:00
|
|
|
ui.button(100,200,100,100,"hello world")
|
2026-05-22 01:38:35 +00:00
|
|
|
if ui.on("hello world") then -- detect if the button is pressed.
|
2026-05-24 01:56:00 +00:00
|
|
|
ui.panel(250,250,100,100)
|
2026-05-22 01:38:35 +00:00
|
|
|
end
|
2026-05-24 01:56:00 +00:00
|
|
|
ui.textInput(50,400,100,100,"textInput")
|
|
|
|
|
|
2026-05-22 01:59:46 +00:00
|
|
|
ui.flush() -- KEEP AT END
|
2026-05-21 00:49:54 +00:00
|
|
|
end
|