Visibility: skip render or click inputs #10
Labels
No Label
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
Refactoring & Cleanup
Tiny Feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: john/McRogueFace#10
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
notes say:
14 feat: UIDrawable sf::rect_something AABB(), bool visible(), and bool hidden for toggling visibility or skipping rendering
bool visible()
- returns False if out of bounds of the current view, or always True if the UIDrawable is hidden.bool hidden
- internal member on the parent class to track visibilityvirtual sf::some_kind_of_rect AABB()
, a new required method on derived classes to get the screen coordinates of a thing.Upgraded to "Major Feature" because I suspect it needs some references (".parent" or the like) to recursively climb back up to the root and get add up offsets.
non-visible Drawables can't be clicked or rendered.