-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUI.hpp
55 lines (32 loc) · 1.31 KB
/
UI.hpp
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
#include <cmath>
#include <string>
#include <iostream>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include "globalVars.hpp"
#include "Backend.hpp"
#include "macros.hpp"
using namespace sf;
using namespace std;
void startGame();
void loadBoard();
void mainMenu();
void centerscreen(RenderWindow &meniu);
void drawLinks(int i, int j);
void gameOptionsMenu();
void setGameOptionsMenuEntities(Text entries[], Font &myFont, int selection);
void setSelection(int &selection, Event::MouseButtonEvent mouse, Text entries[], Font &myFont);
unsigned linkDots(sf::Event::MouseButtonEvent mouse);
void dificultyMenu();
void numberOfPlayerMenu();
void showWinner(unsigned u);
void settingsMenu();
void setSettingsMenuEntries(Text entries[], Font &font, int &selection, Texture &myTick, RectangleShape &checkBox);
void selectFontMenu();
void setSelectFontMenuEntries(string fonts[], Text entries[], int numOfFonts, int selection, Font &font, View &titleView, View &fontsView);
void setSelectPlayerColorsMenu(Text entries[], RectangleShape colorOptions[][3], Font &font);
void drawColors(RectangleShape colorOptions[][3], bool player, Text title);
void selectPlayerColorsMenu();
void pickColor(Event::MouseButtonEvent mousebutton, RectangleShape colorOptions[][3], Text entries[]);
void resetBackGround();
void PCMode();