Map view now displays a simple status message, more to come.

master
Zed A. Shaw 1 week ago
parent 6fe343d82d
commit d7ff7d6acf
  1. 9
      map_view.cpp

@ -47,12 +47,21 @@ namespace gui {
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);
auto& map_text = $gui.get<guecs::WideText>(grid);
map_text.update(map_out);
auto& status_text = $gui.get<guecs::Textual>(status);
std::string status_out = fmt::format(
"Level: {}\n"
"Enemies Killed: A Lot\n",
$level.index + 1);
status_text.update(status_out);
$gui.render(window);
// $gui.debug_layout(window);

Loading…
Cancel
Save