forked from qdsteam/sampmodmobile
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdialog.h
46 lines (35 loc) · 783 Bytes
/
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
#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
class CDialogWindow
{
public:
CDialogWindow();
~CDialogWindow();
void Render();
void Clear();
void Show(bool bShow);
void SetInfo(char* szInfo, int length);
void AddListItemsAsText();
void DrawFormattedText();
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* szTabInfo;
char m_utf8Button1[64*3 + 1];
char m_utf8Button2[64*3 + 1];
float m_fSizeX;
float m_fSizeY;
int passEntering;
int fxdialog;
int m_selectedItem;
int m_bSL;
};