Pop.Box/README.md

36 lines
1.0 KiB
Markdown
Raw Normal View History

2015-11-18 03:27:06 +00:00
# Pop.Box
*Do not mix with [Cola][1].*
Pop.Box attempts to make a GUI system for use in the [LÖVE][2] 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.
2016-01-21 22:18:28 +00:00
## Features
- Quickly set up and align GUI elements.
- Fully customizable alignment / styling.
- Supports moving/resizing things in ways that take the alignment headache away,
without trying to do too much and become bloated.
- Supports custom elements/skins, make your own and move them into the
appropriate directories for them to be automatically loaded.
## Usage
2015-11-18 03:27:06 +00:00
```lua
local pop = require "pop"
2016-01-21 22:18:28 +00:00
-- define LÖVE callbacks here (update, draw, textinput, mouse/key events)
2015-11-18 03:27:06 +00:00
local box = pop.box()
```
Docs: [pop Module][3], [Elements][4], [Skins][5], [Drawables][6]
TODO Support rotation?
2015-11-18 03:27:06 +00:00
[1]: https://en.wikipedia.org/wiki/Cola_(programming_language)
[2]: https://love2d.org/
2016-01-21 22:18:28 +00:00
[3]: ./docs/Pop.md
[4]: ./docs/Elements.md
[5]: ./docs/Skins.md
[6]: ./docs/Drawables.md