-
Notifications
You must be signed in to change notification settings - Fork 2
/
sfml_about_screen.h
62 lines (37 loc) · 917 Bytes
/
sfml_about_screen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef SFML_ABOUT_SCREEN_H
#define SFML_ABOUT_SCREEN_H
#include "game_state.h"
#include "sfml_zen_bar.h"
#include <SFML/Graphics.hpp>
class sfml_about_screen {
public:
sfml_about_screen(const int close_at = -1);
void exec();
void stretch_bg();
///@param game state to change to
void close(game_state s);
///Close the game
void close();
private:
double m_x = {0};
double m_y = {0};
void display();
void update();
sf::RenderWindow& m_window;
sf::Text m_header;
sf::Clock deltaclock;
sf::Time deltatime;
sf::Sprite m_bg_sprite;
sf::Text m_text;
sf::Text m_copyright_text;
int m_close_at;
sf::Font m_font;
sf::Font m_zen_font;
sfml_zen_bar m_zen_bar;
sf::Sprite m_zen_icon;
void display_assets();
void prepare_assets();
};
std::vector<std::string> get_team_names() noexcept;
std::string get_team_name_string();
#endif // SFML_ABOUT_SCREEN_H