-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextBoxManager.hpp
40 lines (27 loc) · 912 Bytes
/
TextBoxManager.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
#ifndef TEXTBOXMANAGER_HPP
#define TEXTBOXMANAGER_HPP
#include <map>
#include <iostream>
#include "TextBox.hpp"
#include "Resources.hpp"
#include <SFML/Graphics.hpp>
class TextBoxManager {
public:
//TextBoxManager();
static std::string getText(std::string s);
static void load();
static void loadTexts(std::string fileName);
static sf::Vector2f getSize();
static bool getTextFinished();
static void processEvent(sf::Event event);
static void setTexture(int value);
static void setText(std::string name);
static void setSize(float sizeX, float sizeY);
static void setText(std::string name, int charSize);
static void drawText(sf::RenderTarget *window);
static void drawText(sf::RenderTarget *window, float posX, float posY);
private:
static TextBox _textBox;
static std::map<std::string, std::string> texts;
};
#endif // TEXTBOXMANAGER_HPP