/urutora

GUI Library for LÖVE

Primary LanguageLuaMIT LicenseMIT

urutora

GUI Library for LÖVE

License Version

Instructions

Import the urutora folder in your project and do:

urutora = require 'urutora'

Components

-- returns a panel with a Rows x Cols grid
urutora.panel({ text, x, y, w, h, rows, cols })
-- returns a label with centered text
urutora.label({ text, x, y, w, h })
-- returns a button with centered text
urutora.button({ text, x, y, w, h })
-- returns a slider with a given value (0.5 by default)
urutora.slider({ value, x, y, w, h })
-- returns a toggle button, turned off by default
urutora.toggle({ text, value, x, y, w, h })
-- returns a multi option selector
urutora.multi({ items, x, y, w, h })
-- returns a text field component
urutora.text({ text, x, y, w, h })
-- returns a joystick component
urutora.joy({ x, y, w, h })

Notes

ℹ️ This version does not support multituoch yet and haven't been tested in mobile

ℹ️ See main.lua for more details