Immediate Mode GUI library for LÖVE
Find a file
Matthias Richter 1b94aa8171 Fix utf-8 input
2016-01-01 22:05:11 +01:00
docs Add documentation 2016-01-01 21:42:03 +01:00
.gitignore LET THERE BE SUIT! 2015-12-31 18:23:52 +01:00
button.lua Correct license header 2016-01-01 21:38:20 +01:00
checkbox.lua Correct license header 2016-01-01 21:38:20 +01:00
core.lua Correct license header 2016-01-01 21:38:20 +01:00
imagebutton.lua Correct license header 2016-01-01 21:38:20 +01:00
init.lua Correct license header 2016-01-01 21:38:20 +01:00
input.lua Correct license header 2016-01-01 21:38:20 +01:00
label.lua Correct license header 2016-01-01 21:38:20 +01:00
layout.lua Correct license header 2016-01-01 21:38:20 +01:00
license.txt LET THERE BE SUIT! 2015-12-31 18:23:52 +01:00
README.md Make readme point to the docs 2016-01-01 21:43:08 +01:00
slider.lua Correct license header 2016-01-01 21:38:20 +01:00
theme.lua Fix utf-8 input 2016-01-01 22:05:11 +01:00

SUIT

Simple User Interface Toolkit for LÖVE.

SUIT is an immediate mode GUI library.

Documentation?

Over at readthedocs

Hello, World!

suit = require 'suit'

local input = {text = ""}

function love.update(dt)
	suit.layout.reset(100,100)

	suit.Input(input, suit.layout.row(200,30))
	suit.Label("Hello, "..input.text, {align = "left"}, suit.layout.row())

	suit.layout.row() -- padding of one cell
	if suit.Button("Close", suit.layout.row()).hit then
		love.event.quit()
	end
end

function love.draw()
	suit.core.draw()
end

function love.textinput(t)
	suit.core.textinput(t)
end

function love.keypressed(key)
	suit.core.keypressed(key)
end