Mercurial > mm7
comparison GUIWindow.h @ 1018:9ac94d00012e
Merge
author | Grumpy7 |
---|---|
date | Tue, 21 May 2013 02:24:31 +0200 |
parents | c45d51b3f4f4 9e823ad5eaa6 |
children | 3413ad40cc88 |
comparison
equal
deleted
inserted
replaced
1017:af20650a052f | 1018:9ac94d00012e |
---|---|
299 WINDOW_TownPortal = 195, | 299 WINDOW_TownPortal = 195, |
300 WINDOW_QuestBook = 200, | 300 WINDOW_QuestBook = 200, |
301 WINDOW_AutonotesBook = 0xC9, | 301 WINDOW_AutonotesBook = 0xC9, |
302 WINDOW_MapsBook = 0xCA, | 302 WINDOW_MapsBook = 0xCA, |
303 WINDOW_CalendarBook = 0xCB, | 303 WINDOW_CalendarBook = 0xCB, |
304 WINDOW_HistoryBook = 0xE0, | 304 WINDOW_JournalBook = 0xE0, |
305 }; | 305 }; |
306 | 306 |
307 struct GUIButton; | 307 struct GUIButton; |
308 struct Texture; | 308 struct Texture; |
309 | 309 |
319 | 319 |
320 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, | 320 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, |
321 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, Texture *pTextures, ...); | 321 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, Texture *pTextures, ...); |
322 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2); | 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); | 323 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8); |
324 char DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor); | 324 void DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor); |
325 void DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing); | 325 void DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing); |
326 void DrawCurrentTime(__int64 a2); | 326 void DrawCurrentTime(__int64 a2); |
327 void HouseDialogManager(); | 327 void HouseDialogManager(); |
328 void OpenSpellBook(); | 328 void OpenSpellBook(); |
329 void InitializeBookView(); | 329 void InitializeBookView(); |
330 void DrawMessageBox(int arg0); | 330 void DrawMessageBox(int arg0); |
331 GUIButton *GetControl(unsigned int uID); | 331 GUIButton *GetControl(unsigned int uID); |
332 void Release(); | 332 void Release(); |
333 void _41D08F_set_keyboard_control_group(int a2, int a3, int a4, int a5); | 333 void _41D08F_set_keyboard_control_group(int a2, int a3, int a4, int a5); |
334 void DrawQuickCharRecord(); | 334 void _41D73D_draw_buff_tooltip(); |
335 char _41D73D_draw_buff_tooltip(); | |
336 | 335 |
337 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eType, int a4, int a5); | 336 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eType, int a4, int a5); |
338 | 337 |
339 unsigned int uFrameX; | 338 unsigned int uFrameX; |
340 unsigned int uFrameY; | 339 unsigned int uFrameY; |
441 }; | 440 }; |
442 #pragma pack(pop) | 441 #pragma pack(pop) |
443 | 442 |
444 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb | 443 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb |
445 | 444 |
446 | 445 extern struct GUIMessageQueue *pMessageQueue_50C9E8; // idb |
447 | 446 |
448 | 447 |
449 | 448 |
450 void OnSelectNPCDialogueOption(DIALOGUE_TYPE newDialogueType); | 449 void OnSelectNPCDialogueOption(DIALOGUE_TYPE newDialogueType); |
451 | 450 |
481 void GameUI_SetFooterString(const char *pStr); | 480 void GameUI_SetFooterString(const char *pStr); |
482 void GameUI_DrawMinimap(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW, unsigned int uZoom, unsigned int bRedrawOdmMinimap); | 481 void GameUI_DrawMinimap(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW, unsigned int uZoom, unsigned int bRedrawOdmMinimap); |
483 void GameUI_DrawPartySpells(); | 482 void GameUI_DrawPartySpells(); |
484 void GameUI_DrawTorchlightAndWizardEye(); | 483 void GameUI_DrawTorchlightAndWizardEye(); |
485 void GameUI_DrawCharacterSelectionFrame(); | 484 void GameUI_DrawCharacterSelectionFrame(); |
485 void GameUI_CharacterQuickRecord_Draw(GUIWindow *window, Player *player); | |
486 | 486 |
487 | 487 |
488 | 488 |
489 | 489 |
490 | 490 |
495 | 495 |
496 | 496 |
497 // character ui | 497 // character ui |
498 struct GUIWindow *CharacterUI_Initialize(unsigned int _this); | 498 struct GUIWindow *CharacterUI_Initialize(unsigned int _this); |
499 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType); | 499 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType); |
500 char CharacterUI_SkillsTab_ShowHint(); | 500 void CharacterUI_SkillsTab_ShowHint(); |
501 void CharacterUI_StatsTab_ShowHint(); | 501 void CharacterUI_StatsTab_ShowHint(); |
502 char CharacterUI_StatsTab_Draw(Player *player); | 502 void CharacterUI_StatsTab_Draw(Player *player); |
503 void CharacterUI_SkillsTab_CreateButtons(); | 503 void CharacterUI_SkillsTab_CreateButtons(); |
504 void CharacterUI_SkillsTab_Draw(Player *player); | 504 void CharacterUI_SkillsTab_Draw(Player *player); |
505 void CharacterUI_AwardsTab_Draw(Player *player); | 505 void CharacterUI_AwardsTab_Draw(Player *player); |
506 void CharacterUI_InventoryTab_Draw(Player *player, bool a2); | 506 void CharacterUI_InventoryTab_Draw(Player *player, bool a2); |
507 void CharacterUI_CharacterScreen_Draw(Player *player); | 507 void CharacterUI_CharacterScreen_Draw(Player *player); |
519 void BookUI_Draw(WindowType book); | 519 void BookUI_Draw(WindowType book); |
520 void BookUI_Questbook_Draw(); | 520 void BookUI_Questbook_Draw(); |
521 void BookUI_Autonotes_Draw(); | 521 void BookUI_Autonotes_Draw(); |
522 void BookUI_Map_Draw(); | 522 void BookUI_Map_Draw(); |
523 void BookUI_Calendar_Draw(); | 523 void BookUI_Calendar_Draw(); |
524 void BookUI_Journal_Draw(); | |
524 | 525 |
525 void OnCloseSpellBook(); | 526 void OnCloseSpellBook(); |
526 void InitializeBookTextures(); | 527 void InitializeBookTextures(); |
527 void InitializeBookFonts(); | 528 void InitializeBookFonts(); |
528 void DrawSpellBookContent(); | 529 void DrawSpellBookContent(Player *player); |
529 void DrawBook_History(); | |
530 unsigned int __cdecl DrawLloydBeaconsScreen(); | 530 unsigned int __cdecl DrawLloydBeaconsScreen(); |
531 void DrawTownPortalScreen(); | 531 void DrawTownPortalScreen(); |
532 void LoadSpellbook(unsigned int uID); // idb | 532 void LoadSpellbook(unsigned int uID); // idb |
533 void DrawSpellDescriptionPopup(int spell_index); | 533 void DrawSpellDescriptionPopup(int spell_index); |
534 | 534 void sub_41140B(); |
535 void sub_411473(); | |
535 | 536 |
536 | 537 |
537 | 538 |
538 | 539 |
539 | 540 |
559 | 560 |
560 | 561 |
561 #pragma pack(push, 1) | 562 #pragma pack(push, 1) |
562 struct GUIButton | 563 struct GUIButton |
563 { | 564 { |
564 char DrawLabel(const char *edx0, struct GUIFont *pFont, int a5, int *a9); | 565 void DrawLabel(const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor); |
565 | 566 |
566 void Release(); | 567 void Release(); |
567 | 568 |
568 | 569 |
569 unsigned int uX; | 570 unsigned int uX; |
689 extern GUIButton *pCreationUI_BtnPressLeft[4]; | 690 extern GUIButton *pCreationUI_BtnPressLeft[4]; |
690 extern GUIButton *pCreationUI_BtnPressRight[4]; | 691 extern GUIButton *pCreationUI_BtnPressRight[4]; |
691 | 692 |
692 extern int uTextureID_GameUI_CharSelectionFrame; // 50C98C | 693 extern int uTextureID_GameUI_CharSelectionFrame; // 50C98C |
693 | 694 |
695 extern unsigned int ui_mainmenu_copyright_color; | |
694 extern unsigned int ui_character_default_text_color; | 696 extern unsigned int ui_character_default_text_color; |
695 extern unsigned int ui_character_skill_highlight_color; | 697 extern unsigned int ui_character_skill_highlight_color; |
696 extern unsigned int ui_character_header_text_color; | 698 extern unsigned int ui_character_header_text_color; |
697 extern unsigned int ui_character_bonus_text_color; | 699 extern unsigned int ui_character_bonus_text_color; |
698 extern unsigned int ui_character_bonus_text_color_neg; | 700 extern unsigned int ui_character_bonus_text_color_neg; |
704 extern unsigned int ui_game_minimap_actor_hostile_color; | 706 extern unsigned int ui_game_minimap_actor_hostile_color; |
705 extern unsigned int ui_game_minimap_actor_corpse_color; | 707 extern unsigned int ui_game_minimap_actor_corpse_color; |
706 extern unsigned int ui_game_minimap_decoration_color_1; | 708 extern unsigned int ui_game_minimap_decoration_color_1; |
707 extern unsigned int ui_game_minimap_projectile_color; | 709 extern unsigned int ui_game_minimap_projectile_color; |
708 extern unsigned int ui_game_minimap_treasure_color; | 710 extern unsigned int ui_game_minimap_treasure_color; |
711 extern unsigned int ui_game_character_record_playerbuff_colors[24]; | |
709 extern unsigned int ui_book_quests_title_color; | 712 extern unsigned int ui_book_quests_title_color; |
710 extern unsigned int ui_book_quests_text_color; | 713 extern unsigned int ui_book_quests_text_color; |
711 extern unsigned int ui_book_autonotes_title_color; | 714 extern unsigned int ui_book_autonotes_title_color; |
712 extern unsigned int ui_book_autonotes_text_color; | 715 extern unsigned int ui_book_autonotes_text_color; |
713 extern unsigned int ui_book_map_title_color; | 716 extern unsigned int ui_book_map_title_color; |
714 extern unsigned int ui_book_map_coordinates_color; | 717 extern unsigned int ui_book_map_coordinates_color; |
718 extern unsigned int ui_book_calendar_title_color; | |
719 extern unsigned int ui_book_calendar_time_color; | |
720 extern unsigned int ui_book_calendar_day_color; | |
721 extern unsigned int ui_book_calendar_month_color; | |
722 extern unsigned int ui_book_calendar_year_color; | |
723 extern unsigned int ui_book_calendar_moon_color; | |
724 extern unsigned int ui_book_calendar_location_color; | |
725 extern unsigned int ui_book_journal_title_color; | |
726 extern unsigned int ui_book_journal_text_color; | |
727 extern unsigned int ui_book_journal_text_shadow; |