0
|
1 #pragma once
|
|
2 #include "GUIButton.h"
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8 /* 251 */
|
|
9 enum MENU_STATE : __int32
|
|
10 {
|
|
11 MENU_MAIN = 0x0,
|
|
12 MENU_NEWGAME = 0x1,
|
|
13 MENU_CREDITS = 0x2,
|
|
14 MENU_SAVELOAD = 0x3,
|
3
|
15 MENU_FINISHED = 0x4,
|
0
|
16 MENU_5 = 0x5,
|
|
17 MENU_CREATEPARTY = 0x6,
|
|
18 MENU_7 = 0x7,
|
|
19 MENU_Credits = 0x8,
|
|
20 MENU_LOAD = 0x9,
|
|
21 MENU_10 = 0xA,
|
|
22 };
|
|
23
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28
|
|
29
|
|
30
|
|
31
|
|
32 /* 298 */
|
2
|
33 enum WindowType: unsigned __int32
|
0
|
34 {
|
2
|
35 WINDOW_null = 0,
|
|
36 WINDOW_MainMenu = 0x1,
|
0
|
37 WINDOW_CharacterRecord = 0x4,
|
|
38 WINDOW_Options = 0x6,
|
|
39 WINDOW_Book = 0x9,
|
2
|
40 WINDOW_A = 10,
|
|
41 WINDOW_11 = 17,
|
|
42 WINDOW_12 = 18,
|
|
43 WINDOW_13 = 19,
|
0
|
44 WINDOW_Chest = 0x14,
|
3
|
45 WINDOW_MainMenu_Load = 0x18,
|
0
|
46 WINDOW_HouseInterior = 0x19,
|
2
|
47 WINDOW_1A = 26,
|
|
48 WINDOW_1B = 27,
|
|
49 WINDOW_1E = 30,
|
|
50 WINDOW_1F = 31,
|
0
|
51 WINDOW_FinalWindow = 0x46,
|
3
|
52 WINDOW_5A = 0x5A,
|
4
|
53 WINDOW_5E = 0x5E,
|
0
|
54 WINDOW_KeyMappingOptions = 0x69,
|
2
|
55 WINDOW_VideoOptions = 0x6A
|
0
|
56 };
|
|
57
|
|
58 /* 155 */
|
|
59 #pragma pack(push, 1)
|
|
60 struct GUIWindow
|
|
61 {
|
|
62 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, unsigned int uControlID, unsigned int uControlParam, unsigned __int8 uHotkey, const char *pName, Texture *pTextures, ...);
|
|
63 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2);
|
|
64 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8);
|
|
65 char DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor);
|
|
66 char *DrawText2(GUIFont *a2, unsigned int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
|
|
67 char *_4B1854(__int64 a2);
|
|
68 void _4B3157();
|
|
69 GUIButton *_411621();
|
|
70 void InitializeBookView();
|
|
71 void _415551(int arg0);
|
|
72 GUIButton *GetControl(unsigned int uID);
|
|
73 void Release();
|
|
74 void _41D08F(int a2, int a3, int a4, int a5);
|
|
75 char _41D3B7();
|
|
76 char _41D73D_draw_buff_tooltip();
|
|
77
|
2
|
78 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eType, int a4, int a5);
|
0
|
79
|
|
80 unsigned int uFrameX;
|
|
81 unsigned int uFrameY;
|
|
82 unsigned int uFrameWidth;
|
|
83 unsigned int uFrameHeight;
|
|
84 unsigned int uFrameZ;
|
|
85 unsigned int uFrameW;
|
2
|
86 WindowType eWindowType;
|
0
|
87 void *ptr_1C;
|
|
88 unsigned int uNumControls;
|
|
89 int field_24;
|
|
90 int field_28;
|
|
91 int field_2C_focus_id;
|
|
92 int field_30;
|
|
93 int field_34;
|
|
94 int field_38;
|
|
95 int field_3C;
|
|
96 int field_40;
|
|
97 int field_44;
|
|
98 char *str_48;
|
|
99 GUIButton *pControlsHead;
|
|
100 GUIButton *pControlsTail;
|
|
101 };
|
|
102 #pragma pack(pop)
|
|
103
|
|
104
|
|
105
|
|
106
|
|
107
|
|
108
|
|
109 /* 296 */
|
|
110 enum UIMessageType
|
|
111 {
|
|
112 UIMSG_00 = 0x0,
|
|
113 UIMSG_ChangeGameState = 0x5,
|
|
114 UIMSG_PlayArcomage = 0x1D,
|
3
|
115 UIMSG_MainMenu_ShowPartyCreationWnd = 0x36,
|
|
116 UIMSG_MainMenu_ShowLoadWindow = 0x37,
|
|
117 UIMSG_ShowCredits = 0x38,
|
2
|
118 UIMSG_ExitToWindows = 0x39,
|
0
|
119 UIMSG_LoadGame = 0x52,
|
|
120 UIMSG_SaveGame = 0x53,
|
|
121 UIMSG_ShowStatus_DateTime = 0x5C,
|
|
122 UIMSG_ShowStatus_ManaHP = 0x5D,
|
|
123 UIMSG_ShowStatus_Player = 0x5E,
|
|
124 UIMSG_ShowStatus_Food = 0x64,
|
|
125 UIMSG_ShowStatus_Funds = 0x65,
|
|
126 UIMSG_SelectCharacter = 0x6E,
|
|
127 UIMSG_ChangeSoundVolume = 0x6F,
|
|
128 UIMSG_ChangeMusicVolume = 0x70,
|
|
129 UIMSG_CloseBook = 0x71,
|
|
130 UIMSG_SkillUp = 0x79,
|
|
131 UIMSG_StartNewGame = 0x7C,
|
|
132 UIMSG_Game_OpenLoadGameDialog = 0x7D,
|
|
133 UIMSG_Game_OpenOptionsDialog = 0x7F,
|
|
134 UIMSG_SetGraphicsMode = 0x83,
|
|
135 UIMSG_Quit = 0x84,
|
|
136 UIMSG_StartNPCDialogue = 0xA1,
|
|
137 UIMSG_A2 = 0xA2,
|
|
138 UIMSG_A3 = 0xA3,
|
|
139 UIMSG_A4 = 0xA4,
|
|
140 UIMSG_A5 = 0xA5,
|
|
141 UIMSG_A6 = 0xA6,
|
|
142 UIMSG_A7 = 0xA7,
|
|
143 UIMSG_A8 = 0xA8,
|
|
144 UIMSG_A9 = 0xA9,
|
|
145 UIMSG_AA = 0xAA,
|
|
146 UIMSG_AB = 0xAB,
|
|
147 UIMSG_AC = 0xAC,
|
|
148 UIMSG_AD = 0xAD,
|
|
149 UIMSG_AE = 0xAE,
|
|
150 UIMSG_AF = 0xAF,
|
|
151 UIMSG_CycleCharacters = 0xB0,
|
|
152 UIMSG_B1 = 0xB1,
|
|
153 UIMSG_B2 = 0xB2,
|
|
154 UIMSG_B3 = 0xB3,
|
|
155 UIMSG_B4 = 0xB4,
|
|
156 UIMSG_B5 = 0xB5,
|
|
157 UIMSG_B6 = 0xB6,
|
|
158 UIMSG_B7 = 0xB7,
|
|
159 UIMSG_SetTurnSpeed = 0xB8,
|
|
160 UIMSG_ToggleWalkSound = 0xB9,
|
|
161 UIMSG_ChangeVoiceVolume = 0xBA,
|
|
162 UIMSG_ToggleShowDamage = 0xBB,
|
|
163 UIMSG_BC = 0xBC,
|
|
164 UIMSG_BD = 0xBD,
|
|
165 UIMSG_BE = 0xBE,
|
|
166 UIMSG_BF = 0xBF,
|
|
167 UIMSG_C0 = 0xC0,
|
|
168 UIMSG_C1 = 0xC1,
|
|
169 UIMSG_C2 = 0xC2,
|
|
170 UIMSG_C3 = 0xC3,
|
|
171 UIMSG_C4 = 0xC4,
|
|
172 UIMSG_ShowFinalWindow = 0xC5,
|
|
173 UIMSG_C6 = 0xC6,
|
|
174 UIMSG_C7 = 0xC7,
|
|
175 UIMSG_OpenQuestBook = 0xC8,
|
|
176 UIMSG_OpenAutonotes = 0xC9,
|
|
177 UIMSG_OpenMapBook = 0xCA,
|
|
178 UIMSG_OpenCalendar = 0xCB,
|
|
179 UIMSG_CC = 0xCC,
|
|
180 UIMSG_CD = 0xCD,
|
|
181 UIMSG_CE = 0xCE,
|
|
182 UIMSG_CF = 0xCF,
|
|
183 UIMSG_D0 = 0xD0,
|
|
184 UIMSG_D1 = 0xD1,
|
|
185 UIMSG_D2 = 0xD2,
|
|
186 UIMSG_D3 = 0xD3,
|
|
187 UIMSG_D4 = 0xD4,
|
|
188 UIMSG_D5 = 0xD5,
|
|
189 UIMSG_D6 = 0xD6,
|
|
190 UIMSG_OpenHistoryBook = 0xE0,
|
|
191 UIMSG_ToggleAlwaysRun = 0xE1,
|
|
192 UIMSG_ToggleFlipOnExit = 0xE2,
|
|
193 UIMSG_OpenRestUI = 0x199,
|
|
194 UIMSG_OpenKeyMappingOptions = 0x19F,
|
|
195 UIMSG_ResetKeyMapping = 0x1A2,
|
|
196 UIMSG_OpenVideoOptions = 0x1A5,
|
|
197 UIMSG_ToggleBloodsplats = 0x1A6,
|
|
198 UIMSG_ToggleColoredLights = 0x1A7,
|
|
199 UIMSG_ToggleTint = 0x1A8,
|
|
200 };
|
|
201
|
|
202
|
|
203
|
|
204
|
|
205
|
|
206
|
|
207 /* 249 */
|
|
208 #pragma pack(push, 1)
|
|
209 struct GUIMessage
|
|
210 {
|
|
211 enum UIMessageType eType;
|
|
212 int param;
|
|
213 int field_8;
|
|
214 };
|
|
215 #pragma pack(pop)
|
|
216
|
|
217
|
|
218
|
|
219
|
|
220
|
|
221 /* 250 */
|
|
222 #pragma pack(push, 1)
|
|
223 struct GUIMessageQueue
|
|
224 {
|
|
225 inline GUIMessageQueue():
|
|
226 uNumMessages(0)
|
|
227 {}
|
|
228
|
4
|
229 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4);
|
|
230 void SendMessage(UIMessageType msg, int param, unsigned int a4);
|
0
|
231
|
|
232 unsigned int uNumMessages;
|
|
233 GUIMessage pMessages[40];
|
|
234 };
|
|
235 #pragma pack(pop)
|
|
236
|
|
237 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
|
|
238
|
|
239
|
|
240
|
|
241
|
|
242 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb
|
3
|
243 extern struct GUIWindow *pWindow_MainMenu;
|
0
|
244 extern struct GUIWindow pWindowList[20]; |