diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-12 14:32:03 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:01 +0200 |
commit | 4d3d1a9e935af44277e19c47004903fb43cbbde1 (patch) | |
tree | 7716449ffe1111e34495e7f43964ae5d6bf2fdfc /src | |
parent | e0021112e98639baeee0aae3a483bb725cc99d57 (diff) |
refactor: improve scene size display in statusline
Diffstat (limited to 'src')
-rw-r--r-- | src/game/game.cpp | 5 | ||||
-rw-r--r-- | src/game/status_manager.cpp | 2 |
2 files changed, 2 insertions, 5 deletions
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<IStatusLine> &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( |