I kinda like the way winforms works with its events but I'm not really looking for something that complicated
something that would work something like this..
Code: Select all
function love.load()
menubar = ui:create_menubar()
menugroup1 = menubar:addGroup("file")
menuitem1 = menubar:addItem(menugroup1, "new")
menuitem1:addEvent(ENV_ONCLICK, onFileMenuBarItem)
window = ui:create_window(nil, "some window", 0, 0, 256, 240)
window.addMenuBar(menubar);
end
function love.update()
ui:update()
end
function.draw()
ui:render()
end