Pop.Box/docs/Extensions.md

15 lines
564 B
Markdown
Raw Permalink Normal View History

2016-04-05 03:59:42 +00:00
# Extensions
Extensions are simply a way for custom code to be run after loading elements and
skins. Simply place a `.lua` file in the `extensions` directory, and it will be
required.
## Standard Extensions
There is only one standard extension, which modifies element classes to add a
more convenient getter/setter method to most get/set methods. For example,
instead of `element:getSize()`, just call `element:size()`. Instead of
`element:setSize(w, h)`, call `element:size(w, h)`.
This is mostly for a demo of what can be possible, but also might be useful.