The ritual UI is now in its own thing, but not hooked up yet.
This commit is contained in:
parent
f1cc9f86c1
commit
263b7741f6
5 changed files with 156 additions and 73 deletions
32
ritual_ui.hpp
Normal file
32
ritual_ui.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
#include "levelmanager.hpp"
|
||||
#include "constants.hpp"
|
||||
#include <deque>
|
||||
#include "textures.hpp"
|
||||
#include "guecs.hpp"
|
||||
|
||||
namespace gui {
|
||||
enum class RitualUIState {
|
||||
OPEN=0,
|
||||
CLOSED=1,
|
||||
OPENING=2,
|
||||
CLOSING=3
|
||||
};
|
||||
|
||||
class RitualUI {
|
||||
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;
|
||||
GameLevel $level;
|
||||
|
||||
RitualUI(GameLevel level);
|
||||
void select_ritual();
|
||||
void init();
|
||||
void render(sf::RenderWindow &window);
|
||||
void update();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue