Fixed the map so that it shows directional arrows instead of a compass.

This commit is contained in:
Zed A. Shaw 2025-04-06 23:29:25 -04:00
parent c7c48658bd
commit e6a8a8b338
11 changed files with 35 additions and 27 deletions

View file

@ -44,13 +44,13 @@ namespace gui {
$gui.init();
}
void MapViewUI::render(sf::RenderWindow &window, Point aim) {
void MapViewUI::render(sf::RenderWindow &window, int compass_dir) {
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, aim);
std::wstring map_out = System::draw_map($level, 23, 9, compass_dir);
auto& map_text = $gui.get<guecs::Textual>(grid);
map_text.update(map_out);