-
Notifications
You must be signed in to change notification settings - Fork 5
/
NameMenus.h
35 lines (34 loc) · 934 Bytes
/
NameMenus.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
#pragma once
#include "MeguMenus.h"
#include "MeguButton.h"
#include "SDL_include.h"
#include"Items_library.h"
#include <map>
#include "TextEdit.h"
namespace widgets{
class NameMenus
{
typedef int ID;
public:
NameMenus(const int &x, const int &y, const int &width, const int &height, SDL_Texture *newtexture, SDL_Renderer *renderer, const bool &mini);
~NameMenus();
void disableMenu();
void callMenu();
void Render(SDL_Renderer *renderer);
widgets::button_container controls;
std::vector<TextEdit> text_edits;
protected:
SDL_Texture* loadTexture(std::string path, SDL_Renderer *renderer);
bool visible;
SDL_Rect rect;
SDL_Texture *texture;
rapidxml::file<> *hxmlFile;
rapidxml::xml_document<> hdoc;
rapidxml::xml_node<> *hpRoot;
rapidxml::xml_node<> *pNode;
rapidxml::xml_node<> *sNode;
rapidxml::xml_node<> *dNode;
rapidxml::xml_node<> *nNode;
rapidxml::xml_node<> *overlayNode;
};
}