UI is now working the same as last time but using GUECS.
This commit is contained in:
parent
70c2ce7d51
commit
8f3a3c10c2
5 changed files with 41 additions and 18 deletions
6
gui.hpp
6
gui.hpp
|
@ -13,15 +13,15 @@ class GUI {
|
|||
std::vector<string> _lines;
|
||||
SFMLBackend &sfml;
|
||||
guecs::UI $gui;
|
||||
std::wstring $status;
|
||||
DinkyECS::Entity $hp_bar;
|
||||
|
||||
public:
|
||||
|
||||
GUI(SFMLBackend &backend);
|
||||
|
||||
// prevent copy
|
||||
GUI(GUI &g) = delete;
|
||||
|
||||
void output(const string msg);
|
||||
void update_status(GameEngine &game);
|
||||
|
||||
void main_loop();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue