29 lines
637 B
C++
29 lines
637 B
C++
#pragma once
|
|
#include "constants.hpp"
|
|
#include <guecs/ui.hpp>
|
|
#include "camera.hpp"
|
|
#include <SFML/Audio/Sound.hpp>
|
|
|
|
namespace storyboard {
|
|
|
|
struct UI {
|
|
guecs::UI $ui;
|
|
sf::RenderTexture $view_texture;
|
|
sf::Sprite $view_sprite;
|
|
cinematic::Camera $camera;
|
|
std::shared_ptr<sf::Sound> $audio;
|
|
std::string $zoom_target = "a";
|
|
int $moving = false;
|
|
std::vector<std::string> $cell_names;
|
|
|
|
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();
|
|
void track_audio();
|
|
};
|
|
|
|
}
|