This commit is contained in:
2026-07-11 12:40:35 -05:00
parent f1eaaae5d0
commit 6dccf5fc23
14 changed files with 363 additions and 40 deletions
+9 -2
View File
@@ -424,7 +424,14 @@ fn draw_board_area(frame: &mut Frame, inner: Rect, game: &GameState, ui: &mut Ui
);
} else {
let board = &game.board();
frame.render_widget(BoardWidget::new(board), inner);
frame.render_widget(SpeechBubblesWidget::new(board, &game.speech_bubbles), inner);
// On a dark board this is the player's field of view; on a lit board it's
// None (draw everything). Computed once and shared by both widgets so the
// board and its speech bubbles agree on what's visible.
let fov = board.player_fov();
frame.render_widget(BoardWidget::new(board).fov(fov.as_ref()), inner);
frame.render_widget(
SpeechBubblesWidget::new(board, &game.speech_bubbles).fov(fov.as_ref()),
inner,
);
}
}