Now have a body damage UI to show damage to each body part.

This commit is contained in:
Zed A. Shaw 2026-03-29 14:43:05 -04:00
parent 36a49ef768
commit ae0d205037
5 changed files with 81 additions and 10 deletions

18
src/gui/body_ui.hpp Normal file
View file

@ -0,0 +1,18 @@
#pragma once
#include "constants.hpp"
#include <deque>
#include "graphics/textures.hpp"
#include <guecs/ui.hpp>
#include "gui/guecstra.hpp"
namespace gui {
class BodyUI {
public:
guecs::UI $gui{};
void init(size_t x, size_t y, size_t width, size_t height);
void render(sf::RenderWindow &window);
void update();
bool mouse(float x, float y, guecs::Modifiers mods);
};
}