From a0c38153cffbed95786863ad3edd710ec3f79fb0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Jun 2022 14:36:37 +0200 Subject: refactor: remove living cell count from statusline --- src/game/game.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/game/game.cpp') 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(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) -- cgit v1.2.3-18-g5258