The log is now moved to the map, but changing StatusUI caused a weird compiler error so need to remove logs from that separate.

This commit is contained in:
Zed A. Shaw 2025-05-16 00:43:45 -04:00
parent a2246d2b71
commit d6e64dd06b
5 changed files with 40 additions and 29 deletions

View file

@ -3,17 +3,22 @@
#include "textures.hpp"
#include <guecs/ui.hpp>
#include "tilemap.hpp"
#include <string>
namespace gui {
class MapViewUI {
public:
guecs::UI $gui;
GameLevel $level;
DinkyECS::Entity $log_to;
textures::SpriteTexture $paper;
std::deque<std::wstring> $messages;
MapViewUI(GameLevel &level);
void init();
void render(sf::RenderWindow &window, int compass_dir);
void update_level(GameLevel &level);
void log(std::wstring msg);
void update();
};
}