Pedro Gimeno d344155ecb Update to love2d 11.x, change server finder URL hace 4 años
..
License.txt 1253b9f30a Added dedicated server. hace 10 años
README.md cddef4910b Added refresh button to server list. hace 10 años
colors.lua 26fae6d3ff First rough mouse controlling is now possible. hace 10 años
init.lua 26fae6d3ff First rough mouse controlling is now possible. hace 10 años
inputBlock.lua d344155ecb Update to love2d 11.x, change server finder URL hace 4 años
main.lua 6452852e45 Added ui. hace 10 años
middleclass.lua 6452852e45 Added ui. hace 10 años
panel.lua d344155ecb Update to love2d 11.x, change server finder URL hace 4 años
punchUI.lua d344155ecb Update to love2d 11.x, change server finder URL hace 4 años
screen.lua eb7378956d Enhanced mouse click on input boxes. hace 10 años
textBlock.lua d344155ecb Update to love2d 11.x, change server finder URL hace 4 años
utility.lua 26fae6d3ff First rough mouse controlling is now possible. hace 10 años

README.md

PunchUI

A simple User Interface library for the Löve2D engine. No mouse needed - just keyboard controlled.

Update: Mouse control is now optionally available, by calling ui:mousemoved( love.mouse.getPosition() ) once a frame and ui:mousepressed(x, y, button) inside the love.mousepressed event.

Features:

  • no mouse needed
  • resizes content to panel size automatically
  • multiline input box, including password functionality.
  • add actions which are assigned to keys (keys are displayed next to action name)
  • (todo!) tooltip if you press shift + function key
  • message boxes, with header, text and multiple possible answers
  • word wrap
  • multi-colour text boxes
  • drop-down menus

Example is included in 'main.lua'. Install Love2D, go to the folder and run: love .

License:

Released under the MIT license, see "License.txt".

Credits:

  • This library uses Kikito's awesome middleclass library.