Very early prototype of the ritual crafting UI, but it needs its own thing.

This commit is contained in:
Zed A. Shaw 2025-03-19 00:14:43 -04:00
parent a6d83db20c
commit f1cc9f86c1
6 changed files with 109 additions and 7 deletions

View file

@ -6,8 +6,20 @@
#include "guecs.hpp"
namespace gui {
enum class RitualUIState {
OPEN=0,
CLOSED=1,
OPENING=2,
CLOSING=3
};
class StatusUI {
public:
sf::IntRect $ritual_closed_rect{{0,0},{380,720}};
sf::IntRect $ritual_open_rect{{380 * 2,0},{380,720}};
RitualUIState $ritual_state = RitualUIState::CLOSED;
textures::SpriteTexture $ritual_ui;
components::Animation $ritual_anim;
guecs::UI $gui;
DinkyECS::Entity $log_to;
std::map<std::string, size_t> $slots;
@ -16,6 +28,7 @@ namespace gui {
StatusUI(GameLevel level);
void select_slot(DinkyECS::Entity ent, std::any data);
void select_ritual();
void update_level(GameLevel &level);
void log(std::string msg);
void init();