Lots of dumb little edits to sort out what I'm aiming at. I'll next clean out most of this in a refactor.

This commit is contained in:
Zed A. Shaw 2025-04-06 15:32:19 -04:00
parent 1f90367f51
commit c7c48658bd
13 changed files with 60 additions and 29 deletions

View file

@ -44,13 +44,13 @@ namespace gui {
$gui.init();
}
void MapViewUI::render(sf::RenderWindow &window) {
void MapViewUI::render(sf::RenderWindow &window, Point aim) {
window.draw(*$paper.sprite);
auto grid = $gui.entity("map_grid");
auto status = $gui.entity("status");
std::wstring map_out = System::draw_map($level, 23, 9);
std::wstring map_out = System::draw_map($level, 23, 9, aim);
auto& map_text = $gui.get<guecs::Textual>(grid);
map_text.update(map_out);