Expand description
Full-screen upgrade-tree modal renderer.
Layout (top to bottom):
- Header (3 rows): title, cuques, cursor coord, owned count.
- Canvas (variable): the pannable infinite tree, centered on the cursor.
- Info pane (8 rows): focused node’s title + primitives + cost + action hints.
Bottom help_height rows (the help bar ui::mod.rs draws first) are
intentionally left untouched.
Coordinate spaces:
lot (lx, ly): integer coords on the infinite tree grid.canvas (cx, cy): cell coords on the same infinite grid where boxes live (each lot occupiesLOT_W × LOT_Hcells).screen (sx, sy): actual terminal cell coords.
Conversion: screen = canvas - pan + canvas_origin.
Structs§
- Tree
Draw Output - Tree-modal renderer output. Carries the same per-node click rects the modal has always exposed, plus an optional clickable action button (Buy or Refund) for the focused node — that’s the left-click target for touch / single-button players.