2016-01-20 22:34:25 +00:00
|
|
|
local pop = require "pop"
|
2015-11-18 03:27:06 +00:00
|
|
|
|
|
|
|
function love.load()
|
2016-01-21 23:01:15 +00:00
|
|
|
pop.setSkin("blackonwhite")
|
|
|
|
local align = pop.box():align("center", "center"):setSize(100, 100):setSkin("blackonwhite")
|
|
|
|
--print(align.skin)
|
2015-11-18 03:27:06 +00:00
|
|
|
end
|
|
|
|
|
2016-01-20 22:34:25 +00:00
|
|
|
function love.update(dt)
|
|
|
|
pop.update(dt)
|
|
|
|
end
|
|
|
|
|
2015-11-18 03:27:06 +00:00
|
|
|
function love.draw()
|
|
|
|
pop.draw()
|
2016-01-21 23:01:15 +00:00
|
|
|
love.graphics.setColor(255, 255, 255, 255)
|
|
|
|
--love.graphics.rectangle("fill", 0, 0, 100, 100)
|
2015-11-18 03:27:06 +00:00
|
|
|
end
|
|
|
|
|
2016-01-20 22:34:25 +00:00
|
|
|
function love.textinput(text)
|
|
|
|
pop.textinput(text)
|
|
|
|
end
|
|
|
|
|
2015-11-18 03:27:06 +00:00
|
|
|
function love.mousepressed(button, x, y)
|
|
|
|
pop.mousepressed(button, x, y)
|
|
|
|
end
|
|
|
|
|
|
|
|
function love.mousereleased(button, x, y)
|
|
|
|
pop.mousereleased(button, x, y)
|
|
|
|
end
|
2015-11-20 11:30:40 +00:00
|
|
|
|
|
|
|
function love.keypressed(key)
|
2015-11-30 19:55:52 +00:00
|
|
|
if key == "escape" then
|
|
|
|
love.event.quit()
|
2016-01-20 22:34:25 +00:00
|
|
|
else
|
|
|
|
pop.keypressed(key)
|
2015-11-20 11:30:40 +00:00
|
|
|
end
|
|
|
|
end
|
2016-01-20 22:34:25 +00:00
|
|
|
|
|
|
|
function love.keyreleased(key)
|
|
|
|
pop.keyreleased(key)
|
|
|
|
end
|