aboutsummaryrefslogtreecommitdiff
path: root/src/game/components/statusline.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/components/statusline.hpp')
-rw-r--r--src/game/components/statusline.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/components/statusline.hpp b/src/game/components/statusline.hpp
index 8c1969b..e009174 100644
--- a/src/game/components/statusline.hpp
+++ b/src/game/components/statusline.hpp
@@ -3,6 +3,7 @@
#include "interfaces/matrix.hpp"
#include "interfaces/statusline.hpp"
+#include "engine/data/style.hpp"
#include "engine/data/vector2.hpp"
#include <memory>
@@ -26,16 +27,20 @@ public:
auto get_background_color() const noexcept -> uint32_t override;
- void set_status(
+ void set_section_status(
StatusLineSection section,
const std::string_view &status,
int32_t start) noexcept override;
void set_section_length(StatusLineSection section, int32_t length) noexcept override;
+ void
+ set_section_style(StatusLineSection section, const Style &style) noexcept override;
+
private:
std::shared_ptr<ComponentMatrix> _component_matrix;
std::unordered_map<StatusLineSection, int32_t> _section_lengths;
+ std::unordered_map<StatusLineSection, Style> _section_styles;
bool _need_render;
void