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_FINISHED = 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: unsigned __int32
|
|
34 {
|
|
35 WINDOW_null = 0,
|
|
36 WINDOW_MainMenu = 0x1,
|
17
|
37 WINDOW_3 = 0x3,
|
0
|
38 WINDOW_CharacterRecord = 0x4,
|
|
39 WINDOW_Options = 0x6,
|
|
40 WINDOW_Book = 0x9,
|
17
|
41 WINDOW_A = 0xA, //10,
|
|
42 WINDOW_C = 0xC, //12,
|
|
43 WINDOW_10 = 0x10, //16,
|
|
44 WINDOW_ChangeLocation = 0x11, //17,
|
|
45 WINDOW_SpellBook = 0x12, //18,
|
|
46 WINDOW_GreetingNPC = 0x13, //19,
|
0
|
47 WINDOW_Chest = 0x14,
|
17
|
48 WINDOW_17 = 0x17,
|
0
|
49 WINDOW_MainMenu_Load = 0x18,
|
|
50 WINDOW_HouseInterior = 0x19,
|
17
|
51 WINDOW_1A = 0x1A, //26,
|
|
52 WINDOW_1B = 0x1B, //27,
|
|
53 WINDOW_1E = 0x1E, //30,
|
|
54 WINDOW_1F = 0x1F, //31,
|
0
|
55 WINDOW_FinalWindow = 0x46,
|
17
|
56 WINDOW_50 = 0x50,
|
|
57 WINDOW_59 = 0x59,
|
0
|
58 WINDOW_5A = 0x5A,
|
17
|
59 WINDOW_5B = 0x5B,
|
|
60 WINDOW_5C = 0x5C,
|
|
61 WINDOW_5D = 0x5D,
|
0
|
62 WINDOW_5E = 0x5E,
|
4
|
63 WINDOW_5F = 0x5F,
|
|
64 WINDOW_60 = 0x60,
|
17
|
65 WINDOW_61 = 0x61,
|
|
66 WINDOW_RestWindow = 0x62,
|
|
67 WINDOW_63 = 0x63,
|
|
68 WINDOW_CharacterWindow_Stats = 0x64,
|
|
69 WINDOW_CharacterWindow_Skills = 0x65,
|
|
70 WINDOW_CharacterWindow_Awards = 0x66,
|
|
71 WINDOW_CharacterWindow_Inventory = 0x67,
|
0
|
72 WINDOW_KeyMappingOptions = 0x69,
|
17
|
73 WINDOW_VideoOptions = 0x6A,
|
|
74 WINDOW_Lloyd = 0xB1,
|
|
75 WINDOW_TownPortal = 0xC3,
|
|
76 WINDOW_QuestBook = 0xC8,
|
|
77 WINDOW_AutonotesBook = 0xC9,
|
|
78 WINDOW_MapsBook = 0xCA,
|
|
79 WINDOW_CalendarBook = 0xCB,
|
92
|
80 WINDOW_HistoryBook = 0xE0,
|
0
|
81 };
|
|
82
|
|
83 /* 155 */
|
|
84 #pragma pack(push, 1)
|
|
85 struct GUIWindow
|
|
86 {
|
|
87 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, ...);
|
|
88 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2);
|
|
89 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8);
|
|
90 char DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor);
|
|
91 char *DrawTitleText(GUIFont *a2, unsigned int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
|
|
92 char *_4B1854(__int64 a2);
|
|
93 void _4B3157();
|
11
|
94 GUIButton *OpenSpellBook();
|
0
|
95 void InitializeBookView();
|
|
96 void DrawMessageBox(int arg0);
|
|
97 GUIButton *GetControl(unsigned int uID);
|
|
98 void Release();
|
|
99 void _41D08F(int a2, int a3, int a4, int a5);
|
|
100 char DrawQuickCharRecord();
|
|
101 char _41D73D_draw_buff_tooltip();
|
|
102
|
|
103 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eType, int a4, int a5);
|
|
104
|
|
105 unsigned int uFrameX;
|
|
106 unsigned int uFrameY;
|
|
107 unsigned int uFrameWidth;
|
|
108 unsigned int uFrameHeight;
|
|
109 unsigned int uFrameZ;
|
|
110 unsigned int uFrameW;
|
|
111 WindowType eWindowType;
|
|
112 void *ptr_1C;
|
|
113 unsigned int uNumControls;
|
|
114 int field_24;
|
|
115 int pNumPresenceButton;
|
|
116 int pCurrentPosActiveItem;
|
|
117 int field_30;
|
|
118 int field_34;
|
|
119 int pStartingPosActiveItem;
|
|
120 int field_3C;
|
|
121 int field_40;
|
|
122 int field_44;
|
|
123 char *Hint;
|
|
124 GUIButton *pControlsHead;
|
|
125 GUIButton *pControlsTail;
|
|
126 };
|
|
127 #pragma pack(pop)
|
|
128
|
|
129
|
|
130
|
|
131
|
|
132
|
|
133
|
|
134 /* 296 */
|
|
135 enum UIMessageType
|
|
136 {
|
|
137 UIMSG_00 = 0x0,
|
|
138 UIMSG_ChangeGameState = 0x5,
|
3
|
139 UIMSG_11 = 0x11,
|
0
|
140 UIMSG_PlayArcomage = 0x1D,
|
|
141 UIMSG_MainMenu_ShowPartyCreationWnd = 0x36,
|
|
142 UIMSG_MainMenu_ShowLoadWindow = 0x37,
|
|
143 UIMSG_ShowCredits = 0x38,
|
|
144 UIMSG_ExitToWindows = 0x39,
|
3
|
145 UIMSG_3A = 0x3A,
|
|
146 UIMSG_PlayerCreationChangeName = 0x3C,
|
0
|
147 UIMSG_PlayerCreationClickPlus = 0x3E,
|
|
148 UIMSG_PlayerCreationClickMinus = 0x3F,
|
|
149 UIMSG_PlayerCreationSelectActiveSkill = 0x40,
|
|
150 UIMSG_PlayerCreationSelectClass = 0x41,
|
|
151 UIMSG_PlayerCreationClickOK = 0x42,
|
|
152 UIMSG_PlayerCreationClickReset = 0x43,
|
|
153 UIMSG_PlayerCreationRemoveUpSkill = 0x4A,
|
|
154 UIMSG_PlayerCreationRemoveDownSkill = 0x4B,
|
|
155 UIMSG_4B = 0x4B,
|
|
156 UIMSG_LoadGame = 0x52,
|
|
157 UIMSG_SaveGame = 0x53,
|
|
158 UIMSG_ShowStatus_DateTime = 0x5C,
|
|
159 UIMSG_ShowStatus_ManaHP = 0x5D,
|
|
160 UIMSG_ShowStatus_Player = 0x5E,
|
|
161 UIMSG_ShowStatus_Food = 0x64,
|
|
162 UIMSG_ShowStatus_Funds = 0x65,
|
11
|
163 UIMSG_QuickReference = 0x6A,
|
0
|
164 UIMSG_6B = 0x6B,
|
|
165 UIMSG_SelectCharacter = 0x6E,
|
|
166 UIMSG_ChangeSoundVolume = 0x6F,
|
|
167 UIMSG_ChangeMusicVolume = 0x70,
|
3
|
168 UIMSG_Escape = 0x71,
|
0
|
169 UIMSG_PlayerCreationSelectQuality = 0x76,
|
|
170 UIMSG_SkillUp = 0x79,
|
|
171 UIMSG_StartNewGame = 0x7C,
|
|
172 UIMSG_Game_OpenLoadGameDialog = 0x7D,
|
|
173 UIMSG_Game_OpenOptionsDialog = 0x7F,
|
|
174 UIMSG_SetGraphicsMode = 0x83,
|
|
175 UIMSG_Quit = 0x84,
|
|
176 UIMSG_PlayerCreationVoiceBack = 0x90,
|
|
177 UIMSG_PlayerCreationVoiceForward = 0x91,
|
|
178 UIMSG_StartNPCDialogue = 0xA1,
|
2
|
179 UIMSG_ArrowUp = 0xA2,
|
|
180 UIMSG_DownArrow = 0xA3,
|
|
181 UIMSG_LoadSlot = 0xA4,
|
3
|
182 UIMSG_SelectLoadSlot = 0xA5,
|
2
|
183 UIMSG_Cancel = 0xA6,
|
0
|
184 UIMSG_A7 = 0xA7,
|
|
185 UIMSG_A8 = 0xA8,
|
|
186 UIMSG_A9 = 0xA9,
|
|
187 UIMSG_AA = 0xAA,
|
|
188 UIMSG_SelectFacePlayerBack = 0xAB,
|
|
189 UIMSG_SelectFacePlayerForward = 0xAC,
|
|
190 UIMSG_AD = 0xAD,
|
|
191 UIMSG_AE = 0xAE,
|
|
192 UIMSG_AF = 0xAF,
|
|
193 UIMSG_CycleCharacters = 0xB0,
|
|
194 UIMSG_B1 = 0xB1,
|
|
195 UIMSG_B2 = 0xB2,
|
|
196 UIMSG_B3 = 0xB3,
|
|
197 UIMSG_B4 = 0xB4,
|
|
198 UIMSG_B5 = 0xB5,
|
|
199 UIMSG_B6 = 0xB6,
|
|
200 UIMSG_B7 = 0xB7,
|
|
201 UIMSG_SetTurnSpeed = 0xB8,
|
|
202 UIMSG_ToggleWalkSound = 0xB9,
|
|
203 UIMSG_ChangeVoiceVolume = 0xBA,
|
|
204 UIMSG_ToggleShowDamage = 0xBB,
|
111
|
205 UIMSG_ScrollNPCPanel = 0xBC,
|
0
|
206 UIMSG_BD = 0xBD,
|
|
207 UIMSG_BE = 0xBE,
|
|
208 UIMSG_BF = 0xBF,
|
|
209 UIMSG_C0 = 0xC0,
|
|
210 UIMSG_C1 = 0xC1,
|
|
211 UIMSG_C2 = 0xC2,
|
|
212 UIMSG_C3 = 0xC3,
|
|
213 UIMSG_C4 = 0xC4,
|
|
214 UIMSG_ShowFinalWindow = 0xC5,
|
|
215 UIMSG_C6 = 0xC6,
|
|
216 UIMSG_C7 = 0xC7,
|
|
217 UIMSG_OpenQuestBook = 0xC8,
|
|
218 UIMSG_OpenAutonotes = 0xC9,
|
|
219 UIMSG_OpenMapBook = 0xCA,
|
|
220 UIMSG_OpenCalendar = 0xCB,
|
|
221 UIMSG_CC = 0xCC,
|
|
222 UIMSG_CD = 0xCD,
|
|
223 UIMSG_CE = 0xCE,
|
|
224 UIMSG_CF = 0xCF,
|
|
225 UIMSG_D0 = 0xD0,
|
|
226 UIMSG_D1 = 0xD1,
|
|
227 UIMSG_D2 = 0xD2,
|
|
228 UIMSG_D3 = 0xD3,
|
|
229 UIMSG_D4 = 0xD4,
|
|
230 UIMSG_D5 = 0xD5,
|
|
231 UIMSG_D6 = 0xD6,
|
|
232 UIMSG_OpenHistoryBook = 0xE0,
|
|
233 UIMSG_ToggleAlwaysRun = 0xE1,
|
|
234 UIMSG_ToggleFlipOnExit = 0xE2,
|
|
235 UIMSG_OpenRestUI = 0x199,
|
|
236 UIMSG_OpenKeyMappingOptions = 0x19F,
|
|
237 UIMSG_ResetKeyMapping = 0x1A2,
|
|
238 UIMSG_OpenVideoOptions = 0x1A5,
|
|
239 UIMSG_ToggleBloodsplats = 0x1A6,
|
|
240 UIMSG_ToggleColoredLights = 0x1A7,
|
|
241 UIMSG_ToggleTint = 0x1A8,
|
|
242 };
|
|
243
|
|
244
|
|
245
|
|
246
|
|
247
|
|
248
|
|
249 /* 249 */
|
|
250 #pragma pack(push, 1)
|
|
251 struct GUIMessage
|
|
252 {
|
|
253 enum UIMessageType eType;
|
|
254 int param;
|
|
255 int field_8;
|
|
256 };
|
|
257 #pragma pack(pop)
|
|
258
|
|
259
|
|
260
|
|
261
|
|
262
|
|
263 /* 250 */
|
|
264 #pragma pack(push, 1)
|
|
265 struct GUIMessageQueue
|
|
266 {
|
|
267 inline GUIMessageQueue():
|
|
268 uNumMessages(0)
|
|
269 {}
|
|
270
|
|
271 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4);
|
|
272 void SendMessage(UIMessageType msg, int param, unsigned int a4);
|
|
273
|
|
274 unsigned int uNumMessages;
|
|
275 GUIMessage pMessages[40];
|
|
276 };
|
|
277 #pragma pack(pop)
|
|
278
|
|
279 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
|
|
280
|
|
281
|
|
282
|
|
283
|
|
284 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb
|
|
285 extern struct GUIWindow *pWindow_MainMenu;
|
|
286 extern struct GUIWindow pWindowList[20]; |