Visibility: skip render or click inputs #10

Open
opened 2024-03-09 18:27:39 +00:00 by john · 0 comments
Owner

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 visibility
  • virtual 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.

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 visibility * `virtual 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.
john added the
Major Feature
label 2024-03-09 18:27:39 +00:00
john added this to the Alpha Release Targets milestone 2024-03-13 14:45:12 +00:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#10
No description provided.