From 4d3d1a9e935af44277e19c47004903fb43cbbde1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Jun 2022 14:32:03 +0200 Subject: refactor: improve scene size display in statusline --- src/game/game.cpp | 5 +---- src/game/status_manager.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/game/game.cpp b/src/game/game.cpp index 893be97..0fe0ff1 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -88,10 +88,7 @@ void Game::on_start() noexcept _status_manager->set_section_body( StatusLineSection::H, - fmt::format( - "Width {} Height {}", - scene_size.get_width(), - scene_size.get_height())); + fmt::format("{}x{}", scene_size.get_width(), scene_size.get_height())); _commands["open"] = CommandInfo( {.option_cnt = 1U, diff --git a/src/game/status_manager.cpp b/src/game/status_manager.cpp index ac86e0a..b30bd82 100644 --- a/src/game/status_manager.cpp +++ b/src/game/status_manager.cpp @@ -15,7 +15,7 @@ void StatusManager::bind(const std::shared_ptr &statusline) noexcep _statusline->set_section_length(StatusLineSection::E, 25); _statusline->set_section_length(StatusLineSection::F, 30); _statusline->set_section_length(StatusLineSection::G, 30); - _statusline->set_section_length(StatusLineSection::H, 30); + _statusline->set_section_length(StatusLineSection::H, 20); } void StatusManager::set_section_title( -- cgit v1.2.3-18-g5258