diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-17 08:17:40 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-17 08:17:40 +0000 |
commit | c8e7fcc5f2cac58785baf2556cffc5727a48e957 (patch) | |
tree | 2045c65c88ddb377f68171ec5b8b38866d8d871d /src/game/interface.cpp | |
parent | a44122dc7336640c4f20cd9845f26e38a55ec1cd (diff) |
Display total S/T/E counts.
Diffstat (limited to 'src/game/interface.cpp')
-rw-r--r-- | src/game/interface.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/game/interface.cpp b/src/game/interface.cpp index d1734af..f574732 100644 --- a/src/game/interface.cpp +++ b/src/game/interface.cpp @@ -170,9 +170,17 @@ void state_t::render_to(render::state_t *render) render->render_text(x, em, entry.text, render::ALIGN_LEFT_TOP, sf::Color::White); x[1] += em; } - + x = v2f_t(0.0f, h - em * 1.5); - ss << "S/T/E: "; + ss << "World S/T/E: "; + ss << game->world.stats.sectors << "/"; + ss << game->world.stats.tiles << "/"; + ss << game->world.stats.entities; + render->render_text(x, em, ss.str(), render::ALIGN_LEFT_TOP, sf::Color::White); + + x[1] -= em; + ss.str(std::string()); + ss << "View S/T/E: "; ss << render->stats.sectors << "/"; ss << render->stats.tiles << "/"; ss << render->stats.entities; |