Added a Background guecs component.
This commit is contained in:
parent
69a810b5a1
commit
3a6ba8445a
7 changed files with 78 additions and 56 deletions
|
@ -1,18 +1,21 @@
|
|||
#pragma once
|
||||
#include "panel.hpp"
|
||||
#include "levelmanager.hpp"
|
||||
#include "constants.hpp"
|
||||
#include <deque>
|
||||
#include "texture.hpp"
|
||||
#include "guecs.hpp"
|
||||
|
||||
namespace gui {
|
||||
class StatusUI : public Panel {
|
||||
class StatusUI {
|
||||
public:
|
||||
std::vector<Element> $log_list;
|
||||
guecs::UI $gui;
|
||||
DinkyECS::Entity $log_to;
|
||||
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);
|
||||
void render(TexturePack &textures);
|
||||
void draw(sf::RenderWindow &window);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue