Now have a simple storyboard system that can display an image and move with the camera to different cells.
This commit is contained in:
parent
068eeeecd1
commit
4bda2ee01c
10 changed files with 118 additions and 40 deletions
25
storyboard/ui.hpp
Normal file
25
storyboard/ui.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
#include "constants.hpp"
|
||||
#include <guecs/ui.hpp>
|
||||
#include "camera.hpp"
|
||||
|
||||
namespace storyboard {
|
||||
|
||||
struct UI {
|
||||
guecs::UI $ui;
|
||||
sf::RenderTexture $view_texture;
|
||||
sf::Sprite $view_sprite;
|
||||
cinematic::Camera $camera;
|
||||
std::string $zoom_target;
|
||||
bool zoomed = false;
|
||||
|
||||
UI();
|
||||
|
||||
void init();
|
||||
void render(sf::RenderWindow &window);
|
||||
bool mouse(float x, float y, guecs::Modifiers mods);
|
||||
void zoom(const std::string &cell_name);
|
||||
void reset();
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue