Grid children: support .grid_pos property #221

Closed
opened 2026-01-19 03:39:20 +00:00 by john · 0 comments
Owner

entities have a peculiar .pos property, which gives their position in pixels only if they are associated with a grid. An entity has an intrinsic .grid_pos that it carries with it.

UIDrawables could have the inverse: an intrinsic .pos value that they store internally, and calculated .grid_pos and .grid_size properties when assigned to a Grid. This would allow developers to size and position their objects in exact tiles: very handy for placing things relative to entities in the same grid.

entities have a peculiar `.pos` property, which gives their position in pixels *only* if they are associated with a grid. An entity has an intrinsic `.grid_pos` that it carries with it. UIDrawables could have the inverse: an intrinsic `.pos` value that they store internally, and calculated `.grid_pos` and `.grid_size` properties when assigned to a Grid. This would allow developers to size and position their objects in exact tiles: very handy for placing things relative to entities in the same grid.
john closed this issue 2026-01-20 03:23:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#221
No description provided.