-
Notifications
You must be signed in to change notification settings - Fork 5
/
SizeMenus.h
34 lines (33 loc) · 877 Bytes
/
SizeMenus.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
#pragma once
#include "MeguMenus.h"
#include "MeguButton.h"
#include "SDL_include.h"
#include"Items_library.h"
#include <map>
#include "TextEdit.h"
namespace widgets{
class SizeMenus
{
typedef int ID;
public:
SizeMenus(const int &x, const int &y, const int &width, const int &height, SDL_Texture *newtexture, SDL_Renderer *renderer);
~SizeMenus();
void disableMenu();
void callMenu();
void Render(SDL_Renderer *renderer);
std::vector<MeguButton> buttons;
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;
};
}