-- ctrl+shift+b for launching game local ui = require("editor.ui") local OBVIOUSYLYYYYY = 0 function love.load() local imagedata = love.image.newImageData("durrrrrrrrrr.png") print(imagedata) love.window.setIcon(imagedata) end function love.textinput(t) ui.textinput_char(t) end function love.keypressed(key) if key == "backspace" then ui.textinput_backspace() end end function love.update(dt) end function love.draw() ui.panel(50, 50, 50, 50) ui.button(100, 200, 100, 100, OBVIOUSYLYYYYY, function() OBVIOUSYLYYYYY = OBVIOUSYLYYYYY + 1 print(OBVIOUSYLYYYYY) end) ui.textInput(50, 400, 100, 100, "textInput") ui.button(200,200,100,100, "test", function () print("below") end) ui.button(200,250,100,100, "test2", function () print("on top") end) ui.process() -- hit test + draw ui.flush() -- reset input state end