comparison GUI/GUIWindow.h @ 2548:87e5590d034b

All Books windows are refactored into respective classes
author a.parshin
date Tue, 12 May 2015 03:24:19 +0200
parents fed97f15d1e1
children 3121fb54a110
comparison
equal deleted inserted replaced
2547:fed97f15d1e1 2548:87e5590d034b
298 WINDOW_SaveLoadBtn = 94, 298 WINDOW_SaveLoadBtn = 94,
299 WINDOW_LoadGame_CancelBtn = 95, // OnCancel3 299 WINDOW_LoadGame_CancelBtn = 95, // OnCancel3
300 WINDOW_CloseRestWindowBtn = 96, 300 WINDOW_CloseRestWindowBtn = 96,
301 WINDOW_ExitCharacterWindow = 97, // OnCancel2 301 WINDOW_ExitCharacterWindow = 97, // OnCancel2
302 WINDOW_RestWindow = 0x62, 302 WINDOW_RestWindow = 0x62,
303 WINDOW_BooksWindow = 99, 303 WINDOW_BooksButtonOverlay = 99,
304 WINDOW_CharacterWindow_Stats = 0x64, 304 WINDOW_CharacterWindow_Stats = 0x64,
305 WINDOW_CharacterWindow_Skills = 0x65, 305 WINDOW_CharacterWindow_Skills = 0x65,
306 WINDOW_CharacterWindow_Awards = 0x66, 306 WINDOW_CharacterWindow_Awards = 0x66,
307 WINDOW_CharacterWindow_Inventory = 0x67, 307 WINDOW_CharacterWindow_Inventory = 0x67,
308 WINDOW_68 = 104, 308 WINDOW_68 = 104,
341 void DrawText(GUIFont *a2, signed int uX, int uY, unsigned short uFontColor, const char *Str, bool present_time_transparency, int max_text_height, signed int uFontShadowColor); 341 void DrawText(GUIFont *a2, signed int uX, int uY, unsigned short uFontColor, const char *Str, bool present_time_transparency, int max_text_height, signed int uFontShadowColor);
342 void DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing); 342 void DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
343 void DrawShops_next_generation_time_string(__int64 next_generation_time); 343 void DrawShops_next_generation_time_string(__int64 next_generation_time);
344 void HouseDialogManager(); 344 void HouseDialogManager();
345 void OpenSpellBook(); 345 void OpenSpellBook();
346 void InitializeBookView();
347 void DrawMessageBox(int arg0); 346 void DrawMessageBox(int arg0);
348 GUIButton *GetControl(unsigned int uID); 347 GUIButton *GetControl(unsigned int uID);
349 void _41D08F_set_keyboard_control_group(int num_buttons, int a3, int a4, int a5); 348 void _41D08F_set_keyboard_control_group(int num_buttons, int a3, int a4, int a5);
350 void _41D73D_draw_buff_tooltip(); 349 void _41D73D_draw_buff_tooltip();
351 350
378 GUIButton *pControlsTail; 377 GUIButton *pControlsTail;
379 }; 378 };
380 #pragma pack(pop) 379 #pragma pack(pop)
381 380
382 381
383 struct GUIWindow_Book : public GUIWindow 382
384 { 383 struct GUIWindow_BooksButtonOverlay : public GUIWindow
385 GUIWindow_Book(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : 384 {
386 GUIWindow(x, y, width, height, button, hint) 385 GUIWindow_BooksButtonOverlay(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
387 {
388 InitializeBookView();
389 }
390 virtual ~GUIWindow_Book() {}
391
392 virtual void Update();
393 virtual void Release();
394 };
395 struct GUIWindow_BooksWindow : public GUIWindow
396 {
397 GUIWindow_BooksWindow(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
398 GUIWindow(x, y, width, height, button, hint) 386 GUIWindow(x, y, width, height, button, hint)
399 {} 387 {}
400 virtual ~GUIWindow_BooksWindow() {} 388 virtual ~GUIWindow_BooksButtonOverlay() {}
401 389
402 virtual void Update(); 390 virtual void Update();
403 }; 391 };
404 struct GUIWindow_Dialogue : public GUIWindow 392 struct GUIWindow_Dialogue : public GUIWindow
405 { 393 {
707 695
708 696
709 697
710 698
711 // book ui 699 // book ui
712 void BookUI_Draw(WindowType book); 700 void InitializeSpellBookTextures();
713 void BookUI_Questbook_Draw();
714 void BookUI_Autonotes_Draw();
715 void BookUI_Map_Draw();
716 void BookUI_Calendar_Draw();
717 void BookUI_Journal_Draw();
718
719 void OnCloseBook();
720 void InitializeBookTextures();
721 void InitializeBookFonts();
722 void DrawSpellBookContent(Player *player); 701 void DrawSpellBookContent(Player *player);
723 unsigned int DrawLloydBeaconsScreen();
724 void BookUI_DrawTownPortalMap();
725 void LoadSpellbook(unsigned int uID); // idb 702 void LoadSpellbook(unsigned int uID); // idb
726 void DrawSpellDescriptionPopup(int spell_index); 703 void DrawSpellDescriptionPopup(int spell_index);
727 void OnCloseSpellBookPage(); 704 void OnCloseSpellBookPage();
728 void OnCloseSpellBook(); 705 void OnCloseSpellBook();
729 706
900 extern struct GUIWindow *pGUIWindow_CurrentMenu; 877 extern struct GUIWindow *pGUIWindow_CurrentMenu;
901 extern struct GUIWindow *ptr_507BD0; 878 extern struct GUIWindow *ptr_507BD0;
902 extern struct GUIWindow *pGUIWindow_Settings; 879 extern struct GUIWindow *pGUIWindow_Settings;
903 extern struct GUIWindow *pModalWindow; 880 extern struct GUIWindow *pModalWindow;
904 extern struct GUIWindow *pGUIWindow_EscMessageWindow; 881 extern struct GUIWindow *pGUIWindow_EscMessageWindow;
905 extern struct GUIWindow *pBooksWindow; 882 extern struct GUIWindow *pBooksButtonOverlay;
906 extern struct GUIWindow *pGUIWindow2; 883 extern struct GUIWindow *pGUIWindow2;
907 884
908 885
909 extern struct GUIButton *pBtn_Resume; 886 extern struct GUIButton *pBtn_Resume;
910 extern struct GUIButton *pBtn_QuitGame; 887 extern struct GUIButton *pBtn_QuitGame;