(ON HOLD) Pop.Box is an easy to use GUI library for the LÖVE engine, intended for rapid prototyping.
Go to file
2016-01-20 14:34:25 -08:00
pop align shit done badly 2016-01-20 14:34:25 -08:00
Elements.md align shit done badly 2016-01-20 14:34:25 -08:00
main.lua align shit done badly 2016-01-20 14:34:25 -08:00
README.md align shit done badly 2016-01-20 14:34:25 -08:00
Skins.md align shit done badly 2016-01-20 14:34:25 -08:00

Pop.Box

Do not mix with Cola.

Pop.Box attempts to make a GUI system for use in the LÖVE engine that is easy to use, requiring as little code as possible to get working, but also extensible, allowing for complex interfaces to be built in it.

I've never written a GUI library before..so we'll see how that goes.

local pop = require "pop"
-- define love callbacks here (update, draw, textinput, mouse/key events)
local box = pop.box()

Using

Elements store position, size, and child elements. When moved, an element's children also move. Elements have simple methods for adjusting their position and size.

pop.window - An element representing the game window. It will not auto-resize.

Any element (and its children) with excludeMovement == true will not be moved except when its move() or setPosition() are called.

Children render on top of their parents. (Rendering starts at pop.window and loops down.) Any element (and its children) with excludeRendering == true will not be rendered.

See Elements.md for the standard methods each element has, and what elements are available.