-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSysSet.h
86 lines (74 loc) · 1.57 KB
/
SysSet.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#pragma once
#include "Entities.h"
class System {
public:
//drawspace
sf::RenderWindow window;
Entity** screens;
sf::Texture potxt;
sf::Sprite phone_outline;
sf::RectangleShape l_scaff;
sf::RectangleShape r_scaff;
//events
sf::Event ev;
bool active_funcs[FPS_LEN];
bool fin[6];
float ph_dists[6];
sf::Clock run_time;
std::stack<Entity*> last_screen;
std::stack<int> last_len;
Entity* current_screen;
int current_len;
Entity* selected_entity;
std::string search_str;
bool cursor_on;
//loaded assets
sf::Font font;
std::map<const char*, sf::Texture> textures;
System();
void run();
private:
void init();
void textures_setup();
void screens_setup();
void home_setup();
void menu_setup();
void favorites_setup();
void feed_setup();
void single_setup();
void unimp_setup();
void event_handler();
void text_event();
void mouse_event();
void do_funcs();
//all
bool back();
//home screen
bool cursor_flicker();
bool raise_ph_styles();
bool slide_ph_styles_open();
bool lower_ph_styles();
bool slide_ph_styles_closed();
bool open_menu();
bool menu_slide();
bool close_menu();
//menu screen
bool raise_profile();
bool slide_profile();
bool lower_profile();
bool raise_advsearch();
bool slide_advsearch();
bool lower_advsearch();
bool raise_upload();
bool slide_upload();
bool lower_upload();
bool raise_favs();
bool slide_favs();
bool lower_favs();
bool raise_config();
bool slide_config();
bool lower_config();
bool unimp();
bool close();
void draw();
};