Pop.Box/docs/Skins.md
2016-01-21 14:18:28 -08:00

775 B

Skins

Skins are simply tables containing information on how to draw elements that have been assigned them. Skins are loaded from Pop's skins directory when you require it.

  • background - A Drawable drawn before the foreground, or if a table, assumed to be a color and that color is used (if false, is ignored).
  • foreground - A Drawable drawn after the background, or if a table, assumed to be a color and that color is used (if false, is ignored).
  • draw(element) - If defined, will be used to render an element instead of the standard drawing method.

Note: Supported Drawables: Canvas, Image, Video

TODO various text style infos!