Mercurial > mm7
comparison GUI/GUIWindow.h @ 2574:dd36326a9994
More texture refactoring
GetLeather -> DrawTextureCustomHeight
author | a.parshin |
---|---|
date | Mon, 07 Mar 2016 03:48:40 +0200 |
parents | 0c67be4ec900 |
children | a76d408c5132 |
comparison
equal
deleted
inserted
replaced
2573:0c67be4ec900 | 2574:dd36326a9994 |
---|---|
316 WINDOW_CalendarBook = 0xCB, | 316 WINDOW_CalendarBook = 0xCB, |
317 WINDOW_JournalBook = 0xE0, | 317 WINDOW_JournalBook = 0xE0, |
318 }; | 318 }; |
319 | 319 |
320 struct GUIButton; | 320 struct GUIButton; |
321 struct Texture; | 321 struct Texture_MM7; |
322 | 322 |
323 | 323 |
324 #define WINDOW_INPUT_NONE 0 | 324 #define WINDOW_INPUT_NONE 0 |
325 #define WINDOW_INPUT_IN_PROGRESS 1 | 325 #define WINDOW_INPUT_IN_PROGRESS 1 |
326 #define WINDOW_INPUT_CONFIRMED 2 | 326 #define WINDOW_INPUT_CONFIRMED 2 |
333 GUIWindow(); | 333 GUIWindow(); |
334 GUIWindow(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int pButton, const char* hint); | 334 GUIWindow(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int pButton, const char* hint); |
335 virtual ~GUIWindow() {} | 335 virtual ~GUIWindow() {} |
336 | 336 |
337 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, | 337 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, |
338 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, struct Texture *pTextures, ...); | 338 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, |
339 struct Image *pTextures, ...); | |
339 void DrawFlashingInputCursor(signed int uX, int uY, struct GUIFont *a2); | 340 void DrawFlashingInputCursor(signed int uX, int uY, struct GUIFont *a2); |
340 int DrawTextInRect(GUIFont *pFont, unsigned int uX, unsigned int uY, unsigned int uColor, const char *text, int rect_width, int reverse_text); | 341 int DrawTextInRect(GUIFont *pFont, unsigned int uX, unsigned int uY, unsigned int uColor, const char *text, int rect_width, int reverse_text); |
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 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); | 343 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); | 344 void DrawShops_next_generation_time_string(__int64 next_generation_time); |
680 int GetConditionDrawColor(unsigned int uConditionIdx); // idb | 681 int GetConditionDrawColor(unsigned int uConditionIdx); // idb |
681 void FillAwardsData(); | 682 void FillAwardsData(); |
682 void CreateAwardsScrollBar(); | 683 void CreateAwardsScrollBar(); |
683 void ReleaseAwardsScrollBar(); | 684 void ReleaseAwardsScrollBar(); |
684 void Inventory_ItemPopupAndAlchemy(); | 685 void Inventory_ItemPopupAndAlchemy(); |
685 void LoadThumbnailLloydTexture(unsigned int uSlot, unsigned int uPlayer); | |
686 unsigned int UI_GetHealthManaAndOtherQualitiesStringColor(signed int current_pos, signed int base_pos); | 686 unsigned int UI_GetHealthManaAndOtherQualitiesStringColor(signed int current_pos, signed int base_pos); |
687 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels); | 687 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels); |
688 struct GUIButton *__fastcall GUI_HandleHotkey(unsigned __int8 uHotkey); // idb | 688 struct GUIButton *__fastcall GUI_HandleHotkey(unsigned __int8 uHotkey); // idb |
689 void GUI_ReplaceHotkey(unsigned __int8 uOldHotkey, unsigned __int8 uNewHotkey, char bFirstCall); | 689 void GUI_ReplaceHotkey(unsigned __int8 uOldHotkey, unsigned __int8 uNewHotkey, char bFirstCall); |
690 void DrawBuff_remaining_time_string(int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font); | 690 void DrawBuff_remaining_time_string(int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font); |
711 void ShowNothingHereStatus(); | 711 void ShowNothingHereStatus(); |
712 int const_2(); | 712 int const_2(); |
713 | 713 |
714 | 714 |
715 void __fastcall ZBuffer_Fill(int *pZBuffer, int uTextureId, int iZValue); | 715 void __fastcall ZBuffer_Fill(int *pZBuffer, int uTextureId, int iZValue); |
716 void __fastcall ZBuffer_DoFill(int *pZBuffer, struct Texture *pTex, int uZValue); | 716 void __fastcall ZBuffer_DoFill(int *pZBuffer, struct Texture_MM7 *pTex, int uZValue); |
717 void __fastcall ZBuffer_DoFill2(int *pZBuffer, struct Texture *a2, int a3); // idb | 717 void __fastcall ZBuffer_DoFill2(int *pZBuffer, struct Texture_MM7 *a2, int a3); // idb |
718 | 718 |
719 | 719 |
720 | 720 |
721 | 721 |
722 | 722 |
730 | 730 |
731 | 731 |
732 #pragma pack(push, 1) | 732 #pragma pack(push, 1) |
733 struct GUIButton | 733 struct GUIButton |
734 { | 734 { |
735 GUIButton() | |
736 { | |
737 for (unsigned int i = 0; i < 5; ++i) | |
738 pTextures[i] = nullptr; | |
739 } | |
740 | |
735 void DrawLabel(const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor); | 741 void DrawLabel(const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor); |
736 | 742 |
737 void Release(); | 743 void Release(); |
738 | 744 |
739 | 745 |
750 int field_28; | 756 int field_28; |
751 int field_2C_is_pushed; | 757 int field_2C_is_pushed; |
752 GUIButton *pPrev; | 758 GUIButton *pPrev; |
753 GUIButton *pNext; | 759 GUIButton *pNext; |
754 struct GUIWindow *pParent; | 760 struct GUIWindow *pParent; |
755 struct Texture *pTextures[5]; | 761 struct Image *pTextures[5]; |
756 unsigned int uNumTextures; | 762 unsigned int uNumTextures; |
757 unsigned __int8 uHotkey; | 763 unsigned __int8 uHotkey; |
758 char pButtonName[32]; | 764 char pButtonName[32]; |
759 char field_75[71]; | 765 char field_75[71]; |
760 }; | 766 }; |
918 extern unsigned int ui_house_player_cant_interact_color; | 924 extern unsigned int ui_house_player_cant_interact_color; |
919 | 925 |
920 | 926 |
921 extern class Image *ui_exit_cancel_button_background; | 927 extern class Image *ui_exit_cancel_button_background; |
922 extern class Image *game_ui_right_panel_frame; | 928 extern class Image *game_ui_right_panel_frame; |
923 extern unsigned int uExitCancelTextureId; | 929 extern class Image *dialogue_ui_x_ok_u; |
930 extern class Image *dialogue_ui_x_x_u; | |
931 | |
932 extern class Image *ui_buttdesc2; | |
933 extern class Image *ui_buttyes2; | |
934 | |
935 extern class Image *ui_btn_npc_right; | |
936 extern class Image *ui_btn_npc_left; | |
937 | |
938 extern class Image *ui_ar_dn_dn; | |
939 extern class Image *ui_ar_dn_up; | |
940 extern class Image *ui_ar_up_dn; | |
941 extern class Image *ui_ar_up_up; | |
942 | |
943 extern class Image *ui_leather_mm6; | |
944 extern class Image *ui_leather_mm7; | |
945 | |
946 //extern unsigned int 507C20_gamma_slider_left_texid; // 507C20 | |
947 //extern unsigned int 507C24_gamma_slider_right_texid; // 507C24 |