From d7ff7d6acfc6182309d3770213ef26a11056fd50 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sun, 23 Mar 2025 00:25:11 -0400 Subject: [PATCH] Map view now displays a simple status message, more to come. --- map_view.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/map_view.cpp b/map_view.cpp index bf889f9..2796e75 100644 --- a/map_view.cpp +++ b/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(grid); map_text.update(map_out); + auto& status_text = $gui.get(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);