Parent-Child UI System #122

Open
opened 2025-07-12 19:07:30 +00:00 by john · 1 comment
Owner

Add parent field to UI drawables for proper hierarchy.
Definition of Done:

  • All UIDrawables have optional parent reference
  • Auto-remove from old parent when adding to new
  • Proper cleanup on destruction
  • Global position calculation possible
Add parent field to UI drawables for proper hierarchy. Definition of Done: - All UIDrawables have optional parent reference - Auto-remove from old parent when adding to new - Proper cleanup on destruction - Global position calculation possible
john added the
Major Feature
label 2025-07-12 19:07:30 +00:00
Author
Owner

When implementing parent references, consider the Grid children feature (#132) which will need parent-aware behavior.

Grid children will use grid-world pixel coordinates but should be able to query their global position on screen, accounting for:

  • Grid's screen position (box.getPosition())
  • Grid's camera transform (center_x, center_y, zoom)
  • Any parent Frame/Scene transforms

The parent reference system should support this composition naturally.

When implementing parent references, consider the Grid children feature (#132) which will need parent-aware behavior. Grid children will use grid-world pixel coordinates but should be able to query their global position on screen, accounting for: - Grid's screen position (`box.getPosition()`) - Grid's camera transform (center_x, center_y, zoom) - Any parent Frame/Scene transforms The parent reference system should support this composition naturally.
Sign in to join this conversation.
No Milestone
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#122
No description provided.