Skip to main content

draw

Function draw 

Source
pub fn draw(
    frame: &mut Frame<'_>,
    area: Rect,
    state: &GameState,
    mouse_pos: Option<(u16, u16)>,
) -> Vec<(usize, Rect)>
Expand description

Returns one entry per visible fingerer row: the live FINGERERS index and the click-target rect on screen. Aligned 1:1 with the rendered rows so the click router can map a click coordinate to an Action::BuyFingerer without re-parsing the panel layout.