aboutsummaryrefslogtreecommitdiff
path: root/src/input_actions.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-10 21:16:05 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:55 +0200
commit4c6fa6bfd37862acfbe377bb95561da4b4ce8cc9 (patch)
tree2e73b109c50f4ebedc89a8c2eb881fa654cc2a37 /src/input_actions.cpp
parent19f5d93dba74dda1fd1a9211707d98b6dd9b19ba (diff)
feat: make status bar visible from game start
Diffstat (limited to 'src/input_actions.cpp')
-rw-r--r--src/input_actions.cpp7
1 files changed, 5 insertions, 2 deletions
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 <fmt/core.h>
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())));
};
}