From 4c6fa6bfd37862acfbe377bb95561da4b4ce8cc9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 10 Mar 2022 21:16:05 +0100 Subject: feat: make status bar visible from game start --- src/input_actions.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/input_actions.cpp') diff --git a/src/input_actions.cpp b/src/input_actions.cpp index 5df6e5f..7a6976d 100644 --- a/src/input_actions.cpp +++ b/src/input_actions.cpp @@ -1,5 +1,7 @@ #include "input_actions.hpp" +#include "strings.hpp" + #include namespace InputActions @@ -31,8 +33,9 @@ Callback move_cursor(const Vector2 &direction, cursor_controller->move_to(new_position); - scene->write_status( - fmt::format("X: {} Y {}", new_position.get_x(), new_position.get_y())); + scene->write_status(fmt::format(STATUS_BAR_COORDINATES, + fmt::arg("x", new_position.get_x()), + fmt::arg("y", new_position.get_y()))); }; } -- cgit v1.2.3-18-g5258