Now have a body damage UI to show damage to each body part.
This commit is contained in:
parent
36a49ef768
commit
ae0d205037
5 changed files with 81 additions and 10 deletions
18
src/gui/body_ui.hpp
Normal file
18
src/gui/body_ui.hpp
Normal 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);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue