Added a Background guecs component.

This commit is contained in:
Zed A. Shaw 2025-02-18 23:08:04 -05:00
parent 69a810b5a1
commit 3a6ba8445a
7 changed files with 78 additions and 56 deletions

View file

@ -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);
};
}