-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwindowUniMod.h
144 lines (137 loc) · 3.51 KB
/
windowUniMod.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// âûíåñåì âñå â îòäåëüíûé ôàéë, ê ÷åìó ìó÷àòüñÿ.
struct wddControl
{
int flags0;
int group;
int controlType;
int status;
struct wndStruct* wndPtr;
int BgColor;
void* imageH;
int EnabledRectColor;
void* imageEnabledH;
int HiliteColor;
void* imageHiliteH;
int DisabledRectColor;
void* imageDisabledH;
int SelectedColor;
void* imageSelectedH;
int offsetX;
int offsetY;
int TextColor;
wchar_t String[60];
int field_C0;
int field_C4;
void *FontPtr;
wchar_t tooltipStr[62];
int field_148;
};
struct wndStruct
{
int wndId;
int flags;
int width;
int height;
int screenLeft;
int screenTop;
int screenRight;
int screenBottom;
void *someData;
wddControl drawData;
int wndIdMB;
void *wndProc;
void *wndProcPre;
void *drawFn;
void *onHoverFnMB;
struct wndStruct *nextWnd;
struct wndStruct *nextSibilingMB;
struct wndStruct *parentWindow;
struct wndStruct *firstChild;
};
struct listBoxDataStruct
{
short maxLines; /// ïîõîæå êîëè÷åñòâî ñòðî÷åê õîòÿ õç
short LineHeight; //âûñîòà îäíîé ñòðî÷êè
int Param_3;
int Bool_4;/// åñëè íå 0 - òî ïîõîæå ìîæåò óâåëè÷èâàòñÿ â ðàçìåðàõ âûçûâàÿ 0x401B ðîäèòåëÿ (èëè ñåáÿ)
int Param_5;// bool - åñòü ñêðîëëáàð
int Param_6;//0x10
int LineCanUnSelected;
/// ýòî óæå ïîñëå ñîçäàíèÿ ( â ñòðóêòóðå íå íóæíî, äëÿ ñïðàâêè)
void *SomeDataPtr; // +18 - óêàçàòåëü íà áóôåð ñ äàííûìè
wndStruct *buttonUp; // åñëè åñòü ñêðîëëáàð òî êíîïêà ââåðõ
wndStruct *buttonDown; // åñëè åñòü ñêðîëëáàð òî êíîïêà âíèç
wndStruct *slider; // óêàçàòåëü íà ñàì ñêðîëëáàð
int unk28;
short freeLinesCount2C; //+2C
short var2E;// ìîæåò ïåðâûé/ïîñëåäíèé ñâîáîäíûé â ñïèñêå
int lineSelectIdx;
short unk_34;
short unk_36;
};
struct editBoxDataStruct
{
//ñàìè äàííûå - äîëæíû áûòü ïåðâûìè è â âåðíîì ïîðÿäêå
wchar_t Buf[0x100];
wchar_t Buf2[0x100];
int Password; // ïîêàçûâàòü *****
int onlyNumbers; // ïðîâåðÿòü ÷òî ÷èñëà
int onlyAlphaNum; // ïðîâåðÿòü ÷òî áóêâû
int Param_6;
short maxLen;//0x410 - MaxLenMB
short entryWidth; // øèðèíà áîêñà äëÿ ââîäà (îáùàÿ øèðèíà - ñ ïîäïèñüþ)
int Param_x414;
int Param_x418;
int Param_x41C;//Len - çàäàåòñÿ àâòîìàòè÷åñêè
};
struct scrollBoxDataStruct
{
int minValue;
int maxValue;
int stepValue;
int Value;
};
struct staticTextDataStruct
{
//ñàìè äàííûå - äîëæíû áûòü ïåðâûìè è â âåðíîì ïîðÿäêå
wchar_t*DataPtr;
int BoolA;
int BoolB;
size_t Size;
wchar_t Buf[]; // ÷èñòî ñòóäèéíîå æóëüíè÷åñòâî - ãîâîðèì ÷òî çäåñü áóäåò ñòðîêà, íî íå ãîâîðèì ðàçìåð
};
enum wndControlType
{
ctPushButton=0x1, // ñòðàííî èìååò åùå 0x100
ctRadioButton=0x2, // ñòðàííî èìååò åùå 0x100
ctCheckBox=0x4, // ñòðàííî èìååò åùå 0x100
ctVerticalSlider=0x8,
ctHorizontalSlider=0x10,
ctListBox=0x20,
ctEditBox=0x80,
ctStaticText=0x800,
ctProgressBar=0x1000,
ctUser=0x2000,
};
enum wndFlags
{
wf_1=0x1,
wfSelected=0x2,
wf_4=0x4,
wfEnabled=0x8,
wfHidden=0x10,
wfAbove=0x20,
wfBelow=0x40,
wfImage=0x80,
wf_100=0x100,
wfNoInput=0x200,
wfNoFocus=0x400,
wf_800=0x800,
wfBorder=0x1000,
wf_2000=0x2000,
wfOneLine=0x4000,
};
extern wndStruct *wndGetHandleByLua(int idx);
extern void *(__cdecl *noxCallWndProc)(void* Window,int Msg,int A,int B);
extern void *(__cdecl *noxWndLoad)(char const *WndName,void *WndProc);
extern int (__cdecl *noxWndGetPostion) (void* Window,int *xLeft,int *yTop);