forked from 0xcds4r/build69-gtasa2.0
-
Notifications
You must be signed in to change notification settings - Fork 3
/
dialog.h
68 lines (53 loc) · 1.17 KB
/
dialog.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
//
// Powered by tapy.me/weikton
//
#pragma once
#define DIALOG_STYLE_MSGBOX 0
#define DIALOG_STYLE_INPUT 1
#define DIALOG_STYLE_LIST 2
#define DIALOG_STYLE_PASSWORD 3
#define DIALOG_STYLE_TABLIST 4
#define DIALOG_STYLE_TABLIST_HEADERS 5
#include <string>
template <typename T>
std::string to_string(T value)
{
std::ostringstream os ;
os << value ;
return os.str() ;
}
class CDialogWindow
{
public:
CDialogWindow();
~CDialogWindow() {};
void Render();
void Clear();
void Show(bool bShow);
void SetInfo(char* szInfo, int length);
void MakeList();
void MakeChildForList();
void MakeListHeaders();
void PutListHeadersTitle();
void StyleColorsDialog(float roundSize);
bool IsShowing() { return m_bIsActive; };
public:
bool m_bIsActive;
uint8_t m_byteDialogStyle;
uint16_t m_wDialogID;
char m_utf8Title[64*3 + 1];
char* m_putf8Info;
char* m_pszInfo;
char m_utf8Button1[64*3 + 1];
char m_utf8Button2[64*3 + 1];
float m_fSizeX;
float m_fSizeY;
int m_bSL;
uint8_t m_iSelectedItem;
std::string m_strSelectedItemText;
int m_selectedItem;
int m_iNumberOfTaps;
uint32_t m_lastTimeTap;
uint32_t m_touchDownTime;
bool m_bSplitted;
};