Very early prototype of the ritual crafting UI, but it needs its own thing.
This commit is contained in:
parent
a6d83db20c
commit
f1cc9f86c1
6 changed files with 109 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue