Mercurial > mm7
annotate GUIWindow.h @ 1448:5a5d0c713d47
some turn engine renaming
author | Gloval |
---|---|
date | Tue, 06 Aug 2013 00:52:46 +0400 |
parents | e70fe5d77928 |
children | 28f87f5234a1 |
rev | line source |
---|---|
0 | 1 #pragma once |
816 | 2 #include "Player.h" |
1202 | 3 #include <array> |
0 | 4 |
5 | |
6 | |
7 | |
1254 | 8 |
832 | 9 enum UIMessageType: unsigned __int32 |
10 { | |
11 UIMSG_0 = 0, | |
12 | |
13 UIMSG_ChangeGameState = 5, | |
14 | |
960 | 15 UIMSG_MouseLeftClickInGame = 10, |
832 | 16 |
987 | 17 UIMSG_CHEST_ClickItem = 12, |
832 | 18 |
990 | 19 UIMSG_MouseLeftClickInScreen = 14, |
832 | 20 UIMSG_F = 15, |
21 | |
22 UIMSG_11 = 17, | |
23 | |
24 UIMSG_Attack = 23, | |
25 | |
961 | 26 UIMSG_CastQuickSpell = 25, |
832 | 27 |
28 UIMSG_1B = 27, | |
29 UIMSG_1C = 28, | |
30 UIMSG_PlayArcomage = 29, | |
31 | |
32 UIMSG_31 = 49, | |
33 UIMSG_32 = 50, | |
1118 | 34 UIMSG_SpellBook_PressTab = 51, |
832 | 35 UIMSG_34 = 52, |
36 UIMSG_35 = 53, | |
37 UIMSG_MainMenu_ShowPartyCreationWnd = 54, | |
38 UIMSG_MainMenu_ShowLoadWindow = 55, | |
39 UIMSG_ShowCredits = 56, | |
40 UIMSG_ExitToWindows = 57, | |
41 UIMSG_3A = 58, | |
42 | |
43 UIMSG_PlayerCreationChangeName = 60, | |
44 | |
45 UIMSG_PlayerCreationClickPlus = 62, | |
46 UIMSG_PlayerCreationClickMinus = 63, | |
47 UIMSG_PlayerCreationSelectActiveSkill = 64, | |
48 UIMSG_PlayerCreationSelectClass = 65, | |
49 UIMSG_PlayerCreationClickOK = 66, | |
50 UIMSG_PlayerCreationClickReset = 67, | |
51 UIMSG_44 = 68, | |
998 | 52 UIMSG_CastSpell_Character_Big_Improvement = 69, |
53 UIMSG_CastSpell_Shoot_Monster = 70, | |
996 | 54 UIMSG_ClickBooksBtn = 71, |
832 | 55 UIMSG_48 = 72, |
56 UIMSG_49 = 73, | |
57 UIMSG_PlayerCreationRemoveUpSkill = 74, | |
58 UIMSG_PlayerCreationRemoveDownSkill = 75, | |
59 | |
960 | 60 UIMSG_HintSelectRemoveQuickSpellBtn = 78, |
832 | 61 UIMSG_SPellbook_ShowHightlightedSpellInfo = 79, |
62 | |
63 UIMSG_BuyInShop_Identify_Repair = 81, | |
64 UIMSG_LoadGame = 82, | |
65 UIMSG_SaveGame = 83, | |
66 UIMSG_54 = 84, | |
910 | 67 UIMSG_ChangeDetaliz = 85, |
832 | 68 UIMSG_SelectSpell = 86, |
69 UIMSG_OpenSpellbookPage = 87, | |
960 | 70 UIMSG_ClickInstallRemoveQuickSpellBtn = 88, |
832 | 71 |
72 UIMSG_OnTravelByFoot = 90, | |
987 | 73 UIMSG_CHANGE_LOCATION_ClickCencelBtn = 91, |
832 | 74 UIMSG_ShowStatus_DateTime = 92, |
75 UIMSG_ShowStatus_ManaHP = 93, | |
76 UIMSG_ShowStatus_Player = 94, | |
77 UIMSG_Wait5Minutes = 95, | |
78 UIMSG_Wait1Hour = 96, | |
907 | 79 UIMSG_Rest8Hour = 97, |
832 | 80 |
81 UIMSG_ShowStatus_Food = 100, | |
82 UIMSG_ShowStatus_Funds = 101, | |
83 | |
907 | 84 UIMSG_RestWindow = 104, |
85 UIMSG_SpellBookWindow = 105, | |
832 | 86 UIMSG_QuickReference = 106, |
87 UIMSG_GameMenuButton = 107, | |
88 | |
89 UIMSG_AlreadyResting = 109, | |
90 UIMSG_SelectCharacter = 110, | |
91 UIMSG_ChangeSoundVolume = 111, | |
92 UIMSG_ChangeMusicVolume = 112, | |
93 UIMSG_Escape = 113, | |
960 | 94 UIMSG_ClickSkillsBtn = 114, |
95 UIMSG_ClickStatsBtn = 115, | |
96 UIMSG_ClickInventoryBtn = 116, | |
97 UIMSG_ClickAwardsBtn = 117, | |
832 | 98 UIMSG_PlayerCreation_SelectAttribute = 118, |
99 | |
100 UIMSG_InventoryLeftClick = 120, | |
101 UIMSG_SkillUp = 121, | |
102 UIMSG_7A = 122, | |
103 UIMSG_GameMenu_ReturnToGame = 123, | |
104 UIMSG_StartNewGame = 124, | |
105 UIMSG_Game_OpenLoadGameDialog = 125, | |
106 UIMSG_Game_OpenSaveGameDialog = 126, | |
107 UIMSG_Game_OpenOptionsDialog = 127, | |
108 UIMSG_80 = 128, | |
109 | |
110 UIMSG_SetGraphicsMode = 131, | |
111 UIMSG_Quit = 132, | |
910 | 112 UIMSG_ClickPaperdoll = 133, |
832 | 113 UIMSG_StartHireling1Dialogue = 134, |
114 UIMSG_StartHireling2Dialogue = 135, | |
115 UIMSG_SelectNPCDialogueOption = 136, | |
116 | |
998 | 117 UIMSG_CastSpell_Monster_Improvement = 140, |
118 UIMSG_CastSpell_Character_Small_Improvement = 141, | |
832 | 119 UIMSG_CastSpellFromBook = 142, |
998 | 120 UIMSG_HiredNPC_CastSpell = 143, |
832 | 121 UIMSG_PlayerCreation_VoicePrev = 144, |
122 UIMSG_PlayerCreation_VoiceNext = 145, | |
1019 | 123 UIMSG_SpellScrollUse = 146, |
832 | 124 |
125 UIMSG_StartNPCDialogue = 161, | |
126 UIMSG_ArrowUp = 162, | |
127 UIMSG_DownArrow = 163, | |
961 | 128 UIMSG_SaveLoadBtn = 164, |
832 | 129 UIMSG_SelectLoadSlot = 165, |
130 UIMSG_Cancel = 166, | |
131 UIMSG_ExitRest = 167, | |
960 | 132 UIMSG_ClickExitCharacterWindowBtn = 168, |
961 | 133 UIMSG_ClickAwardsUpBtn = 169, |
134 UIMSG_ClickAwardsDownBtn = 170, | |
832 | 135 UIMSG_PlayerCreation_FacePrev = 171, |
136 UIMSG_PlayerCreation_FaceNext = 172, | |
137 UIMSG_AD = 173, | |
138 UIMSG_AE = 174, | |
139 UIMSG_ClickNPCTopic = 175, | |
140 UIMSG_CycleCharacters = 176, | |
961 | 141 UIMSG_OnCastLloydsBeacon = 177, |
142 UIMSG_LloydsBeacon_FlippingBtn = 178, | |
143 UIMSG_InstallBeacon = 179, | |
144 UIMSG_HintBeaconSlot = 180, | |
145 UIMSG_CloseAfterInstallBeacon = 181, | |
146 UIMSG_HintTownPortal = 182, | |
147 UIMSG_ClickTownInTP = 183, | |
832 | 148 UIMSG_SetTurnSpeed = 184, |
149 UIMSG_ToggleWalkSound = 185, | |
150 UIMSG_ChangeVoiceVolume = 186, | |
151 UIMSG_ToggleShowDamage = 187, | |
152 UIMSG_ScrollNPCPanel = 188, | |
153 UIMSG_BD = 189, | |
1326 | 154 UIMSG_CastSpell_Telekinesis = 190, |
832 | 155 UIMSG_BF = 191, |
1101
3e5d70cfe20e
Award order fix, changed UIMSG_C0 to UIMSG_ClickAwardScrollBar
Grumpy7
parents:
1038
diff
changeset
|
156 UIMSG_ClickAwardScrollBar = 192, |
832 | 157 UIMSG_C1 = 192, |
158 UIMSG_C2 = 192, | |
159 | |
160 UIMSG_OnCastTownPortal = 195, | |
161 UIMSG_C4 = 196, | |
162 UIMSG_ShowFinalWindow = 197, | |
163 UIMSG_C6 = 198, | |
164 UIMSG_C7 = 199, | |
165 UIMSG_OpenQuestBook = 200, | |
166 UIMSG_OpenAutonotes = 201, | |
167 UIMSG_OpenMapBook = 202, | |
168 UIMSG_OpenCalendar = 203, | |
169 UIMSG_CC = 204, | |
170 UIMSG_CD = 205, | |
171 UIMSG_CE = 206, | |
172 UIMSG_CF = 207, | |
173 UIMSG_D0 = 208, | |
174 UIMSG_D1 = 209, | |
175 UIMSG_D2 = 210, | |
176 UIMSG_D3 = 211, | |
177 UIMSG_D4 = 212, | |
178 UIMSG_D5 = 213, | |
179 UIMSG_D6 = 214, | |
180 | |
181 UIMSG_DD = 221, | |
182 | |
183 UIMSG_OpenHistoryBook = 224, | |
184 UIMSG_ToggleAlwaysRun = 225, | |
185 UIMSG_ToggleFlipOnExit = 226, | |
186 | |
960 | 187 UIMSG_ClickZoomOutBtn = 367, |
188 UIMSG_ClickZoomInBtn = 368, | |
832 | 189 |
190 UIMSG_Game_Action = 404, | |
191 UIMSG_SelectShopDialogueOption = 405, | |
192 | |
907 | 193 UIMSG_RentRoom = 409, |
961 | 194 UIMSG_ClickHouseNPCPortrait = 410, |
832 | 195 UIMSG_TransitionUI_Confirm = 411, |
960 | 196 UIMSG_TransitionWindowCloseBtn = 412, |
832 | 197 |
198 UIMSG_OpenKeyMappingOptions = 415, | |
199 UIMSG_SelectKeyPage1 = 416, | |
200 UIMSG_SelectKeyPage2 = 417, | |
201 UIMSG_ResetKeyMapping = 418, | |
202 UIMSG_ChangeKeyButton = 419, | |
203 | |
204 UIMSG_OpenVideoOptions = 421, | |
205 UIMSG_ToggleBloodsplats = 422, | |
206 UIMSG_ToggleColoredLights = 423, | |
207 UIMSG_ToggleTint = 424, | |
208 UIMSG_1A9 = 425, | |
209 }; | |
210 | |
211 | |
0 | 212 /* 251 */ |
213 enum MENU_STATE : __int32 | |
214 { | |
982 | 215 MENU_MAIN = 0, |
216 MENU_NEWGAME = 1, | |
217 MENU_CREDITS = 2, | |
218 MENU_SAVELOAD = 3, | |
219 MENU_EXIT_GAME = 4, | |
220 MENU_5 = 5, | |
221 MENU_CREATEPARTY = 6, | |
222 MENU_NAMEPANELESC = 7, | |
223 MENU_CREDITSPROC = 8, | |
224 MENU_LoadingProcInMainMenu = 9, | |
225 MENU_10 = 10, | |
226 MENU_CREDITSCLOSE = 11, | |
0 | 227 }; |
228 | |
229 | |
167 | 230 enum DIALOGUE_TYPE |
231 { | |
248 | 232 DIALOGUE_9 = 9, |
179 | 233 DIALOGUE_13 = 0xD, |
234 DIALOGUE_18 = 0x12, | |
248 | 235 DIALOGUE_19 = 19, |
236 DIALOGUE_20 = 20, | |
237 DIALOGUE_21 = 21, | |
238 DIALOGUE_22 = 22, | |
239 DIALOGUE_23 = 23, | |
179 | 240 DIALOGUE_24 = 0x18, |
248 | 241 DIALOGUE_76 = 76, |
242 DIALOGUE_PROFESSION_DETAILS = 77, | |
179 | 243 DIALOGUE_ARENA_WELCOME = 0x59, |
244 DIALOGUE_ARENA_FIGHT_NOT_OVER_YET = 0x5A, | |
245 DIALOGUE_ARENA_REWARD = 0x5B, | |
246 DIALOGUE_ARENA_ALREADY_WON = 0x5C, | |
167 | 247 }; |
0 | 248 |
249 | |
250 | |
251 | |
252 | |
253 /* 298 */ | |
254 enum WindowType: unsigned __int32 | |
255 { | |
1268 | 256 WINDOW_null = 0, |
257 WINDOW_MainMenu = 1, | |
258 WINDOW_OptionsButtons = 3, | |
961 | 259 WINDOW_CharacterRecord = 4, |
1268 | 260 WINDOW_Options = 6, |
261 WINDOW_8 = 8, | |
262 WINDOW_Book = 9, | |
263 WINDOW_Dialogue = 10, | |
710 | 264 WINDOW_QuickReference = 12, |
1268 | 265 WINDOW_F = 15, |
266 WINDOW_Rest = 16, | |
710 | 267 WINDOW_ChangeLocation = 17, |
1268 | 268 WINDOW_SpellBook = 18, |
269 WINDOW_GreetingNPC = 19, | |
270 WINDOW_Chest = 20, | |
990 | 271 WINDOW_22 = 0x16, |
961 | 272 WINDOW_SaveLoadButtons = 23, |
0 | 273 WINDOW_MainMenu_Load = 0x18, |
274 WINDOW_HouseInterior = 0x19, | |
710 | 275 WINDOW_Transition = 26, |
961 | 276 WINDOW_CastSpell = 27, |
158 | 277 WINDOW_Scroll = 0x1E, |
898 | 278 WINDOW_CastSpell_InInventory = 31, |
962 | 279 WINDOW_FinalWindow = 70, |
280 WINDOW_50 = 80, | |
281 WINDOW_59 = 89, | |
282 WINDOW_PressedButton2 = 90, | |
283 WINDOW_CharactersPressedButton = 91, | |
284 WINDOW_PressedButton = 92, | |
285 WINDOW_5D = 93, | |
961 | 286 WINDOW_SaveLoadBtn = 94, |
962 | 287 WINDOW_LoadGame_CancelBtn = 95, |
288 WINDOW_CloseRestWindowBtn = 96, | |
960 | 289 WINDOW_ExitCharacterWindow = 97, |
17 | 290 WINDOW_RestWindow = 0x62, |
960 | 291 WINDOW_BooksWindow = 99, |
17 | 292 WINDOW_CharacterWindow_Stats = 0x64, |
293 WINDOW_CharacterWindow_Skills = 0x65, | |
294 WINDOW_CharacterWindow_Awards = 0x66, | |
295 WINDOW_CharacterWindow_Inventory = 0x67, | |
710 | 296 WINDOW_68 = 104, |
0 | 297 WINDOW_KeyMappingOptions = 0x69, |
17 | 298 WINDOW_VideoOptions = 0x6A, |
961 | 299 WINDOW_LloydsBeacon = 177, |
710 | 300 WINDOW_TownPortal = 195, |
301 WINDOW_QuestBook = 200, | |
17 | 302 WINDOW_AutonotesBook = 0xC9, |
303 WINDOW_MapsBook = 0xCA, | |
304 WINDOW_CalendarBook = 0xCB, | |
1004 | 305 WINDOW_JournalBook = 0xE0, |
0 | 306 }; |
307 | |
832 | 308 struct GUIButton; |
309 struct Texture; | |
310 | |
1038 | 311 |
312 #define WINDOW_INPUT_NONE 0 | |
313 #define WINDOW_INPUT_IN_PROGRESS 1 | |
314 #define WINDOW_INPUT_CONFIRMED 2 | |
315 #define WINDOW_INPUT_CANCELLED 3 | |
316 | |
0 | 317 /* 155 */ |
318 #pragma pack(push, 1) | |
319 struct GUIWindow | |
320 { | |
200 | 321 inline GUIWindow() |
322 { | |
323 pControlsHead = pControlsTail = nullptr; | |
324 eWindowType = WINDOW_null; | |
325 } | |
326 | |
189 | 327 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, |
1262 | 328 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, struct Texture *pTextures, ...); |
1268 | 329 void DrawFlashingInputCursor(signed int uX, int uY, struct GUIFont *a2); |
330 int DrawTextInRect(GUIFont *pFont, unsigned int uX, unsigned int uY, unsigned int uColor, const char *text, int rect_width, int reverse_text); | |
1006 | 331 void DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor); |
762 | 332 void DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing); |
471
c43f156a95c9
ArmorShopDialog crash fixed. All shops show its items
Gloval
parents:
467
diff
changeset
|
333 void DrawCurrentTime(__int64 a2); |
405 | 334 void HouseDialogManager(); |
198 | 335 void OpenSpellBook(); |
0 | 336 void InitializeBookView(); |
337 void DrawMessageBox(int arg0); | |
338 GUIButton *GetControl(unsigned int uID); | |
339 void Release(); | |
972 | 340 void _41D08F_set_keyboard_control_group(int a2, int a3, int a4, int a5); |
1006 | 341 void _41D73D_draw_buff_tooltip(); |
0 | 342 |
1268 | 343 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eWindowType, int pButton, const char* hint); |
0 | 344 |
345 unsigned int uFrameX; | |
346 unsigned int uFrameY; | |
347 unsigned int uFrameWidth; | |
348 unsigned int uFrameHeight; | |
349 unsigned int uFrameZ; | |
350 unsigned int uFrameW; | |
351 WindowType eWindowType; | |
496 | 352 union{ |
917 | 353 void *ptr_1C;// sometimes BuildID_2Events |
496 | 354 unsigned int par1C; |
355 }; | |
0 | 356 unsigned int uNumControls; |
357 int field_24; | |
358 int pNumPresenceButton; | |
359 int pCurrentPosActiveItem; | |
360 int field_30; | |
361 int field_34; | |
362 int pStartingPosActiveItem; | |
496 | 363 int numVisibleWindows; |
1038 | 364 int receives_keyboard_input_2; // 0 no input 1 currently typing 2 enter pressed 3 escape pressed |
972 | 365 int receives_keyboard_input; |
1268 | 366 const char *Hint; |
0 | 367 GUIButton *pControlsHead; |
368 GUIButton *pControlsTail; | |
369 }; | |
370 #pragma pack(pop) | |
371 | |
372 | |
373 | |
374 | |
375 | |
376 | |
495 | 377 |
629 | 378 |
151 | 379 enum CURRENT_SCREEN |
380 { | |
381 SCREEN_GAME = 0x0, | |
382 SCREEN_MENU = 0x1, | |
383 SCREEN_OPTIONS = 0x2, | |
384 SCREEN_BOOKS = 0x3, | |
385 SCREEN_NPC_DIALOGUE = 0x4, | |
386 SCREEN_REST = 0x5, | |
387 SCREEN_CHARACTERS = 0x7, | |
388 SCREEN_SPELL_BOOK = 0x8, | |
389 SCREEN_CREATORS = 0x9, | |
390 SCREEN_CHEST = 0xA, | |
391 SCREEN_SAVEGAME = 0xB, | |
392 SCREEN_LOADGAME = 0xC, | |
393 SCREEN_HOUSE = 0xD, | |
394 SCREEN_E = 0xE, | |
987 | 395 SCREEN_CHEST_INVENTORY = 0xF, |
151 | 396 SCREEN_VIDEO = 0x10, |
397 SCREEN_CHANGE_LOCATION = 0x11, | |
398 SCREEN_INPUT_BLV = 0x12, | |
399 SCREEN_BRANCHLESS_NPC_DIALOG = 0x13, | |
400 SCREEN_PARTY_CREATION = 0x15, | |
401 SCREEN_PRESS_ESCAPE_MESSAGE = 0x16, | |
402 SCREEN_CASTING = 0x17, | |
403 SCREEN_19 = 0x19, | |
404 SCREEN_KEYBOARD_OPTIONS = 0x1A, | |
405 SCREEN_1B = 0x1B, | |
406 SCREEN_VIDEO_OPTIONS = 0x1C, | |
407 SCREEN_63 = 0x63, | |
408 SCREEN_64 = 0x64, | |
409 SCREEN_67 = 0x67, | |
410 SCREEN_QUICK_REFERENCE = 0x68, | |
411 }; | |
0 | 412 |
413 | |
414 | |
415 | |
416 /* 249 */ | |
417 #pragma pack(push, 1) | |
418 struct GUIMessage | |
419 { | |
420 enum UIMessageType eType; | |
421 int param; | |
422 int field_8; | |
423 }; | |
424 #pragma pack(pop) | |
425 | |
426 | |
427 | |
428 | |
437 | 429 #define AddMessage(msg, param, a4) AddMessageImpl((msg), (param), (a4), __FILE__, __LINE__) |
0 | 430 /* 250 */ |
431 #pragma pack(push, 1) | |
432 struct GUIMessageQueue | |
433 { | |
434 inline GUIMessageQueue(): | |
435 uNumMessages(0) | |
436 {} | |
437 | |
783 | 438 void Flush(); |
0 | 439 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4); |
437 | 440 void AddMessageImpl(UIMessageType msg, int param, unsigned int a4, const char *file = nullptr, int line = 0); |
0 | 441 |
442 unsigned int uNumMessages; | |
443 GUIMessage pMessages[40]; | |
437 | 444 |
445 const char *files[40]; | |
446 int lines[40]; | |
0 | 447 }; |
448 #pragma pack(pop) | |
449 | |
450 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb | |
451 | |
1012 | 452 extern struct GUIMessageQueue *pMessageQueue_50C9E8; // idb |
0 | 453 |
454 | |
248 | 455 |
651 | 456 void OnSelectNPCDialogueOption(DIALOGUE_TYPE newDialogueType); |
248 | 457 |
458 | |
459 | |
0 | 460 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb |
461 extern struct GUIWindow *pWindow_MainMenu; | |
1202 | 462 extern std::array<struct GUIWindow, 20> pWindowList; |
566 | 463 |
464 | |
465 | |
466 | |
1268 | 467 void ModalWindow(const char *pStrHint, int a4); |
566 | 468 |
994 | 469 |
470 | |
471 void draw_leather(); | |
472 | |
473 | |
1033 | 474 // main menu ui |
475 void MainMenuUI_LoadFontsAndSomeStuff(); | |
476 void MainMenuUI_Create(); | |
477 MENU_STATE MainMenuUI_Credits_Loop(); | |
994 | 478 |
1033 | 479 // save & load ui |
480 void SaveUI_Load(); | |
481 void SaveUI_Draw(); | |
482 | |
483 void LoadUI_Draw(); | |
484 void LoadUI_Load(unsigned int uDialogueType); // idb | |
994 | 485 |
486 // game ui | |
487 void GameUI_DrawRightPanel(); | |
488 void GameUI_DrawRightPanelFrames(); | |
489 void GameUI_DrawRightPanelItems(); | |
991 | 490 void GameUI_QuickRef_Draw(); |
994 | 491 void GameUI_DrawFoodAndGold(); |
492 void GameUI_DrawLifeManaBars(); | |
493 void GameUI_DrawHiredNPCs(); | |
494 void GameUI_DrawPortraits(unsigned int _this); | |
495 void GameUI_Footer(); | |
496 void GameUI_Footer_2(); | |
497 void GameUI_SetFooterString(const char *pStr); | |
995 | 498 void GameUI_DrawMinimap(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW, unsigned int uZoom, unsigned int bRedrawOdmMinimap); |
1033 | 499 auto GameUI_GetMinimapHintText() -> const char *; |
995 | 500 void GameUI_DrawPartySpells(); |
501 void GameUI_DrawTorchlightAndWizardEye(); | |
502 void GameUI_DrawCharacterSelectionFrame(); | |
1004 | 503 void GameUI_CharacterQuickRecord_Draw(GUIWindow *window, Player *player); |
1033 | 504 void GameUI_DrawNPCPopup(void *_this); |
816 | 505 |
1033 | 506 void GameUI_InitializeDialogue(Actor *actor, int bPlayerSaysHello); |
507 void GameUI_DrawBranchlessDialogue(); | |
508 void GameUI_DrawDialogue(); | |
816 | 509 |
510 | |
1031 | 511 // game menu ui |
512 void GameMenuUI_DrawKeyBindings(); | |
513 void GameMenuUI_DrawVideoOptions(); | |
514 void GameMenuUI_Options_Draw(); | |
816 | 515 |
516 | |
517 | |
518 | |
994 | 519 // character ui |
995 | 520 struct GUIWindow *CharacterUI_Initialize(unsigned int _this); |
983 | 521 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType); |
1006 | 522 void CharacterUI_SkillsTab_ShowHint(); |
983 | 523 void CharacterUI_StatsTab_ShowHint(); |
1006 | 524 void CharacterUI_StatsTab_Draw(Player *player); |
991 | 525 void CharacterUI_SkillsTab_CreateButtons(); |
983 | 526 void CharacterUI_SkillsTab_Draw(Player *player); |
991 | 527 void CharacterUI_AwardsTab_Draw(Player *player); |
984 | 528 void CharacterUI_InventoryTab_Draw(Player *player, bool a2); |
991 | 529 void CharacterUI_CharacterScreen_Draw(Player *player); |
530 void CharacterUI_DrawPaperdoll(Player *player); | |
531 void CharacterUI_DrawPaperdollWithRingOverlay(Player *player); | |
532 void CharacterUI_ReleaseButtons(); | |
533 | |
995 | 534 unsigned int GetSkillColor(unsigned int uPlayerClass, PLAYER_SKILL_TYPE uPlayerSkillType, signed int skill_level); |
832 | 535 |
536 | |
537 | |
538 | |
539 | |
1033 | 540 // book ui |
995 | 541 void BookUI_Draw(WindowType book); |
542 void BookUI_Questbook_Draw(); | |
543 void BookUI_Autonotes_Draw(); | |
544 void BookUI_Map_Draw(); | |
545 void BookUI_Calendar_Draw(); | |
1004 | 546 void BookUI_Journal_Draw(); |
995 | 547 |
548 void OnCloseSpellBook(); | |
549 void InitializeBookTextures(); | |
550 void InitializeBookFonts(); | |
1004 | 551 void DrawSpellBookContent(Player *player); |
995 | 552 unsigned int __cdecl DrawLloydBeaconsScreen(); |
1038 | 553 void BookUI_DrawTownPortalMap(); |
995 | 554 void LoadSpellbook(unsigned int uID); // idb |
555 void DrawSpellDescriptionPopup(int spell_index); | |
1004 | 556 void sub_41140B(); |
557 void sub_411473(); | |
832 | 558 |
559 | |
560 | |
1033 | 561 // rest ui |
562 void RestUI_Load(); | |
563 void RestUI_Draw(); | |
832 | 564 |
565 | |
1033 | 566 // transition & travel ui |
567 void TransitionUI_Load(uint anim_id, uint exit_pic_id, int x, int y, int z, int directiony, int directionx, int a8, const char *pLocationName); | |
568 void TransitionUI_Draw(); | |
569 | |
570 void TravelUI_Load(); | |
571 void TravelUI_Draw(); | |
832 | 572 |
573 | |
574 | |
575 | |
576 | |
577 | |
578 | |
579 | |
580 | |
581 | |
582 | |
583 | |
584 | |
585 | |
586 | |
587 | |
588 | |
589 | |
590 | |
591 | |
592 | |
593 #pragma pack(push, 1) | |
594 struct GUIButton | |
595 { | |
1006 | 596 void DrawLabel(const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor); |
832 | 597 |
598 void Release(); | |
599 | |
600 | |
601 unsigned int uX; | |
602 unsigned int uY; | |
603 unsigned int uWidth; | |
604 unsigned int uHeight; | |
605 unsigned int uZ; | |
606 unsigned int uW; | |
607 int uButtonType; | |
608 int field_1C;//may be pMessageType | |
609 UIMessageType msg; | |
610 unsigned int msg_param; | |
611 int field_28; | |
612 int field_2C_is_pushed; | |
613 GUIButton *pPrev; | |
614 GUIButton *pNext; | |
615 struct GUIWindow *pParent; | |
616 struct Texture *pTextures[5]; | |
617 unsigned int uNumTextures; | |
618 unsigned __int8 uHotkey; | |
619 char pButtonName[32]; | |
620 char field_75[71]; | |
621 }; | |
622 #pragma pack(pop) | |
623 | |
624 | |
625 | |
626 | |
627 extern struct GUIButton *pBtn_CloseBook; | |
628 extern struct GUIButton *pBtn_InstallRemoveSpell; | |
629 extern struct GUIButton *pBtn_Autonotes_Instructors; | |
630 extern struct GUIButton *pBtn_Autonotes_Misc; | |
631 extern struct GUIButton *pBtn_Book_6; | |
632 extern struct GUIButton *pBtn_Book_5; | |
633 extern struct GUIButton *pBtn_Book_4; | |
634 extern struct GUIButton *pBtn_Book_3; | |
635 extern struct GUIButton *pBtn_Book_2; | |
636 extern struct GUIButton *pBtn_Book_1; | |
637 | |
638 | |
639 extern struct GUIButton *pPlayerCreationUI_BtnReset; | |
640 extern struct GUIButton *pPlayerCreationUI_BtnOK; | |
641 extern struct GUIButton *pBtn_ExitCancel; | |
642 extern struct GUIButton *pBtn_YES; | |
643 extern struct GUIButton *pPlayerCreationUI_BtnPlus; | |
644 extern struct GUIButton *pPlayerCreationUI_BtnMinus; | |
645 | |
646 | |
647 extern struct GUIButton *pButton_RestUI_Main; | |
648 extern struct GUIButton *pButton_RestUI_Exit; | |
649 extern struct GUIButton *pButton_RestUI_Wait5Minutes; | |
650 extern struct GUIButton *pButton_RestUI_WaitUntilDawn; | |
651 extern struct GUIButton *pButton_RestUI_Wait1Hour; | |
652 | |
653 | |
654 extern struct GUIButton *pCharacterScreen_ExitBtn; | |
655 extern struct GUIButton *pCharacterScreen_AwardsBtn; | |
656 extern struct GUIButton *pCharacterScreen_InventoryBtn; | |
657 extern struct GUIButton *pCharacterScreen_SkillsBtn; | |
658 extern struct GUIButton *pCharacterScreen_StatsBtn; | |
659 extern struct GUIButton *pCharacterScreen_DollBtn; | |
660 extern struct GUIButton *pCharacterScreen_DetalizBtn; | |
661 | |
662 | |
663 extern struct GUIButton *pBtn_NPCRight; | |
664 extern struct GUIButton *pBtn_NPCLeft; | |
665 extern struct GUIButton *pBtn_GameSettings; | |
666 extern struct GUIButton *pBtn_QuickReference; | |
667 extern struct GUIButton *pBtn_CastSpell; | |
668 extern struct GUIButton *pBtn_Rest; | |
669 extern struct GUIButton *pBtn_History; | |
670 extern struct GUIButton *pBtn_Calendar; | |
671 extern struct GUIButton *pBtn_Maps; | |
672 extern struct GUIButton *pBtn_Autonotes; | |
673 extern struct GUIButton *pBtn_Quests; | |
674 | |
675 | |
676 extern struct GUIButton *pMainMenu_BtnExit; | |
677 extern struct GUIButton *pMainMenu_BtnCredits; | |
678 extern struct GUIButton *pMainMenu_BtnLoad; | |
679 extern struct GUIButton *pMainMenu_BtnNew; | |
680 | |
681 | |
682 extern struct GUIButton *pBtn_Up; | |
683 extern struct GUIButton *pBtn_Down; | |
684 extern struct GUIButton *ptr_507BA4; | |
685 | |
686 | |
687 extern struct GUIWindow *pPrimaryWindow; | |
688 extern struct GUIWindow *pChestWindow; | |
689 extern struct GUIWindow *pDialogueWindow; | |
690 extern struct GUIWindow *window_SpeakInHouse; | |
691 extern struct GUIWindow *pGUIWindow_ScrollWindow; | |
692 extern struct GUIWindow *ptr_507BC8; | |
693 extern struct GUIWindow *pGUIWindow_CurrentMenu; | |
694 extern struct GUIWindow *ptr_507BD0; | |
695 extern struct GUIWindow *pGUIWindow_Settings; | |
696 extern struct GUIWindow *ptr_507BDC; | |
697 extern struct GUIWindow *pGUIWindow_EscMessageWindow; | |
698 extern struct GUIWindow *pBooksWindow; | |
699 extern struct GUIWindow *pGUIWindow2; | |
700 | |
701 | |
702 extern struct GUIButton *pBtn_Resume; | |
703 extern struct GUIButton *pBtn_QuitGame; | |
704 extern struct GUIButton *pBtn_GameControls; | |
705 extern struct GUIButton *pBtn_LoadGame; | |
706 extern struct GUIButton *pBtn_SaveGame; | |
707 extern struct GUIButton *pBtn_NewGame; | |
708 | |
709 extern struct GUIButton *pBtn_SliderRight; | |
710 extern struct GUIButton *pBtn_SliderLeft; | |
711 | |
712 | |
713 extern struct GUIButton *pBtnDownArrow; | |
714 extern struct GUIButton *pBtnArrowUp; | |
715 extern struct GUIButton *pBtnCancel; | |
716 extern struct GUIButton *pBtnLoadSlot; | |
717 | |
718 | |
1202 | 719 extern std::array<GUIButton*, 4> pCreationUI_BtnPressRight2; |
720 extern std::array<GUIButton*, 4> pCreationUI_BtnPressLeft2; | |
721 extern std::array<GUIButton*, 4> pCreationUI_BtnPressLeft; | |
722 extern std::array<GUIButton*, 4> pCreationUI_BtnPressRight; | |
983 | 723 |
995 | 724 extern int uTextureID_GameUI_CharSelectionFrame; // 50C98C |
983 | 725 |
1004 | 726 extern unsigned int ui_mainmenu_copyright_color; |
995 | 727 extern unsigned int ui_character_default_text_color; |
728 extern unsigned int ui_character_skill_highlight_color; | |
729 extern unsigned int ui_character_header_text_color; | |
730 extern unsigned int ui_character_bonus_text_color; | |
731 extern unsigned int ui_character_bonus_text_color_neg; | |
732 extern unsigned int ui_character_skill_upgradeable_color; | |
733 extern unsigned int ui_character_skill_default_color; | |
1202 | 734 extern std::array<unsigned int, 6> ui_character_award_color; |
995 | 735 extern unsigned int ui_game_minimap_outline_color; |
736 extern unsigned int ui_game_minimap_actor_friendly_color; | |
737 extern unsigned int ui_game_minimap_actor_hostile_color; | |
738 extern unsigned int ui_game_minimap_actor_corpse_color; | |
739 extern unsigned int ui_game_minimap_decoration_color_1; | |
740 extern unsigned int ui_game_minimap_projectile_color; | |
741 extern unsigned int ui_game_minimap_treasure_color; | |
1202 | 742 extern std::array<unsigned int, 24> ui_game_character_record_playerbuff_colors; |
1031 | 743 extern unsigned int ui_gamemenu_video_gamma_title_color; |
744 extern unsigned int ui_gamemenu_keys_action_name_color; | |
745 extern unsigned int ui_gamemenu_keys_key_selection_blink_color_1; | |
746 extern unsigned int ui_gamemenu_keys_key_selection_blink_color_2; | |
747 extern unsigned int ui_gamemenu_keys_key_default_color; | |
995 | 748 extern unsigned int ui_book_quests_title_color; |
749 extern unsigned int ui_book_quests_text_color; | |
750 extern unsigned int ui_book_autonotes_title_color; | |
751 extern unsigned int ui_book_autonotes_text_color; | |
752 extern unsigned int ui_book_map_title_color; | |
1004 | 753 extern unsigned int ui_book_map_coordinates_color; |
754 extern unsigned int ui_book_calendar_title_color; | |
755 extern unsigned int ui_book_calendar_time_color; | |
756 extern unsigned int ui_book_calendar_day_color; | |
757 extern unsigned int ui_book_calendar_month_color; | |
758 extern unsigned int ui_book_calendar_year_color; | |
759 extern unsigned int ui_book_calendar_moon_color; | |
760 extern unsigned int ui_book_calendar_location_color; | |
761 extern unsigned int ui_book_journal_title_color; | |
762 extern unsigned int ui_book_journal_text_color; | |
763 extern unsigned int ui_book_journal_text_shadow; |