TangentFoxy / Pop.Box

(ON HOLD) Pop.Box is an easy to use GUI library for the LÖVE engine, intended for rapid prototyping.
http://guard13007.github.io/Pop.Box/docs
MIT License
8 stars 4 forks source link

excludeDraw -> visibility #32

Closed TangentFoxy closed 8 years ago

TangentFoxy commented 8 years ago

Make visibility a standard member of elements. Add getter/setter in the form isVisibility() and setVisibility() Replace excludeDraw with this.

In the streamlined_get_set, add show and hide methods, as well as a visible double-function method...you know what I mean, me.

TangentFoxy commented 8 years ago

Instead, keep the existing variable name the same, and just have an extension of the getVisibility() setVisibility() and show/hide methods (as well as visibility which can set or get).

Note that getting visibility needs to check parents, for if any parent is invisible, so is its children.