Mercurial > mm7
comparison GUI/GUIWindow.h @ 2547:fed97f15d1e1
* SaveLoad
* QuickReference
* Modal
* Character
author | a.parshin |
---|---|
date | Tue, 12 May 2015 01:45:31 +0200 |
parents | 4087cbc62706 |
children | 87e5590d034b |
comparison
equal
deleted
inserted
replaced
2546:4087cbc62706 | 2547:fed97f15d1e1 |
---|---|
377 GUIButton *pControlsHead; | 377 GUIButton *pControlsHead; |
378 GUIButton *pControlsTail; | 378 GUIButton *pControlsTail; |
379 }; | 379 }; |
380 #pragma pack(pop) | 380 #pragma pack(pop) |
381 | 381 |
382 struct GUIWindow_CharacterRecord : public GUIWindow | 382 |
383 { | |
384 GUIWindow_CharacterRecord(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | |
385 GUIWindow(x, y, width, height, button, hint) | |
386 {} | |
387 virtual ~GUIWindow_CharacterRecord() {} | |
388 | |
389 virtual void Update(); | |
390 }; | |
391 struct GUIWindow_Book : public GUIWindow | 383 struct GUIWindow_Book : public GUIWindow |
392 { | 384 { |
393 GUIWindow_Book(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | 385 GUIWindow_Book(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : |
394 GUIWindow(x, y, width, height, button, hint) | 386 GUIWindow(x, y, width, height, button, hint) |
395 { | 387 { |
404 { | 396 { |
405 GUIWindow_BooksWindow(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | 397 GUIWindow_BooksWindow(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : |
406 GUIWindow(x, y, width, height, button, hint) | 398 GUIWindow(x, y, width, height, button, hint) |
407 {} | 399 {} |
408 virtual ~GUIWindow_BooksWindow() {} | 400 virtual ~GUIWindow_BooksWindow() {} |
409 | |
410 virtual void Update(); | |
411 }; | |
412 struct GUIWindow_QuickReference : public GUIWindow | |
413 { | |
414 GUIWindow_QuickReference(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | |
415 GUIWindow(x, y, width, height, button, hint) | |
416 {} | |
417 virtual ~GUIWindow_QuickReference() {} | |
418 | 401 |
419 virtual void Update(); | 402 virtual void Update(); |
420 }; | 403 }; |
421 struct GUIWindow_Dialogue : public GUIWindow | 404 struct GUIWindow_Dialogue : public GUIWindow |
422 { | 405 { |
455 } | 438 } |
456 virtual ~GUIWindow_Chest() {} | 439 virtual ~GUIWindow_Chest() {} |
457 | 440 |
458 virtual void Update(); | 441 virtual void Update(); |
459 }; | 442 }; |
460 struct GUIWindow_Save : public GUIWindow | |
461 { | |
462 GUIWindow_Save(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | |
463 GUIWindow(x, y, width, height, button, hint) | |
464 {} | |
465 virtual ~GUIWindow_Save() {} | |
466 | |
467 virtual void Update(); | |
468 }; | |
469 struct GUIWindow_Load : public GUIWindow | |
470 { | |
471 GUIWindow_Load(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | |
472 GUIWindow(x, y, width, height, button, hint) | |
473 {} | |
474 virtual ~GUIWindow_Load() {} | |
475 | |
476 virtual void Update(); | |
477 }; | |
478 struct GUIWindow_House : public GUIWindow | 443 struct GUIWindow_House : public GUIWindow |
479 { | 444 { |
480 GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint); | 445 GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint); |
481 virtual ~GUIWindow_House() {} | 446 virtual ~GUIWindow_House() {} |
482 | 447 |
510 }; | 475 }; |
511 struct GUIWindow_Inventory_CastSpell : public GUIWindow | 476 struct GUIWindow_Inventory_CastSpell : public GUIWindow |
512 { | 477 { |
513 GUIWindow_Inventory_CastSpell(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint); | 478 GUIWindow_Inventory_CastSpell(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint); |
514 virtual ~GUIWindow_Inventory_CastSpell() {} | 479 virtual ~GUIWindow_Inventory_CastSpell() {} |
515 | |
516 virtual void Update(); | |
517 }; | |
518 struct GUIWindow_Modal : public GUIWindow | |
519 { | |
520 GUIWindow_Modal(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) : | |
521 GUIWindow(x, y, width, height, button, hint) | |
522 {} | |
523 virtual ~GUIWindow_Modal() {} | |
524 | 480 |
525 virtual void Update(); | 481 virtual void Update(); |
526 }; | 482 }; |
527 struct OnButtonClick : public GUIWindow | 483 struct OnButtonClick : public GUIWindow |
528 { | 484 { |
698 extern std::array<struct GUIWindow *, 20> pWindowList; | 654 extern std::array<struct GUIWindow *, 20> pWindowList; |
699 | 655 |
700 | 656 |
701 | 657 |
702 | 658 |
703 void ModalWindow(const char *pStrHint, UIMessageType OnRelease_message); | |
704 void ModalWindow_ShowHint(); | |
705 void ModalWindow_Release(); | |
706 | 659 |
707 | 660 |
708 | 661 |
709 void draw_leather(); | 662 void draw_leather(); |
710 | 663 |
712 // main menu ui | 665 // main menu ui |
713 void MainMenuUI_LoadFontsAndSomeStuff(); | 666 void MainMenuUI_LoadFontsAndSomeStuff(); |
714 void MainMenuUI_Create(); | 667 void MainMenuUI_Create(); |
715 MENU_STATE MainMenuUI_Credits_Loop(); | 668 MENU_STATE MainMenuUI_Credits_Loop(); |
716 | 669 |
717 // save & load ui | |
718 GUIWindow *SaveUI_Load(enum CURRENT_SCREEN screen); | |
719 void SaveUI_Draw(); | |
720 | |
721 void LoadUI_Draw(); | |
722 void LoadUI_Load(unsigned int uDialogueType); // idb | |
723 | |
724 // game ui | 670 // game ui |
725 void GameUI_DrawRightPanel(); | 671 void GameUI_DrawRightPanel(); |
726 void GameUI_DrawRightPanelFrames(); | 672 void GameUI_DrawRightPanelFrames(); |
727 void GameUI_DrawRightPanelItems(); | 673 void GameUI_DrawRightPanelItems(); |
728 void GameUI_QuickRef_Draw(); | |
729 void GameUI_DrawFoodAndGold(); | 674 void GameUI_DrawFoodAndGold(); |
730 void GameUI_DrawLifeManaBars(); | 675 void GameUI_DrawLifeManaBars(); |
731 void GameUI_DrawHiredNPCs(); | 676 void GameUI_DrawHiredNPCs(); |
732 void GameUI_DrawPortraits(unsigned int _this); | 677 void GameUI_DrawPortraits(unsigned int _this); |
733 void GameUI_Footer(); | 678 void GameUI_Footer(); |
747 | 692 |
748 | 693 |
749 | 694 |
750 | 695 |
751 // character ui | 696 // character ui |
752 struct GUIWindow *CharacterUI_Initialize(enum CURRENT_SCREEN); | |
753 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType); | 697 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType); |
754 void CharacterUI_SkillsTab_ShowHint(); | 698 void CharacterUI_SkillsTab_ShowHint(); |
755 void CharacterUI_StatsTab_ShowHint(); | 699 void CharacterUI_StatsTab_ShowHint(); |
756 void CharacterUI_StatsTab_Draw(Player *player); | |
757 void CharacterUI_SkillsTab_CreateButtons(); | |
758 void CharacterUI_SkillsTab_Draw(Player *player); | |
759 void CharacterUI_AwardsTab_Draw(Player *player); | |
760 void CharacterUI_InventoryTab_Draw(Player *player, bool a2); | 700 void CharacterUI_InventoryTab_Draw(Player *player, bool a2); |
761 void CharacterUI_CharacterScreen_Draw(Player *player); | |
762 void CharacterUI_DrawPaperdoll(Player *player); | 701 void CharacterUI_DrawPaperdoll(Player *player); |
763 void CharacterUI_DrawPaperdollWithRingOverlay(Player *player); | 702 void CharacterUI_DrawPaperdollWithRingOverlay(Player *player); |
764 void CharacterUI_ReleaseButtons(); | 703 void CharacterUI_ReleaseButtons(); |
765 | 704 |
766 unsigned int GetSkillColor(unsigned int uPlayerClass, PLAYER_SKILL_TYPE uPlayerSkillType, signed int skill_level); | 705 unsigned int GetSkillColor(unsigned int uPlayerClass, PLAYER_SKILL_TYPE uPlayerSkillType, signed int skill_level); |