diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-12 14:36:37 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:02 +0200 |
commit | a0c38153cffbed95786863ad3edd710ec3f79fb0 (patch) | |
tree | 4956890ee5be4d75bfd4db04ede1cc55f703cc8a | |
parent | 4d3d1a9e935af44277e19c47004903fb43cbbde1 (diff) |
refactor: remove living cell count from statusline
-rw-r--r-- | src/game/game.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index 0fe0ff1..3f76b05 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -59,8 +59,7 @@ void Game::on_start() noexcept _status_manager->set_section_title(StatusLineSection::D, "Paused: "); _status_manager->set_section_title(StatusLineSection::E, "Generation: "); _status_manager->set_section_title(StatusLineSection::F, "Generation speed: "); - _status_manager->set_section_title(StatusLineSection::G, "Living cells: "); - _status_manager->set_section_title(StatusLineSection::H, "Window size: "); + _status_manager->set_section_title(StatusLineSection::G, "Window size: "); const auto center_position = Vector2( {.x = static_cast<Vector2::Value>(scene_size.get_width()) / 2, @@ -84,10 +83,8 @@ void Game::on_start() noexcept _status_manager->set_section_body(StatusLineSection::F, "0"); - _status_manager->set_section_body(StatusLineSection::G, "0"); - _status_manager->set_section_body( - StatusLineSection::H, + StatusLineSection::G, fmt::format("{}x{}", scene_size.get_width(), scene_size.get_height())); _commands["open"] = CommandInfo( @@ -326,10 +323,6 @@ void Game::_on_normal_mode_update() noexcept StatusLineSection::F, fmt::format("{}/s", _generations_per_second)); - _status_manager->set_section_body( - StatusLineSection::G, - fmt::format("{}", _living_cell_positions.size())); - const auto time_now = std::chrono::system_clock::now(); if (_generation_tracker->get_is_paused() && !is_generation_stepping) |