You now have blood on your screen when below half health.
This commit is contained in:
parent
1c8f542c21
commit
d2700d2928
12 changed files with 90 additions and 13 deletions
|
@ -2,13 +2,17 @@
|
|||
#include "panel.hpp"
|
||||
#include "levelmanager.hpp"
|
||||
#include "constants.hpp"
|
||||
#include <deque>
|
||||
|
||||
namespace gui {
|
||||
class StatusUI : public Panel {
|
||||
public:
|
||||
std::vector<Element> $log_list;
|
||||
std::deque<std::string> $messages;
|
||||
GameLevel $level;
|
||||
StatusUI(GameLevel level);
|
||||
void create_render();
|
||||
void update_level(GameLevel &level) { $level = level; }
|
||||
void log(std::string msg);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue