Map view now displays a simple status message, more to come.
This commit is contained in:
parent
6fe343d82d
commit
d7ff7d6acf
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue