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