Initially implemented 'ritual blanket' UI for the crafting of rituals in combat.

This commit is contained in:
Zed A. Shaw 2025-03-19 22:10:17 -04:00
parent 263b7741f6
commit 65c9e4b0c6
5 changed files with 56 additions and 30 deletions

View file

@ -4,23 +4,23 @@
#include <deque>
#include "textures.hpp"
#include "guecs.hpp"
#include "ritual_ui.hpp"
namespace gui {
class StatusUI {
public:
sf::IntRect $ritual_closed_rect{{0,0},{380,720}};
textures::SpriteTexture $ritual_ui;
components::Animation $ritual_anim;
guecs::UI $gui;
DinkyECS::Entity $log_to;
std::map<std::string, size_t> $slots;
std::deque<std::string> $messages;
GameLevel $level;
RitualUI $ritual_ui;
StatusUI(GameLevel level);
void select_slot(DinkyECS::Entity ent, std::any data);
void select_ritual();
void update_level(GameLevel &level);
bool mouse(float x, float y);
void log(std::string msg);
void init();
void render(sf::RenderWindow &window);