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,
|
|
15 MENU_FINISHED = 0x4,
|
|
16 MENU_5 = 0x5,
|
|
17 MENU_CREATEPARTY = 0x6,
|
165
|
18 MENU_NAMEPANELESC = 0x7,
|
|
19 MENU_CREDITSPROC = 0x8,
|
|
20 MENU_LOADINGPROC = 0x9,
|
0
|
21 MENU_10 = 0xA,
|
165
|
22 MENU_CREDITSCLOSE = 0xB,
|
0
|
23 };
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28
|
|
29
|
|
30
|
|
31
|
|
32
|
|
33 /* 298 */
|
|
34 enum WindowType: unsigned __int32
|
|
35 {
|
|
36 WINDOW_null = 0,
|
|
37 WINDOW_MainMenu = 0x1,
|
17
|
38 WINDOW_3 = 0x3,
|
0
|
39 WINDOW_CharacterRecord = 0x4,
|
|
40 WINDOW_Options = 0x6,
|
|
41 WINDOW_Book = 0x9,
|
165
|
42 WINDOW_Dialogue = 0xA,
|
158
|
43 WINDOW_QuickReference = 0xC,
|
|
44 WINDOW_Rest = 0x10,
|
|
45 WINDOW_ChangeLocation = 0x11,
|
|
46 WINDOW_SpellBook = 0x12,
|
|
47 WINDOW_GreetingNPC = 0x13,
|
0
|
48 WINDOW_Chest = 0x14,
|
17
|
49 WINDOW_17 = 0x17,
|
0
|
50 WINDOW_MainMenu_Load = 0x18,
|
|
51 WINDOW_HouseInterior = 0x19,
|
158
|
52 WINDOW_Transition = 0x1A,
|
|
53 WINDOW_1B = 0x1B,
|
|
54 WINDOW_Scroll = 0x1E,
|
|
55 WINDOW_1F = 0x1F,
|
0
|
56 WINDOW_FinalWindow = 0x46,
|
17
|
57 WINDOW_50 = 0x50,
|
|
58 WINDOW_59 = 0x59,
|
0
|
59 WINDOW_5A = 0x5A,
|
17
|
60 WINDOW_5B = 0x5B,
|
|
61 WINDOW_5C = 0x5C,
|
|
62 WINDOW_5D = 0x5D,
|
0
|
63 WINDOW_5E = 0x5E,
|
4
|
64 WINDOW_5F = 0x5F,
|
|
65 WINDOW_60 = 0x60,
|
17
|
66 WINDOW_61 = 0x61,
|
|
67 WINDOW_RestWindow = 0x62,
|
|
68 WINDOW_63 = 0x63,
|
|
69 WINDOW_CharacterWindow_Stats = 0x64,
|
|
70 WINDOW_CharacterWindow_Skills = 0x65,
|
|
71 WINDOW_CharacterWindow_Awards = 0x66,
|
|
72 WINDOW_CharacterWindow_Inventory = 0x67,
|
0
|
73 WINDOW_KeyMappingOptions = 0x69,
|
17
|
74 WINDOW_VideoOptions = 0x6A,
|
|
75 WINDOW_Lloyd = 0xB1,
|
|
76 WINDOW_TownPortal = 0xC3,
|
|
77 WINDOW_QuestBook = 0xC8,
|
|
78 WINDOW_AutonotesBook = 0xC9,
|
|
79 WINDOW_MapsBook = 0xCA,
|
|
80 WINDOW_CalendarBook = 0xCB,
|
92
|
81 WINDOW_HistoryBook = 0xE0,
|
0
|
82 };
|
|
83
|
|
84 /* 155 */
|
|
85 #pragma pack(push, 1)
|
|
86 struct GUIWindow
|
|
87 {
|
|
88 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, ...);
|
|
89 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2);
|
|
90 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8);
|
|
91 char DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor);
|
|
92 char *DrawTitleText(GUIFont *a2, unsigned int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
|
|
93 char *_4B1854(__int64 a2);
|
|
94 void _4B3157();
|
11
|
95 GUIButton *OpenSpellBook();
|
0
|
96 void InitializeBookView();
|
|
97 void DrawMessageBox(int arg0);
|
|
98 GUIButton *GetControl(unsigned int uID);
|
|
99 void Release();
|
|
100 void _41D08F(int a2, int a3, int a4, int a5);
|
|
101 char DrawQuickCharRecord();
|
|
102 char _41D73D_draw_buff_tooltip();
|
|
103
|
|
104 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eType, int a4, int a5);
|
|
105
|
|
106 unsigned int uFrameX;
|
|
107 unsigned int uFrameY;
|
|
108 unsigned int uFrameWidth;
|
|
109 unsigned int uFrameHeight;
|
|
110 unsigned int uFrameZ;
|
|
111 unsigned int uFrameW;
|
|
112 WindowType eWindowType;
|
|
113 void *ptr_1C;
|
|
114 unsigned int uNumControls;
|
|
115 int field_24;
|
|
116 int pNumPresenceButton;
|
|
117 int pCurrentPosActiveItem;
|
|
118 int field_30;
|
|
119 int field_34;
|
|
120 int pStartingPosActiveItem;
|
|
121 int field_3C;
|
|
122 int field_40;
|
|
123 int field_44;
|
|
124 char *Hint;
|
|
125 GUIButton *pControlsHead;
|
|
126 GUIButton *pControlsTail;
|
|
127 };
|
|
128 #pragma pack(pop)
|
|
129
|
|
130
|
|
131
|
|
132
|
|
133
|
|
134
|
|
135 /* 296 */
|
|
136 enum UIMessageType
|
|
137 {
|
|
138 UIMSG_00 = 0x0,
|
|
139 UIMSG_ChangeGameState = 0x5,
|
151
|
140 UIMSG_A = 0xA,
|
|
141 UIMSG_C = 0xC,
|
|
142 UIMSG_E = 0xE,
|
|
143 UIMSG_F = 0xF,
|
3
|
144 UIMSG_11 = 0x11,
|
151
|
145 UIMSG_17 = 0x17,
|
|
146 UIMSG_19 = 0x19,
|
|
147 UIMSG_1B = 0x1B,
|
|
148 UIMSG_1C = 0x1C,
|
0
|
149 UIMSG_PlayArcomage = 0x1D,
|
151
|
150 UIMSG_33 = 0x33,
|
0
|
151 UIMSG_MainMenu_ShowPartyCreationWnd = 0x36,
|
|
152 UIMSG_MainMenu_ShowLoadWindow = 0x37,
|
|
153 UIMSG_ShowCredits = 0x38,
|
|
154 UIMSG_ExitToWindows = 0x39,
|
3
|
155 UIMSG_3A = 0x3A,
|
|
156 UIMSG_PlayerCreationChangeName = 0x3C,
|
0
|
157 UIMSG_PlayerCreationClickPlus = 0x3E,
|
|
158 UIMSG_PlayerCreationClickMinus = 0x3F,
|
|
159 UIMSG_PlayerCreationSelectActiveSkill = 0x40,
|
|
160 UIMSG_PlayerCreationSelectClass = 0x41,
|
|
161 UIMSG_PlayerCreationClickOK = 0x42,
|
|
162 UIMSG_PlayerCreationClickReset = 0x43,
|
151
|
163 UIMSG_45 = 0x45,
|
|
164 UIMSG_46 = 0x46,
|
|
165 UIMSG_AutonotesBook = 0x47,
|
0
|
166 UIMSG_PlayerCreationRemoveUpSkill = 0x4A,
|
|
167 UIMSG_PlayerCreationRemoveDownSkill = 0x4B,
|
151
|
168 UIMSG_4E = 0x4E,
|
|
169 UIMSG_4F = 0x4F,
|
|
170 UIMSG_51 = 0x51,
|
0
|
171 UIMSG_LoadGame = 0x52,
|
|
172 UIMSG_SaveGame = 0x53,
|
151
|
173 UIMSG_54 = 0x54,
|
|
174 UIMSG_55 = 0x55,
|
|
175 UIMSG_56 = 0x56,
|
|
176 UIMSG_57 = 0x57,
|
|
177 UIMSG_58 = 0x58,
|
|
178 UIMSG_5A = 0x5A,
|
|
179 UIMSG_5B = 0x5B,
|
0
|
180 UIMSG_ShowStatus_DateTime = 0x5C,
|
|
181 UIMSG_ShowStatus_ManaHP = 0x5D,
|
|
182 UIMSG_ShowStatus_Player = 0x5E,
|
151
|
183 UIMSG_Wait5Minutes = 0x5F,
|
|
184 UIMSG_Wait1Hour = 0x60,
|
|
185 UIMSG_61 = 0x61,
|
0
|
186 UIMSG_ShowStatus_Food = 0x64,
|
|
187 UIMSG_ShowStatus_Funds = 0x65,
|
151
|
188 UIMSG_68 = 0x68,
|
|
189 UIMSG_69 = 0x69,
|
11
|
190 UIMSG_QuickReference = 0x6A,
|
0
|
191 UIMSG_6B = 0x6B,
|
151
|
192 UIMSG_AlreadyResting = 0x6D,
|
0
|
193 UIMSG_SelectCharacter = 0x6E,
|
|
194 UIMSG_ChangeSoundVolume = 0x6F,
|
|
195 UIMSG_ChangeMusicVolume = 0x70,
|
3
|
196 UIMSG_Escape = 0x71,
|
151
|
197 UIMSG_72 = 0x72,
|
|
198 UIMSG_73 = 0x73,
|
|
199 UIMSG_74 = 0x74,
|
|
200 UIMSG_75 = 0x75,
|
0
|
201 UIMSG_PlayerCreationSelectQuality = 0x76,
|
151
|
202 UIMSG_InventoryLeftClick = 0x78,
|
0
|
203 UIMSG_SkillUp = 0x79,
|
151
|
204 UIMSG_7A = 0x7A,
|
|
205 UIMSG_7B = 0x7B,
|
0
|
206 UIMSG_StartNewGame = 0x7C,
|
|
207 UIMSG_Game_OpenLoadGameDialog = 0x7D,
|
151
|
208 UIMSG_Game_OpenSaveGameDialog = 0x7E,
|
0
|
209 UIMSG_Game_OpenOptionsDialog = 0x7F,
|
151
|
210 UIMSG_80 = 0x80,
|
0
|
211 UIMSG_SetGraphicsMode = 0x83,
|
|
212 UIMSG_Quit = 0x84,
|
151
|
213 UIMSG_85 = 0x85,
|
|
214 UIMSG_86 = 0x86,
|
|
215 UIMSG_87 = 0x87,
|
|
216 UIMSG_88 = 0x88,
|
|
217 UIMSG_8C = 0x8C,
|
|
218 UIMSG_8D = 0x8D,
|
|
219 UIMSG_8E = 0x8E,
|
|
220 UIMSG_8F = 0x8F,
|
0
|
221 UIMSG_PlayerCreationVoiceBack = 0x90,
|
|
222 UIMSG_PlayerCreationVoiceForward = 0x91,
|
151
|
223 UIMSG_92 = 0x92,
|
0
|
224 UIMSG_StartNPCDialogue = 0xA1,
|
2
|
225 UIMSG_ArrowUp = 0xA2,
|
|
226 UIMSG_DownArrow = 0xA3,
|
|
227 UIMSG_LoadSlot = 0xA4,
|
3
|
228 UIMSG_SelectLoadSlot = 0xA5,
|
2
|
229 UIMSG_Cancel = 0xA6,
|
151
|
230 UIMSG_ExitRest = 0xA7,
|
0
|
231 UIMSG_A8 = 0xA8,
|
|
232 UIMSG_A9 = 0xA9,
|
|
233 UIMSG_AA = 0xAA,
|
|
234 UIMSG_SelectFacePlayerBack = 0xAB,
|
|
235 UIMSG_SelectFacePlayerForward = 0xAC,
|
|
236 UIMSG_AD = 0xAD,
|
|
237 UIMSG_AE = 0xAE,
|
|
238 UIMSG_AF = 0xAF,
|
|
239 UIMSG_CycleCharacters = 0xB0,
|
|
240 UIMSG_B1 = 0xB1,
|
|
241 UIMSG_B2 = 0xB2,
|
|
242 UIMSG_B3 = 0xB3,
|
|
243 UIMSG_B4 = 0xB4,
|
|
244 UIMSG_B5 = 0xB5,
|
|
245 UIMSG_B6 = 0xB6,
|
|
246 UIMSG_B7 = 0xB7,
|
|
247 UIMSG_SetTurnSpeed = 0xB8,
|
|
248 UIMSG_ToggleWalkSound = 0xB9,
|
|
249 UIMSG_ChangeVoiceVolume = 0xBA,
|
|
250 UIMSG_ToggleShowDamage = 0xBB,
|
111
|
251 UIMSG_ScrollNPCPanel = 0xBC,
|
0
|
252 UIMSG_BD = 0xBD,
|
|
253 UIMSG_BE = 0xBE,
|
|
254 UIMSG_BF = 0xBF,
|
|
255 UIMSG_C0 = 0xC0,
|
|
256 UIMSG_C1 = 0xC1,
|
|
257 UIMSG_C2 = 0xC2,
|
|
258 UIMSG_C3 = 0xC3,
|
|
259 UIMSG_C4 = 0xC4,
|
|
260 UIMSG_ShowFinalWindow = 0xC5,
|
|
261 UIMSG_C6 = 0xC6,
|
|
262 UIMSG_C7 = 0xC7,
|
|
263 UIMSG_OpenQuestBook = 0xC8,
|
|
264 UIMSG_OpenAutonotes = 0xC9,
|
|
265 UIMSG_OpenMapBook = 0xCA,
|
|
266 UIMSG_OpenCalendar = 0xCB,
|
|
267 UIMSG_CC = 0xCC,
|
|
268 UIMSG_CD = 0xCD,
|
|
269 UIMSG_CE = 0xCE,
|
|
270 UIMSG_CF = 0xCF,
|
|
271 UIMSG_D0 = 0xD0,
|
|
272 UIMSG_D1 = 0xD1,
|
|
273 UIMSG_D2 = 0xD2,
|
|
274 UIMSG_D3 = 0xD3,
|
|
275 UIMSG_D4 = 0xD4,
|
|
276 UIMSG_D5 = 0xD5,
|
|
277 UIMSG_D6 = 0xD6,
|
151
|
278 UIMSG_DD = 0xDD,
|
0
|
279 UIMSG_OpenHistoryBook = 0xE0,
|
|
280 UIMSG_ToggleAlwaysRun = 0xE1,
|
|
281 UIMSG_ToggleFlipOnExit = 0xE2,
|
151
|
282 UIMSG_16F = 0x16F,
|
|
283 UIMSG_170 = 0x170,
|
|
284 UIMSG_194 = 0x194,
|
|
285 UIMSG_195 = 0x195,
|
0
|
286 UIMSG_OpenRestUI = 0x199,
|
151
|
287 UIMSG_19A = 0x19A,
|
|
288 UIMSG_19B = 0x19B,
|
|
289 UIMSG_19C = 0x19C,
|
0
|
290 UIMSG_OpenKeyMappingOptions = 0x19F,
|
151
|
291 UIMSG_1A0 = 0x1A0,
|
|
292 UIMSG_1A1 = 0x1A1,
|
0
|
293 UIMSG_ResetKeyMapping = 0x1A2,
|
151
|
294 UIMSG_1A3 = 0x1A3,
|
0
|
295 UIMSG_OpenVideoOptions = 0x1A5,
|
|
296 UIMSG_ToggleBloodsplats = 0x1A6,
|
|
297 UIMSG_ToggleColoredLights = 0x1A7,
|
|
298 UIMSG_ToggleTint = 0x1A8,
|
151
|
299 UIMSG_1A9 = 0x1A9,
|
0
|
300 };
|
|
301
|
151
|
302 enum CURRENT_SCREEN
|
|
303 {
|
|
304 SCREEN_GAME = 0x0,
|
|
305 SCREEN_MENU = 0x1,
|
|
306 SCREEN_OPTIONS = 0x2,
|
|
307 SCREEN_BOOKS = 0x3,
|
|
308 SCREEN_NPC_DIALOGUE = 0x4,
|
|
309 SCREEN_REST = 0x5,
|
|
310 SCREEN_CHARACTERS = 0x7,
|
|
311 SCREEN_SPELL_BOOK = 0x8,
|
|
312 SCREEN_CREATORS = 0x9,
|
|
313 SCREEN_CHEST = 0xA,
|
|
314 SCREEN_SAVEGAME = 0xB,
|
|
315 SCREEN_LOADGAME = 0xC,
|
|
316 SCREEN_HOUSE = 0xD,
|
|
317 SCREEN_E = 0xE,
|
|
318 SCREEN_F = 0xF,
|
|
319 SCREEN_VIDEO = 0x10,
|
|
320 SCREEN_CHANGE_LOCATION = 0x11,
|
|
321 SCREEN_INPUT_BLV = 0x12,
|
|
322 SCREEN_BRANCHLESS_NPC_DIALOG = 0x13,
|
|
323 SCREEN_PARTY_CREATION = 0x15,
|
|
324 SCREEN_PRESS_ESCAPE_MESSAGE = 0x16,
|
|
325 SCREEN_CASTING = 0x17,
|
|
326 SCREEN_19 = 0x19,
|
|
327 SCREEN_KEYBOARD_OPTIONS = 0x1A,
|
|
328 SCREEN_1B = 0x1B,
|
|
329 SCREEN_VIDEO_OPTIONS = 0x1C,
|
|
330 SCREEN_63 = 0x63,
|
|
331 SCREEN_64 = 0x64,
|
|
332 SCREEN_67 = 0x67,
|
|
333 SCREEN_QUICK_REFERENCE = 0x68,
|
|
334 };
|
0
|
335
|
|
336
|
|
337
|
|
338
|
|
339 /* 249 */
|
|
340 #pragma pack(push, 1)
|
|
341 struct GUIMessage
|
|
342 {
|
|
343 enum UIMessageType eType;
|
|
344 int param;
|
|
345 int field_8;
|
|
346 };
|
|
347 #pragma pack(pop)
|
|
348
|
|
349
|
|
350
|
|
351
|
|
352
|
|
353 /* 250 */
|
|
354 #pragma pack(push, 1)
|
|
355 struct GUIMessageQueue
|
|
356 {
|
|
357 inline GUIMessageQueue():
|
|
358 uNumMessages(0)
|
|
359 {}
|
|
360
|
|
361 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4);
|
|
362 void SendMessage(UIMessageType msg, int param, unsigned int a4);
|
|
363
|
|
364 unsigned int uNumMessages;
|
|
365 GUIMessage pMessages[40];
|
|
366 };
|
|
367 #pragma pack(pop)
|
|
368
|
|
369 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
|
|
370
|
|
371
|
|
372
|
|
373
|
|
374 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb
|
|
375 extern struct GUIWindow *pWindow_MainMenu;
|
|
376 extern struct GUIWindow pWindowList[20]; |