0
|
1 #pragma once
|
|
2 #include "GUIButton.h"
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8 /* 251 */
|
|
9 enum MENU_STATE : __int32
|
|
10 {
|
|
11 MENU_MAIN = 0x0,
|
|
12 MENU_NEWGAME = 0x1,
|
|
13 MENU_CREDITS = 0x2,
|
|
14 MENU_SAVELOAD = 0x3,
|
|
15 MENU_4 = 0x4,
|
|
16 MENU_5 = 0x5,
|
|
17 MENU_CREATEPARTY = 0x6,
|
|
18 MENU_7 = 0x7,
|
|
19 MENU_Credits = 0x8,
|
|
20 MENU_LOAD = 0x9,
|
|
21 MENU_10 = 0xA,
|
|
22 };
|
|
23
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28
|
|
29
|
|
30
|
|
31
|
|
32 /* 298 */
|
|
33 enum WindowType
|
|
34 {
|
|
35 WINDOW_Credits = 0x1,
|
|
36 WINDOW_CharacterRecord = 0x4,
|
|
37 WINDOW_Options = 0x6,
|
|
38 WINDOW_Book = 0x9,
|
|
39 WINDOW_Chest = 0x14,
|
|
40 WINDOW_HouseInterior = 0x19,
|
|
41 WINDOW_FinalWindow = 0x46,
|
|
42 WINDOW_KeyMappingOptions = 0x69,
|
|
43 WINDOW_VideoOptions = 0x6A,
|
|
44 };
|
|
45
|
|
46 /* 155 */
|
|
47 #pragma pack(push, 1)
|
|
48 struct GUIWindow
|
|
49 {
|
|
50 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7, unsigned int uControlID, unsigned int uControlParam, unsigned __int8 uHotkey, const char *pName, Texture *pTextures, ...);
|
|
51 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2);
|
|
52 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8);
|
|
53 char DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor);
|
|
54 char *DrawText2(GUIFont *a2, unsigned int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
|
|
55 char *_4B1854(__int64 a2);
|
|
56 void _4B3157();
|
|
57 GUIButton *_411621();
|
|
58 void InitializeBookView();
|
|
59 void _415551(int arg0);
|
|
60 GUIButton *GetControl(unsigned int uID);
|
|
61 void Release();
|
|
62 void _41D08F(int a2, int a3, int a4, int a5);
|
|
63 char _41D3B7();
|
|
64 char _41D73D_draw_buff_tooltip();
|
|
65
|
|
66 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, unsigned int uWindowType, int a4, int a5);
|
|
67
|
|
68 unsigned int uFrameX;
|
|
69 unsigned int uFrameY;
|
|
70 unsigned int uFrameWidth;
|
|
71 unsigned int uFrameHeight;
|
|
72 unsigned int uFrameZ;
|
|
73 unsigned int uFrameW;
|
|
74 unsigned int uWindowType;
|
|
75 void *ptr_1C;
|
|
76 unsigned int uNumControls;
|
|
77 int field_24;
|
|
78 int field_28;
|
|
79 int field_2C_focus_id;
|
|
80 int field_30;
|
|
81 int field_34;
|
|
82 int field_38;
|
|
83 int field_3C;
|
|
84 int field_40;
|
|
85 int field_44;
|
|
86 char *str_48;
|
|
87 GUIButton *pControlsHead;
|
|
88 GUIButton *pControlsTail;
|
|
89 };
|
|
90 #pragma pack(pop)
|
|
91
|
|
92
|
|
93
|
|
94
|
|
95
|
|
96
|
|
97 /* 296 */
|
|
98 enum UIMessageType
|
|
99 {
|
|
100 UIMSG_00 = 0x0,
|
|
101 UIMSG_ChangeGameState = 0x5,
|
|
102 UIMSG_PlayArcomage = 0x1D,
|
|
103 UIMSG_LoadGame = 0x52,
|
|
104 UIMSG_SaveGame = 0x53,
|
|
105 UIMSG_ShowStatus_DateTime = 0x5C,
|
|
106 UIMSG_ShowStatus_ManaHP = 0x5D,
|
|
107 UIMSG_ShowStatus_Player = 0x5E,
|
|
108 UIMSG_ShowStatus_Food = 0x64,
|
|
109 UIMSG_ShowStatus_Funds = 0x65,
|
|
110 UIMSG_SelectCharacter = 0x6E,
|
|
111 UIMSG_ChangeSoundVolume = 0x6F,
|
|
112 UIMSG_ChangeMusicVolume = 0x70,
|
|
113 UIMSG_CloseBook = 0x71,
|
|
114 UIMSG_SkillUp = 0x79,
|
|
115 UIMSG_StartNewGame = 0x7C,
|
|
116 UIMSG_Game_OpenLoadGameDialog = 0x7D,
|
|
117 UIMSG_Game_OpenOptionsDialog = 0x7F,
|
|
118 UIMSG_SetGraphicsMode = 0x83,
|
|
119 UIMSG_Quit = 0x84,
|
|
120 UIMSG_StartNPCDialogue = 0xA1,
|
|
121 UIMSG_A2 = 0xA2,
|
|
122 UIMSG_A3 = 0xA3,
|
|
123 UIMSG_A4 = 0xA4,
|
|
124 UIMSG_A5 = 0xA5,
|
|
125 UIMSG_A6 = 0xA6,
|
|
126 UIMSG_A7 = 0xA7,
|
|
127 UIMSG_A8 = 0xA8,
|
|
128 UIMSG_A9 = 0xA9,
|
|
129 UIMSG_AA = 0xAA,
|
|
130 UIMSG_AB = 0xAB,
|
|
131 UIMSG_AC = 0xAC,
|
|
132 UIMSG_AD = 0xAD,
|
|
133 UIMSG_AE = 0xAE,
|
|
134 UIMSG_AF = 0xAF,
|
|
135 UIMSG_CycleCharacters = 0xB0,
|
|
136 UIMSG_B1 = 0xB1,
|
|
137 UIMSG_B2 = 0xB2,
|
|
138 UIMSG_B3 = 0xB3,
|
|
139 UIMSG_B4 = 0xB4,
|
|
140 UIMSG_B5 = 0xB5,
|
|
141 UIMSG_B6 = 0xB6,
|
|
142 UIMSG_B7 = 0xB7,
|
|
143 UIMSG_SetTurnSpeed = 0xB8,
|
|
144 UIMSG_ToggleWalkSound = 0xB9,
|
|
145 UIMSG_ChangeVoiceVolume = 0xBA,
|
|
146 UIMSG_ToggleShowDamage = 0xBB,
|
|
147 UIMSG_BC = 0xBC,
|
|
148 UIMSG_BD = 0xBD,
|
|
149 UIMSG_BE = 0xBE,
|
|
150 UIMSG_BF = 0xBF,
|
|
151 UIMSG_C0 = 0xC0,
|
|
152 UIMSG_C1 = 0xC1,
|
|
153 UIMSG_C2 = 0xC2,
|
|
154 UIMSG_C3 = 0xC3,
|
|
155 UIMSG_C4 = 0xC4,
|
|
156 UIMSG_ShowFinalWindow = 0xC5,
|
|
157 UIMSG_C6 = 0xC6,
|
|
158 UIMSG_C7 = 0xC7,
|
|
159 UIMSG_OpenQuestBook = 0xC8,
|
|
160 UIMSG_OpenAutonotes = 0xC9,
|
|
161 UIMSG_OpenMapBook = 0xCA,
|
|
162 UIMSG_OpenCalendar = 0xCB,
|
|
163 UIMSG_CC = 0xCC,
|
|
164 UIMSG_CD = 0xCD,
|
|
165 UIMSG_CE = 0xCE,
|
|
166 UIMSG_CF = 0xCF,
|
|
167 UIMSG_D0 = 0xD0,
|
|
168 UIMSG_D1 = 0xD1,
|
|
169 UIMSG_D2 = 0xD2,
|
|
170 UIMSG_D3 = 0xD3,
|
|
171 UIMSG_D4 = 0xD4,
|
|
172 UIMSG_D5 = 0xD5,
|
|
173 UIMSG_D6 = 0xD6,
|
|
174 UIMSG_OpenHistoryBook = 0xE0,
|
|
175 UIMSG_ToggleAlwaysRun = 0xE1,
|
|
176 UIMSG_ToggleFlipOnExit = 0xE2,
|
|
177 UIMSG_OpenRestUI = 0x199,
|
|
178 UIMSG_OpenKeyMappingOptions = 0x19F,
|
|
179 UIMSG_ResetKeyMapping = 0x1A2,
|
|
180 UIMSG_OpenVideoOptions = 0x1A5,
|
|
181 UIMSG_ToggleBloodsplats = 0x1A6,
|
|
182 UIMSG_ToggleColoredLights = 0x1A7,
|
|
183 UIMSG_ToggleTint = 0x1A8,
|
|
184 };
|
|
185
|
|
186
|
|
187
|
|
188
|
|
189
|
|
190
|
|
191 /* 249 */
|
|
192 #pragma pack(push, 1)
|
|
193 struct GUIMessage
|
|
194 {
|
|
195 enum UIMessageType eType;
|
|
196 int param;
|
|
197 int field_8;
|
|
198 };
|
|
199 #pragma pack(pop)
|
|
200
|
|
201
|
|
202
|
|
203
|
|
204
|
|
205 /* 250 */
|
|
206 #pragma pack(push, 1)
|
|
207 struct GUIMessageQueue
|
|
208 {
|
|
209 inline GUIMessageQueue():
|
|
210 uNumMessages(0)
|
|
211 {}
|
|
212
|
|
213 void PopMessage(enum UIMessageType *pType, int *pParam, int *a4);
|
|
214 void SendMessage(int a2, int a3, unsigned int a4);
|
|
215
|
|
216 unsigned int uNumMessages;
|
|
217 GUIMessage pMessages[40];
|
|
218 };
|
|
219 #pragma pack(pop)
|
|
220
|
|
221 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
|
|
222
|
|
223
|
|
224
|
|
225
|
|
226 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb
|
|
227 extern struct GUIWindow *pWindow_Credits;
|
|
228 extern struct GUIWindow pWindowList[20]; |