annotate GUIWindow.h @ 735:6daaa2f18d0d

Fixed some house sounds & shop-related stuff
author Nomad
date Fri, 22 Mar 2013 20:01:46 +0200
parents 735dab8d3c9a
children cf2fbac6edc9
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2 #include "GUIButton.h"
Ritor1
parents:
diff changeset
3
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7
Ritor1
parents:
diff changeset
8 /* 251 */
Ritor1
parents:
diff changeset
9 enum MENU_STATE : __int32
Ritor1
parents:
diff changeset
10 {
Ritor1
parents:
diff changeset
11 MENU_MAIN = 0x0,
Ritor1
parents:
diff changeset
12 MENU_NEWGAME = 0x1,
Ritor1
parents:
diff changeset
13 MENU_CREDITS = 0x2,
Ritor1
parents:
diff changeset
14 MENU_SAVELOAD = 0x3,
Ritor1
parents:
diff changeset
15 MENU_FINISHED = 0x4,
Ritor1
parents:
diff changeset
16 MENU_5 = 0x5,
Ritor1
parents:
diff changeset
17 MENU_CREATEPARTY = 0x6,
165
Ritor1
parents: 158
diff changeset
18 MENU_NAMEPANELESC = 0x7,
Ritor1
parents: 158
diff changeset
19 MENU_CREDITSPROC = 0x8,
Ritor1
parents: 158
diff changeset
20 MENU_LOADINGPROC = 0x9,
0
Ritor1
parents:
diff changeset
21 MENU_10 = 0xA,
165
Ritor1
parents: 158
diff changeset
22 MENU_CREDITSCLOSE = 0xB,
0
Ritor1
parents:
diff changeset
23 };
Ritor1
parents:
diff changeset
24
Ritor1
parents:
diff changeset
25
167
90521fb9766c NPCDialogue fix
Ritor1
parents: 165
diff changeset
26 enum DIALOGUE_TYPE
90521fb9766c NPCDialogue fix
Ritor1
parents: 165
diff changeset
27 {
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
28 DIALOGUE_9 = 9,
179
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
29 DIALOGUE_13 = 0xD,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
30 DIALOGUE_18 = 0x12,
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
31 DIALOGUE_19 = 19,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
32 DIALOGUE_20 = 20,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
33 DIALOGUE_21 = 21,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
34 DIALOGUE_22 = 22,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
35 DIALOGUE_23 = 23,
179
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
36 DIALOGUE_24 = 0x18,
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
37 DIALOGUE_76 = 76,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
38 DIALOGUE_PROFESSION_DETAILS = 77,
179
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
39 DIALOGUE_ARENA_WELCOME = 0x59,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
40 DIALOGUE_ARENA_FIGHT_NOT_OVER_YET = 0x5A,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
41 DIALOGUE_ARENA_REWARD = 0x5B,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
42 DIALOGUE_ARENA_ALREADY_WON = 0x5C,
167
90521fb9766c NPCDialogue fix
Ritor1
parents: 165
diff changeset
43 };
0
Ritor1
parents:
diff changeset
44
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46
Ritor1
parents:
diff changeset
47
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49 /* 298 */
Ritor1
parents:
diff changeset
50 enum WindowType: unsigned __int32
Ritor1
parents:
diff changeset
51 {
Ritor1
parents:
diff changeset
52 WINDOW_null = 0,
Ritor1
parents:
diff changeset
53 WINDOW_MainMenu = 0x1,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
54 WINDOW_3 = 0x3,
0
Ritor1
parents:
diff changeset
55 WINDOW_CharacterRecord = 0x4,
Ritor1
parents:
diff changeset
56 WINDOW_Options = 0x6,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
57 WINDOW_8 = 8,
0
Ritor1
parents:
diff changeset
58 WINDOW_Book = 0x9,
165
Ritor1
parents: 158
diff changeset
59 WINDOW_Dialogue = 0xA,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
60 WINDOW_QuickReference = 12,
158
f4ebd13c2a8e 13.02.13
Ritor1
parents: 151
diff changeset
61 WINDOW_Rest = 0x10,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
62 WINDOW_ChangeLocation = 17,
158
f4ebd13c2a8e 13.02.13
Ritor1
parents: 151
diff changeset
63 WINDOW_SpellBook = 0x12,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
64 WINDOW_GreetingNPC = 19,
0
Ritor1
parents:
diff changeset
65 WINDOW_Chest = 0x14,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
66 WINDOW_17 = 23,
0
Ritor1
parents:
diff changeset
67 WINDOW_MainMenu_Load = 0x18,
Ritor1
parents:
diff changeset
68 WINDOW_HouseInterior = 0x19,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
69 WINDOW_Transition = 26,
158
f4ebd13c2a8e 13.02.13
Ritor1
parents: 151
diff changeset
70 WINDOW_1B = 0x1B,
f4ebd13c2a8e 13.02.13
Ritor1
parents: 151
diff changeset
71 WINDOW_Scroll = 0x1E,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
72 WINDOW_1F = 31,
0
Ritor1
parents:
diff changeset
73 WINDOW_FinalWindow = 0x46,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
74 WINDOW_50 = 0x50,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
75 WINDOW_59 = 0x59,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
76 WINDOW_5A = 90,
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
77 WINDOW_5B = 91,
187
49728858c35e On player voices
Nomad
parents: 179
diff changeset
78 WINDOW_VoiceSwitcherButton = 0x5C,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
79 WINDOW_5D = 0x5D,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
80 WINDOW_5E = 94,
4
8e33efd39355 15.01.13(work)
Ritor1
parents: 3
diff changeset
81 WINDOW_5F = 0x5F,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
82 WINDOW_60 = 96,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
83 WINDOW_61 = 0x61,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
84 WINDOW_RestWindow = 0x62,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
85 WINDOW_63 = 99,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
86 WINDOW_CharacterWindow_Stats = 0x64,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
87 WINDOW_CharacterWindow_Skills = 0x65,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
88 WINDOW_CharacterWindow_Awards = 0x66,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
89 WINDOW_CharacterWindow_Inventory = 0x67,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
90 WINDOW_68 = 104,
0
Ritor1
parents:
diff changeset
91 WINDOW_KeyMappingOptions = 0x69,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
92 WINDOW_VideoOptions = 0x6A,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
93 WINDOW_Lloyd = 0xB1,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
94 WINDOW_TownPortal = 195,
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
95 WINDOW_QuestBook = 200,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
96 WINDOW_AutonotesBook = 0xC9,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
97 WINDOW_MapsBook = 0xCA,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
98 WINDOW_CalendarBook = 0xCB,
92
bb06c087cd38 history fixed
zipi
parents: 17
diff changeset
99 WINDOW_HistoryBook = 0xE0,
0
Ritor1
parents:
diff changeset
100 };
Ritor1
parents:
diff changeset
101
Ritor1
parents:
diff changeset
102 /* 155 */
Ritor1
parents:
diff changeset
103 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
104 struct GUIWindow
Ritor1
parents:
diff changeset
105 {
200
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
106 inline GUIWindow()
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
107 {
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
108 pControlsHead = pControlsTail = nullptr;
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
109 eWindowType = WINDOW_null;
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
110 }
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
111
189
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 179
diff changeset
112 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7,
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 179
diff changeset
113 unsigned int uControlID, unsigned int uControlParam, unsigned __int8 uHotkey, const char *pName, Texture *pTextures, ...);
0
Ritor1
parents:
diff changeset
114 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2);
Ritor1
parents:
diff changeset
115 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8);
Ritor1
parents:
diff changeset
116 char DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor);
688
c0bfb386b15f some ui cleanup
Gloval
parents: 651
diff changeset
117 char *DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
471
c43f156a95c9 ArmorShopDialog crash fixed. All shops show its items
Gloval
parents: 467
diff changeset
118 void DrawCurrentTime(__int64 a2);
405
c0700eaabeb8 AnimatedRooms fix and change name of function
Ritor1
parents: 371
diff changeset
119 void HouseDialogManager();
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 190
diff changeset
120 void OpenSpellBook();
0
Ritor1
parents:
diff changeset
121 void InitializeBookView();
Ritor1
parents:
diff changeset
122 void DrawMessageBox(int arg0);
Ritor1
parents:
diff changeset
123 GUIButton *GetControl(unsigned int uID);
Ritor1
parents:
diff changeset
124 void Release();
Ritor1
parents:
diff changeset
125 void _41D08F(int a2, int a3, int a4, int a5);
688
c0bfb386b15f some ui cleanup
Gloval
parents: 651
diff changeset
126 void DrawQuickCharRecord();
0
Ritor1
parents:
diff changeset
127 char _41D73D_draw_buff_tooltip();
Ritor1
parents:
diff changeset
128
Ritor1
parents:
diff changeset
129 static GUIWindow *Create(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, enum WindowType eType, int a4, int a5);
Ritor1
parents:
diff changeset
130
Ritor1
parents:
diff changeset
131 unsigned int uFrameX;
Ritor1
parents:
diff changeset
132 unsigned int uFrameY;
Ritor1
parents:
diff changeset
133 unsigned int uFrameWidth;
Ritor1
parents:
diff changeset
134 unsigned int uFrameHeight;
Ritor1
parents:
diff changeset
135 unsigned int uFrameZ;
Ritor1
parents:
diff changeset
136 unsigned int uFrameW;
Ritor1
parents:
diff changeset
137 WindowType eWindowType;
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
138 union{
0
Ritor1
parents:
diff changeset
139 void *ptr_1C;
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
140 unsigned int par1C;
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
141 };
0
Ritor1
parents:
diff changeset
142 unsigned int uNumControls;
Ritor1
parents:
diff changeset
143 int field_24;
Ritor1
parents:
diff changeset
144 int pNumPresenceButton;
Ritor1
parents:
diff changeset
145 int pCurrentPosActiveItem;
Ritor1
parents:
diff changeset
146 int field_30;
Ritor1
parents:
diff changeset
147 int field_34;
Ritor1
parents:
diff changeset
148 int pStartingPosActiveItem;
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
149 int numVisibleWindows;
0
Ritor1
parents:
diff changeset
150 int field_40;
Ritor1
parents:
diff changeset
151 int field_44;
Ritor1
parents:
diff changeset
152 char *Hint;
Ritor1
parents:
diff changeset
153 GUIButton *pControlsHead;
Ritor1
parents:
diff changeset
154 GUIButton *pControlsTail;
Ritor1
parents:
diff changeset
155 };
Ritor1
parents:
diff changeset
156 #pragma pack(pop)
Ritor1
parents:
diff changeset
157
Ritor1
parents:
diff changeset
158
Ritor1
parents:
diff changeset
159
Ritor1
parents:
diff changeset
160
Ritor1
parents:
diff changeset
161
Ritor1
parents:
diff changeset
162
495
90fdb47bfcba guilds ...
Gloval
parents: 481
diff changeset
163
0
Ritor1
parents:
diff changeset
164 enum UIMessageType
Ritor1
parents:
diff changeset
165 {
Ritor1
parents:
diff changeset
166 UIMSG_00 = 0x0,
Ritor1
parents:
diff changeset
167 UIMSG_ChangeGameState = 0x5,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
168 UIMSG_A = 0xA,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
169 UIMSG_C = 0xC,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
170 UIMSG_E = 0xE,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
171 UIMSG_F = 0xF,
3
bf31c505f4d3 13.01.13(MainMenuMessageProc())
Ritor1
parents: 2
diff changeset
172 UIMSG_11 = 0x11,
271
1f0af5cac2dd _42ECB5_PlayerAttacksActor
Nomad
parents: 248
diff changeset
173 UIMSG_Attack = 23,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
174 UIMSG_19 = 0x19,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
175 UIMSG_1B = 0x1B,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
176 UIMSG_1C = 0x1C,
0
Ritor1
parents:
diff changeset
177 UIMSG_PlayArcomage = 0x1D,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
178 UIMSG_33 = 0x33,
0
Ritor1
parents:
diff changeset
179 UIMSG_MainMenu_ShowPartyCreationWnd = 0x36,
Ritor1
parents:
diff changeset
180 UIMSG_MainMenu_ShowLoadWindow = 0x37,
Ritor1
parents:
diff changeset
181 UIMSG_ShowCredits = 0x38,
Ritor1
parents:
diff changeset
182 UIMSG_ExitToWindows = 0x39,
3
bf31c505f4d3 13.01.13(MainMenuMessageProc())
Ritor1
parents: 2
diff changeset
183 UIMSG_3A = 0x3A,
bf31c505f4d3 13.01.13(MainMenuMessageProc())
Ritor1
parents: 2
diff changeset
184 UIMSG_PlayerCreationChangeName = 0x3C,
0
Ritor1
parents:
diff changeset
185 UIMSG_PlayerCreationClickPlus = 0x3E,
Ritor1
parents:
diff changeset
186 UIMSG_PlayerCreationClickMinus = 0x3F,
Ritor1
parents:
diff changeset
187 UIMSG_PlayerCreationSelectActiveSkill = 0x40,
Ritor1
parents:
diff changeset
188 UIMSG_PlayerCreationSelectClass = 0x41,
Ritor1
parents:
diff changeset
189 UIMSG_PlayerCreationClickOK = 0x42,
Ritor1
parents:
diff changeset
190 UIMSG_PlayerCreationClickReset = 0x43,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
191 UIMSG_45 = 0x45,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
192 UIMSG_46 = 0x46,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
193 UIMSG_AutonotesBook = 0x47,
0
Ritor1
parents:
diff changeset
194 UIMSG_PlayerCreationRemoveUpSkill = 0x4A,
Ritor1
parents:
diff changeset
195 UIMSG_PlayerCreationRemoveDownSkill = 0x4B,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
196 UIMSG_4E = 0x4E,
370
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 362
diff changeset
197 UIMSG_SPellbook_ShowHightlightedSpellInfo = 0x4F,
735
6daaa2f18d0d Fixed some house sounds & shop-related stuff
Nomad
parents: 710
diff changeset
198 UIMSG_BuyInShop_Identify_Repair = 0x51,
0
Ritor1
parents:
diff changeset
199 UIMSG_LoadGame = 0x52,
Ritor1
parents:
diff changeset
200 UIMSG_SaveGame = 0x53,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
201 UIMSG_54 = 0x54,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
202 UIMSG_55 = 0x55,
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
203 UIMSG_SelectSpell = 0x56,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
204 UIMSG_57 = 0x57,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
205 UIMSG_58 = 0x58,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
206 UIMSG_5A = 0x5A,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
207 UIMSG_5B = 0x5B,
0
Ritor1
parents:
diff changeset
208 UIMSG_ShowStatus_DateTime = 0x5C,
Ritor1
parents:
diff changeset
209 UIMSG_ShowStatus_ManaHP = 0x5D,
Ritor1
parents:
diff changeset
210 UIMSG_ShowStatus_Player = 0x5E,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
211 UIMSG_Wait5Minutes = 0x5F,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
212 UIMSG_Wait1Hour = 0x60,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
213 UIMSG_61 = 0x61,
0
Ritor1
parents:
diff changeset
214 UIMSG_ShowStatus_Food = 0x64,
Ritor1
parents:
diff changeset
215 UIMSG_ShowStatus_Funds = 0x65,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
216 UIMSG_68 = 0x68,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
217 UIMSG_69 = 0x69,
11
66319a734368 16.01.13(work)
Ritor1
parents: 4
diff changeset
218 UIMSG_QuickReference = 0x6A,
358
4a236657a0be GameMenuButton fix
Ritor1
parents: 271
diff changeset
219 UIMSG_GameMenuButton = 0x6B,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
220 UIMSG_AlreadyResting = 0x6D,
0
Ritor1
parents:
diff changeset
221 UIMSG_SelectCharacter = 0x6E,
Ritor1
parents:
diff changeset
222 UIMSG_ChangeSoundVolume = 0x6F,
Ritor1
parents:
diff changeset
223 UIMSG_ChangeMusicVolume = 0x70,
3
bf31c505f4d3 13.01.13(MainMenuMessageProc())
Ritor1
parents: 2
diff changeset
224 UIMSG_Escape = 0x71,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
225 UIMSG_72 = 0x72,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
226 UIMSG_73 = 0x73,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
227 UIMSG_74 = 0x74,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
228 UIMSG_75 = 0x75,
187
49728858c35e On player voices
Nomad
parents: 179
diff changeset
229 UIMSG_PlayerCreation_SelectAttribute = 0x76,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
230 UIMSG_InventoryLeftClick = 0x78,
0
Ritor1
parents:
diff changeset
231 UIMSG_SkillUp = 0x79,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
232 UIMSG_7A = 0x7A,
369
6e984a4a896f GameMenu fix
Ritor1
parents: 362
diff changeset
233 UIMSG_GameMenu_ReturnToGame = 0x7B,
0
Ritor1
parents:
diff changeset
234 UIMSG_StartNewGame = 0x7C,
Ritor1
parents:
diff changeset
235 UIMSG_Game_OpenLoadGameDialog = 0x7D,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
236 UIMSG_Game_OpenSaveGameDialog = 0x7E,
0
Ritor1
parents:
diff changeset
237 UIMSG_Game_OpenOptionsDialog = 0x7F,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
238 UIMSG_80 = 0x80,
0
Ritor1
parents:
diff changeset
239 UIMSG_SetGraphicsMode = 0x83,
Ritor1
parents:
diff changeset
240 UIMSG_Quit = 0x84,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
241 UIMSG_85 = 0x85,
199
66db86fa4ed2 Hireling dialogues
Nomad
parents: 198
diff changeset
242 UIMSG_StartHireling1Dialogue = 0x86,
66db86fa4ed2 Hireling dialogues
Nomad
parents: 198
diff changeset
243 UIMSG_StartHireling2Dialogue = 0x87,
651
2bf48d11d742 Training hall UI fixed
Nomad
parents: 629
diff changeset
244 UIMSG_SelectNPCDialogueOption = 0x88,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
245 UIMSG_8C = 0x8C,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
246 UIMSG_8D = 0x8D,
370
7f817679b60e _42777D_CastSpell_UseWand_ShootArrow
Nomad
parents: 362
diff changeset
247 UIMSG_CastSpellFromBook = 0x8E,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
248 UIMSG_8F = 0x8F,
187
49728858c35e On player voices
Nomad
parents: 179
diff changeset
249 UIMSG_PlayerCreation_VoicePrev = 0x90,
49728858c35e On player voices
Nomad
parents: 179
diff changeset
250 UIMSG_PlayerCreation_VoiceNext = 0x91,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
251 UIMSG_92 = 0x92,
0
Ritor1
parents:
diff changeset
252 UIMSG_StartNPCDialogue = 0xA1,
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
253 UIMSG_ArrowUp = 0xA2,
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
254 UIMSG_DownArrow = 0xA3,
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
255 UIMSG_LoadSlot = 0xA4,
3
bf31c505f4d3 13.01.13(MainMenuMessageProc())
Ritor1
parents: 2
diff changeset
256 UIMSG_SelectLoadSlot = 0xA5,
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
257 UIMSG_Cancel = 0xA6,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
258 UIMSG_ExitRest = 0xA7,
0
Ritor1
parents:
diff changeset
259 UIMSG_A8 = 0xA8,
Ritor1
parents:
diff changeset
260 UIMSG_A9 = 0xA9,
Ritor1
parents:
diff changeset
261 UIMSG_AA = 0xAA,
187
49728858c35e On player voices
Nomad
parents: 179
diff changeset
262 UIMSG_PlayerCreation_FacePrev = 0xAB,
49728858c35e On player voices
Nomad
parents: 179
diff changeset
263 UIMSG_PlayerCreation_FaceNext = 0xAC,
0
Ritor1
parents:
diff changeset
264 UIMSG_AD = 0xAD,
Ritor1
parents:
diff changeset
265 UIMSG_AE = 0xAE,
467
Ritor1
parents: 437
diff changeset
266 UIMSG_ClickNPCTopic = 0xAF,
0
Ritor1
parents:
diff changeset
267 UIMSG_CycleCharacters = 0xB0,
Ritor1
parents:
diff changeset
268 UIMSG_B1 = 0xB1,
Ritor1
parents:
diff changeset
269 UIMSG_B2 = 0xB2,
Ritor1
parents:
diff changeset
270 UIMSG_B3 = 0xB3,
Ritor1
parents:
diff changeset
271 UIMSG_B4 = 0xB4,
Ritor1
parents:
diff changeset
272 UIMSG_B5 = 0xB5,
Ritor1
parents:
diff changeset
273 UIMSG_B6 = 0xB6,
Ritor1
parents:
diff changeset
274 UIMSG_B7 = 0xB7,
Ritor1
parents:
diff changeset
275 UIMSG_SetTurnSpeed = 0xB8,
Ritor1
parents:
diff changeset
276 UIMSG_ToggleWalkSound = 0xB9,
Ritor1
parents:
diff changeset
277 UIMSG_ChangeVoiceVolume = 0xBA,
Ritor1
parents:
diff changeset
278 UIMSG_ToggleShowDamage = 0xBB,
111
bf7ea4c330b3 Paperdoll fixed
Ritor1
parents: 92
diff changeset
279 UIMSG_ScrollNPCPanel = 0xBC,
0
Ritor1
parents:
diff changeset
280 UIMSG_BD = 0xBD,
Ritor1
parents:
diff changeset
281 UIMSG_BE = 0xBE,
Ritor1
parents:
diff changeset
282 UIMSG_BF = 0xBF,
Ritor1
parents:
diff changeset
283 UIMSG_C0 = 0xC0,
Ritor1
parents:
diff changeset
284 UIMSG_C1 = 0xC1,
Ritor1
parents:
diff changeset
285 UIMSG_C2 = 0xC2,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
286 UIMSG_OnCastTownPortal = 0xC3,
0
Ritor1
parents:
diff changeset
287 UIMSG_C4 = 0xC4,
Ritor1
parents:
diff changeset
288 UIMSG_ShowFinalWindow = 0xC5,
Ritor1
parents:
diff changeset
289 UIMSG_C6 = 0xC6,
Ritor1
parents:
diff changeset
290 UIMSG_C7 = 0xC7,
Ritor1
parents:
diff changeset
291 UIMSG_OpenQuestBook = 0xC8,
Ritor1
parents:
diff changeset
292 UIMSG_OpenAutonotes = 0xC9,
Ritor1
parents:
diff changeset
293 UIMSG_OpenMapBook = 0xCA,
Ritor1
parents:
diff changeset
294 UIMSG_OpenCalendar = 0xCB,
Ritor1
parents:
diff changeset
295 UIMSG_CC = 0xCC,
Ritor1
parents:
diff changeset
296 UIMSG_CD = 0xCD,
Ritor1
parents:
diff changeset
297 UIMSG_CE = 0xCE,
Ritor1
parents:
diff changeset
298 UIMSG_CF = 0xCF,
Ritor1
parents:
diff changeset
299 UIMSG_D0 = 0xD0,
Ritor1
parents:
diff changeset
300 UIMSG_D1 = 0xD1,
Ritor1
parents:
diff changeset
301 UIMSG_D2 = 0xD2,
Ritor1
parents:
diff changeset
302 UIMSG_D3 = 0xD3,
Ritor1
parents:
diff changeset
303 UIMSG_D4 = 0xD4,
Ritor1
parents:
diff changeset
304 UIMSG_D5 = 0xD5,
Ritor1
parents:
diff changeset
305 UIMSG_D6 = 0xD6,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
306 UIMSG_DD = 0xDD,
0
Ritor1
parents:
diff changeset
307 UIMSG_OpenHistoryBook = 0xE0,
Ritor1
parents:
diff changeset
308 UIMSG_ToggleAlwaysRun = 0xE1,
Ritor1
parents:
diff changeset
309 UIMSG_ToggleFlipOnExit = 0xE2,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
310 UIMSG_16F = 0x16F,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
311 UIMSG_170 = 0x170,
201
30aa44013f7a On Items
Nomad
parents: 200
diff changeset
312 UIMSG_Game_Action = 0x194,
651
2bf48d11d742 Training hall UI fixed
Nomad
parents: 629
diff changeset
313 UIMSG_SelectShopDialogueOption = 0x195,
0
Ritor1
parents:
diff changeset
314 UIMSG_OpenRestUI = 0x199,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
315 UIMSG_19A = 0x19A,
434
137c59c3dbc4 Temple of Moon and Dragon Lair can now be entered.
Nomad
parents: 405
diff changeset
316 UIMSG_TransitionUI_Confirm = 0x19B,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
317 UIMSG_19C = 0x19C,
0
Ritor1
parents:
diff changeset
318 UIMSG_OpenKeyMappingOptions = 0x19F,
362
38bfbee60146 Menu options
Ritor1
parents: 358
diff changeset
319 UIMSG_SelectKeyPage1 = 0x1A0,
38bfbee60146 Menu options
Ritor1
parents: 358
diff changeset
320 UIMSG_SelectKeyPage2 = 0x1A1,
0
Ritor1
parents:
diff changeset
321 UIMSG_ResetKeyMapping = 0x1A2,
362
38bfbee60146 Menu options
Ritor1
parents: 358
diff changeset
322 UIMSG_ChangeKeyButton = 0x1A3,
0
Ritor1
parents:
diff changeset
323 UIMSG_OpenVideoOptions = 0x1A5,
Ritor1
parents:
diff changeset
324 UIMSG_ToggleBloodsplats = 0x1A6,
Ritor1
parents:
diff changeset
325 UIMSG_ToggleColoredLights = 0x1A7,
Ritor1
parents:
diff changeset
326 UIMSG_ToggleTint = 0x1A8,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
327 UIMSG_1A9 = 0x1A9,
0
Ritor1
parents:
diff changeset
328 };
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 623
diff changeset
329
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
330 enum CURRENT_SCREEN
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
331 {
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
332 SCREEN_GAME = 0x0,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
333 SCREEN_MENU = 0x1,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
334 SCREEN_OPTIONS = 0x2,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
335 SCREEN_BOOKS = 0x3,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
336 SCREEN_NPC_DIALOGUE = 0x4,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
337 SCREEN_REST = 0x5,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
338 SCREEN_CHARACTERS = 0x7,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
339 SCREEN_SPELL_BOOK = 0x8,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
340 SCREEN_CREATORS = 0x9,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
341 SCREEN_CHEST = 0xA,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
342 SCREEN_SAVEGAME = 0xB,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
343 SCREEN_LOADGAME = 0xC,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
344 SCREEN_HOUSE = 0xD,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
345 SCREEN_E = 0xE,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
346 SCREEN_F = 0xF,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
347 SCREEN_VIDEO = 0x10,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
348 SCREEN_CHANGE_LOCATION = 0x11,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
349 SCREEN_INPUT_BLV = 0x12,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
350 SCREEN_BRANCHLESS_NPC_DIALOG = 0x13,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
351 SCREEN_PARTY_CREATION = 0x15,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
352 SCREEN_PRESS_ESCAPE_MESSAGE = 0x16,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
353 SCREEN_CASTING = 0x17,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
354 SCREEN_19 = 0x19,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
355 SCREEN_KEYBOARD_OPTIONS = 0x1A,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
356 SCREEN_1B = 0x1B,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
357 SCREEN_VIDEO_OPTIONS = 0x1C,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
358 SCREEN_63 = 0x63,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
359 SCREEN_64 = 0x64,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
360 SCREEN_67 = 0x67,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
361 SCREEN_QUICK_REFERENCE = 0x68,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
362 };
0
Ritor1
parents:
diff changeset
363
Ritor1
parents:
diff changeset
364
Ritor1
parents:
diff changeset
365
Ritor1
parents:
diff changeset
366
Ritor1
parents:
diff changeset
367 /* 249 */
Ritor1
parents:
diff changeset
368 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
369 struct GUIMessage
Ritor1
parents:
diff changeset
370 {
Ritor1
parents:
diff changeset
371 enum UIMessageType eType;
Ritor1
parents:
diff changeset
372 int param;
Ritor1
parents:
diff changeset
373 int field_8;
Ritor1
parents:
diff changeset
374 };
Ritor1
parents:
diff changeset
375 #pragma pack(pop)
Ritor1
parents:
diff changeset
376
Ritor1
parents:
diff changeset
377
Ritor1
parents:
diff changeset
378
Ritor1
parents:
diff changeset
379
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
380 #define AddMessage(msg, param, a4) AddMessageImpl((msg), (param), (a4), __FILE__, __LINE__)
0
Ritor1
parents:
diff changeset
381 /* 250 */
Ritor1
parents:
diff changeset
382 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
383 struct GUIMessageQueue
Ritor1
parents:
diff changeset
384 {
Ritor1
parents:
diff changeset
385 inline GUIMessageQueue():
Ritor1
parents:
diff changeset
386 uNumMessages(0)
Ritor1
parents:
diff changeset
387 {}
Ritor1
parents:
diff changeset
388
Ritor1
parents:
diff changeset
389 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4);
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
390 void AddMessageImpl(UIMessageType msg, int param, unsigned int a4, const char *file = nullptr, int line = 0);
0
Ritor1
parents:
diff changeset
391
Ritor1
parents:
diff changeset
392 unsigned int uNumMessages;
Ritor1
parents:
diff changeset
393 GUIMessage pMessages[40];
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
394
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
395 const char *files[40];
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
396 int lines[40];
0
Ritor1
parents:
diff changeset
397 };
Ritor1
parents:
diff changeset
398 #pragma pack(pop)
Ritor1
parents:
diff changeset
399
Ritor1
parents:
diff changeset
400 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
Ritor1
parents:
diff changeset
401
Ritor1
parents:
diff changeset
402
Ritor1
parents:
diff changeset
403
Ritor1
parents:
diff changeset
404
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
405
651
2bf48d11d742 Training hall UI fixed
Nomad
parents: 629
diff changeset
406 void OnSelectNPCDialogueOption(DIALOGUE_TYPE newDialogueType);
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
407
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
408
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
409
0
Ritor1
parents:
diff changeset
410 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb
Ritor1
parents:
diff changeset
411 extern struct GUIWindow *pWindow_MainMenu;
566
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
412 extern struct GUIWindow pWindowList[20];
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
413
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
414
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
415
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
416
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
417
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
418
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
419 void QuickRefDraw();