The ritual blanket now has the new animation and gained the ability to play the animation reversed for the closing animation.

This commit is contained in:
Zed A. Shaw 2026-02-23 12:05:56 -05:00
parent 1a9c395ae6
commit b504afef2a
3 changed files with 60 additions and 11 deletions

View file

@ -5,6 +5,7 @@
#include <guecs/ui.hpp>
#include "rituals.hpp"
#include "simplefsm.hpp"
#include "animate2.hpp"
namespace gui {
namespace ritual {
@ -34,7 +35,7 @@ namespace gui {
public:
sf::IntRect $ritual_closed_rect{{0,0},{380,720}};
sf::IntRect $ritual_open_rect{{380 * 2,0},{380,720}};
components::Animation $ritual_anim;
animate2::Animate2 $ritual_anim;
guecs::UI $gui;
textures::SpriteTexture $ritual_ui;
::ritual::Engine $ritual_engine;
@ -61,6 +62,7 @@ namespace gui {
void run_crafting_engine();
void complete_combine();
void update_selection_state();
void play_blanket(const std::string& form);
::ritual::Blanket& blanket();
};
}