annotate GUIWindow.h @ 1249:bbde4964e9b7

aWinProc cleanup - extracting conditions to a separate function
author Grumpy7
date Mon, 10 Jun 2013 03:57:16 +0200
parents 0dbf6c4dd029
children b9747d9e9b4e
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
816
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
2 #include "Player.h"
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
3 #include <array>
0
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6
Ritor1
parents:
diff changeset
7
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
8 enum UIMessageType: unsigned __int32
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
9 {
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
10 UIMSG_0 = 0,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
11
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
12 UIMSG_ChangeGameState = 5,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
13
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
14 UIMSG_MouseLeftClickInGame = 10,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
15
987
9e132060ada3 UIMSG_CHEST_ClickItem
Ritor1
parents: 984
diff changeset
16 UIMSG_CHEST_ClickItem = 12,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
17
990
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
18 UIMSG_MouseLeftClickInScreen = 14,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
19 UIMSG_F = 15,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
20
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
21 UIMSG_11 = 17,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
22
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
23 UIMSG_Attack = 23,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
24
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
25 UIMSG_CastQuickSpell = 25,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
26
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
27 UIMSG_1B = 27,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
28 UIMSG_1C = 28,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
29 UIMSG_PlayArcomage = 29,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
30
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
31 UIMSG_31 = 49,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
32 UIMSG_32 = 50,
1118
ca415f6bac1c UIMSG_SpellBook_PressTab
zipi
parents: 1101
diff changeset
33 UIMSG_SpellBook_PressTab = 51,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
34 UIMSG_34 = 52,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
35 UIMSG_35 = 53,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
36 UIMSG_MainMenu_ShowPartyCreationWnd = 54,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
37 UIMSG_MainMenu_ShowLoadWindow = 55,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
38 UIMSG_ShowCredits = 56,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
39 UIMSG_ExitToWindows = 57,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
40 UIMSG_3A = 58,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
41
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
42 UIMSG_PlayerCreationChangeName = 60,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
43
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
44 UIMSG_PlayerCreationClickPlus = 62,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
45 UIMSG_PlayerCreationClickMinus = 63,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
46 UIMSG_PlayerCreationSelectActiveSkill = 64,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
47 UIMSG_PlayerCreationSelectClass = 65,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
48 UIMSG_PlayerCreationClickOK = 66,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
49 UIMSG_PlayerCreationClickReset = 67,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
50 UIMSG_44 = 68,
998
e4383e6dfbef ProcessInput
Ritor1
parents: 997
diff changeset
51 UIMSG_CastSpell_Character_Big_Improvement = 69,
e4383e6dfbef ProcessInput
Ritor1
parents: 997
diff changeset
52 UIMSG_CastSpell_Shoot_Monster = 70,
996
bdbbdfa77ea6 UIMSG_ClickBooksBtn
Ritor1
parents: 990
diff changeset
53 UIMSG_ClickBooksBtn = 71,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
54 UIMSG_48 = 72,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
55 UIMSG_49 = 73,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
56 UIMSG_PlayerCreationRemoveUpSkill = 74,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
57 UIMSG_PlayerCreationRemoveDownSkill = 75,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
58
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
59 UIMSG_HintSelectRemoveQuickSpellBtn = 78,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
60 UIMSG_SPellbook_ShowHightlightedSpellInfo = 79,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
61
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
62 UIMSG_BuyInShop_Identify_Repair = 81,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
63 UIMSG_LoadGame = 82,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
64 UIMSG_SaveGame = 83,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
65 UIMSG_54 = 84,
910
Ritor1
parents: 907
diff changeset
66 UIMSG_ChangeDetaliz = 85,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
67 UIMSG_SelectSpell = 86,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
68 UIMSG_OpenSpellbookPage = 87,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
69 UIMSG_ClickInstallRemoveQuickSpellBtn = 88,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
70
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
71 UIMSG_OnTravelByFoot = 90,
987
9e132060ada3 UIMSG_CHEST_ClickItem
Ritor1
parents: 984
diff changeset
72 UIMSG_CHANGE_LOCATION_ClickCencelBtn = 91,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
73 UIMSG_ShowStatus_DateTime = 92,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
74 UIMSG_ShowStatus_ManaHP = 93,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
75 UIMSG_ShowStatus_Player = 94,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
76 UIMSG_Wait5Minutes = 95,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
77 UIMSG_Wait1Hour = 96,
907
f3ccfc765502 RentRoom
Ritor1
parents: 900
diff changeset
78 UIMSG_Rest8Hour = 97,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
79
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
80 UIMSG_ShowStatus_Food = 100,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
81 UIMSG_ShowStatus_Funds = 101,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
82
907
f3ccfc765502 RentRoom
Ritor1
parents: 900
diff changeset
83 UIMSG_RestWindow = 104,
f3ccfc765502 RentRoom
Ritor1
parents: 900
diff changeset
84 UIMSG_SpellBookWindow = 105,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
85 UIMSG_QuickReference = 106,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
86 UIMSG_GameMenuButton = 107,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
87
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
88 UIMSG_AlreadyResting = 109,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
89 UIMSG_SelectCharacter = 110,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
90 UIMSG_ChangeSoundVolume = 111,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
91 UIMSG_ChangeMusicVolume = 112,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
92 UIMSG_Escape = 113,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
93 UIMSG_ClickSkillsBtn = 114,
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
94 UIMSG_ClickStatsBtn = 115,
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
95 UIMSG_ClickInventoryBtn = 116,
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
96 UIMSG_ClickAwardsBtn = 117,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
97 UIMSG_PlayerCreation_SelectAttribute = 118,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
98
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
99 UIMSG_InventoryLeftClick = 120,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
100 UIMSG_SkillUp = 121,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
101 UIMSG_7A = 122,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
102 UIMSG_GameMenu_ReturnToGame = 123,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
103 UIMSG_StartNewGame = 124,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
104 UIMSG_Game_OpenLoadGameDialog = 125,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
105 UIMSG_Game_OpenSaveGameDialog = 126,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
106 UIMSG_Game_OpenOptionsDialog = 127,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
107 UIMSG_80 = 128,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
108
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
109 UIMSG_SetGraphicsMode = 131,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
110 UIMSG_Quit = 132,
910
Ritor1
parents: 907
diff changeset
111 UIMSG_ClickPaperdoll = 133,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
112 UIMSG_StartHireling1Dialogue = 134,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
113 UIMSG_StartHireling2Dialogue = 135,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
114 UIMSG_SelectNPCDialogueOption = 136,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
115
998
e4383e6dfbef ProcessInput
Ritor1
parents: 997
diff changeset
116 UIMSG_CastSpell_Monster_Improvement = 140,
e4383e6dfbef ProcessInput
Ritor1
parents: 997
diff changeset
117 UIMSG_CastSpell_Character_Small_Improvement = 141,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
118 UIMSG_CastSpellFromBook = 142,
998
e4383e6dfbef ProcessInput
Ritor1
parents: 997
diff changeset
119 UIMSG_HiredNPC_CastSpell = 143,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
120 UIMSG_PlayerCreation_VoicePrev = 144,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
121 UIMSG_PlayerCreation_VoiceNext = 145,
1019
32ec62bbaa2c player use item part cleanup
Gloval
parents: 1012
diff changeset
122 UIMSG_SpellScrollUse = 146,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
123
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
124 UIMSG_StartNPCDialogue = 161,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
125 UIMSG_ArrowUp = 162,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
126 UIMSG_DownArrow = 163,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
127 UIMSG_SaveLoadBtn = 164,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
128 UIMSG_SelectLoadSlot = 165,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
129 UIMSG_Cancel = 166,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
130 UIMSG_ExitRest = 167,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
131 UIMSG_ClickExitCharacterWindowBtn = 168,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
132 UIMSG_ClickAwardsUpBtn = 169,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
133 UIMSG_ClickAwardsDownBtn = 170,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
134 UIMSG_PlayerCreation_FacePrev = 171,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
135 UIMSG_PlayerCreation_FaceNext = 172,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
136 UIMSG_AD = 173,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
137 UIMSG_AE = 174,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
138 UIMSG_ClickNPCTopic = 175,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
139 UIMSG_CycleCharacters = 176,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
140 UIMSG_OnCastLloydsBeacon = 177,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
141 UIMSG_LloydsBeacon_FlippingBtn = 178,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
142 UIMSG_InstallBeacon = 179,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
143 UIMSG_HintBeaconSlot = 180,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
144 UIMSG_CloseAfterInstallBeacon = 181,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
145 UIMSG_HintTownPortal = 182,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
146 UIMSG_ClickTownInTP = 183,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
147 UIMSG_SetTurnSpeed = 184,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
148 UIMSG_ToggleWalkSound = 185,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
149 UIMSG_ChangeVoiceVolume = 186,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
150 UIMSG_ToggleShowDamage = 187,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
151 UIMSG_ScrollNPCPanel = 188,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
152 UIMSG_BD = 189,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
153 UIMSG_CastSpell_BE = 190,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
154 UIMSG_BF = 191,
1101
3e5d70cfe20e Award order fix, changed UIMSG_C0 to UIMSG_ClickAwardScrollBar
Grumpy7
parents: 1038
diff changeset
155 UIMSG_ClickAwardScrollBar = 192,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
156 UIMSG_C1 = 192,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
157 UIMSG_C2 = 192,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
158
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
159 UIMSG_OnCastTownPortal = 195,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
160 UIMSG_C4 = 196,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
161 UIMSG_ShowFinalWindow = 197,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
162 UIMSG_C6 = 198,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
163 UIMSG_C7 = 199,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
164 UIMSG_OpenQuestBook = 200,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
165 UIMSG_OpenAutonotes = 201,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
166 UIMSG_OpenMapBook = 202,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
167 UIMSG_OpenCalendar = 203,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
168 UIMSG_CC = 204,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
169 UIMSG_CD = 205,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
170 UIMSG_CE = 206,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
171 UIMSG_CF = 207,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
172 UIMSG_D0 = 208,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
173 UIMSG_D1 = 209,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
174 UIMSG_D2 = 210,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
175 UIMSG_D3 = 211,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
176 UIMSG_D4 = 212,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
177 UIMSG_D5 = 213,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
178 UIMSG_D6 = 214,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
179
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
180 UIMSG_DD = 221,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
181
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
182 UIMSG_OpenHistoryBook = 224,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
183 UIMSG_ToggleAlwaysRun = 225,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
184 UIMSG_ToggleFlipOnExit = 226,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
185
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
186 UIMSG_ClickZoomOutBtn = 367,
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
187 UIMSG_ClickZoomInBtn = 368,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
188
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
189 UIMSG_Game_Action = 404,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
190 UIMSG_SelectShopDialogueOption = 405,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
191
907
f3ccfc765502 RentRoom
Ritor1
parents: 900
diff changeset
192 UIMSG_RentRoom = 409,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
193 UIMSG_ClickHouseNPCPortrait = 410,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
194 UIMSG_TransitionUI_Confirm = 411,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
195 UIMSG_TransitionWindowCloseBtn = 412,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
196
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
197 UIMSG_OpenKeyMappingOptions = 415,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
198 UIMSG_SelectKeyPage1 = 416,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
199 UIMSG_SelectKeyPage2 = 417,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
200 UIMSG_ResetKeyMapping = 418,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
201 UIMSG_ChangeKeyButton = 419,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
202
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
203 UIMSG_OpenVideoOptions = 421,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
204 UIMSG_ToggleBloodsplats = 422,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
205 UIMSG_ToggleColoredLights = 423,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
206 UIMSG_ToggleTint = 424,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
207 UIMSG_1A9 = 425,
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
208 };
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
209
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
210
0
Ritor1
parents:
diff changeset
211 /* 251 */
Ritor1
parents:
diff changeset
212 enum MENU_STATE : __int32
Ritor1
parents:
diff changeset
213 {
982
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
214 MENU_MAIN = 0,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
215 MENU_NEWGAME = 1,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
216 MENU_CREDITS = 2,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
217 MENU_SAVELOAD = 3,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
218 MENU_EXIT_GAME = 4,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
219 MENU_5 = 5,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
220 MENU_CREATEPARTY = 6,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
221 MENU_NAMEPANELESC = 7,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
222 MENU_CREDITSPROC = 8,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
223 MENU_LoadingProcInMainMenu = 9,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
224 MENU_10 = 10,
08fd1436ef35 enums & lod
Nomad
parents: 972
diff changeset
225 MENU_CREDITSCLOSE = 11,
0
Ritor1
parents:
diff changeset
226 };
Ritor1
parents:
diff changeset
227
Ritor1
parents:
diff changeset
228
167
90521fb9766c NPCDialogue fix
Ritor1
parents: 165
diff changeset
229 enum DIALOGUE_TYPE
90521fb9766c NPCDialogue fix
Ritor1
parents: 165
diff changeset
230 {
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
231 DIALOGUE_9 = 9,
179
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
232 DIALOGUE_13 = 0xD,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
233 DIALOGUE_18 = 0x12,
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
234 DIALOGUE_19 = 19,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
235 DIALOGUE_20 = 20,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
236 DIALOGUE_21 = 21,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
237 DIALOGUE_22 = 22,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
238 DIALOGUE_23 = 23,
179
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
239 DIALOGUE_24 = 0x18,
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
240 DIALOGUE_76 = 76,
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
241 DIALOGUE_PROFESSION_DETAILS = 77,
179
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
242 DIALOGUE_ARENA_WELCOME = 0x59,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
243 DIALOGUE_ARENA_FIGHT_NOT_OVER_YET = 0x5A,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
244 DIALOGUE_ARENA_REWARD = 0x5B,
f102bbff6fd8 15.02.13 Water
Ritor1
parents: 174
diff changeset
245 DIALOGUE_ARENA_ALREADY_WON = 0x5C,
167
90521fb9766c NPCDialogue fix
Ritor1
parents: 165
diff changeset
246 };
0
Ritor1
parents:
diff changeset
247
Ritor1
parents:
diff changeset
248
Ritor1
parents:
diff changeset
249
Ritor1
parents:
diff changeset
250
Ritor1
parents:
diff changeset
251
Ritor1
parents:
diff changeset
252 /* 298 */
Ritor1
parents:
diff changeset
253 enum WindowType: unsigned __int32
Ritor1
parents:
diff changeset
254 {
Ritor1
parents:
diff changeset
255 WINDOW_null = 0,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
256 WINDOW_MainMenu = 1,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
257 WINDOW_OptionsButtons = 3,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
258 WINDOW_CharacterRecord = 4,
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
259 WINDOW_Options = 6,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
260 WINDOW_8 = 8,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
261 WINDOW_Book = 9,
959
f8dd764fb7d7 ExitCharacterWindow and other
Ritor1
parents: 948
diff changeset
262 WINDOW_Dialogue = 10,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
263 WINDOW_QuickReference = 12,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
264 WINDOW_F = 15,
948
5a2dbb00c399 Code cleaning.
Nomad
parents: 917
diff changeset
265 WINDOW_Rest = 16,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
266 WINDOW_ChangeLocation = 17,
158
f4ebd13c2a8e 13.02.13
Ritor1
parents: 151
diff changeset
267 WINDOW_SpellBook = 0x12,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
268 WINDOW_GreetingNPC = 19,
0
Ritor1
parents:
diff changeset
269 WINDOW_Chest = 0x14,
990
087a9af8e0ec MessageParam
Ritor1
parents: 987
diff changeset
270 WINDOW_22 = 0x16,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
271 WINDOW_SaveLoadButtons = 23,
0
Ritor1
parents:
diff changeset
272 WINDOW_MainMenu_Load = 0x18,
Ritor1
parents:
diff changeset
273 WINDOW_HouseInterior = 0x19,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
274 WINDOW_Transition = 26,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
275 WINDOW_CastSpell = 27,
158
f4ebd13c2a8e 13.02.13
Ritor1
parents: 151
diff changeset
276 WINDOW_Scroll = 0x1E,
898
10fa7dad1391 DrawPaperdoll clean
Ritor1
parents: 832
diff changeset
277 WINDOW_CastSpell_InInventory = 31,
962
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
278 WINDOW_FinalWindow = 70,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
279 WINDOW_50 = 80,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
280 WINDOW_59 = 89,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
281 WINDOW_PressedButton2 = 90,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
282 WINDOW_CharactersPressedButton = 91,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
283 WINDOW_PressedButton = 92,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
284 WINDOW_5D = 93,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
285 WINDOW_SaveLoadBtn = 94,
962
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
286 WINDOW_LoadGame_CancelBtn = 95,
0423c40d7e88 UpdateWindows and pWindow->Release
Ritor1
parents: 961
diff changeset
287 WINDOW_CloseRestWindowBtn = 96,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
288 WINDOW_ExitCharacterWindow = 97,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
289 WINDOW_RestWindow = 0x62,
960
9a5db2cf999a UIMSG and WINDOW_Type
Ritor1
parents: 959
diff changeset
290 WINDOW_BooksWindow = 99,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
291 WINDOW_CharacterWindow_Stats = 0x64,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
292 WINDOW_CharacterWindow_Skills = 0x65,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
293 WINDOW_CharacterWindow_Awards = 0x66,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
294 WINDOW_CharacterWindow_Inventory = 0x67,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
295 WINDOW_68 = 104,
0
Ritor1
parents:
diff changeset
296 WINDOW_KeyMappingOptions = 0x69,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
297 WINDOW_VideoOptions = 0x6A,
961
5a12082c803d UIMSG and WINDOW_Type(continue)
Ritor1
parents: 960
diff changeset
298 WINDOW_LloydsBeacon = 177,
710
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
299 WINDOW_TownPortal = 195,
735dab8d3c9a Town portal screen + misc gui const replacements
Nomad
parents: 688
diff changeset
300 WINDOW_QuestBook = 200,
17
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
301 WINDOW_AutonotesBook = 0xC9,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
302 WINDOW_MapsBook = 0xCA,
fe0d9a98213f 17.01.13 (fix Hint error)
Ritor1
parents: 11
diff changeset
303 WINDOW_CalendarBook = 0xCB,
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
304 WINDOW_JournalBook = 0xE0,
0
Ritor1
parents:
diff changeset
305 };
Ritor1
parents:
diff changeset
306
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
307 struct GUIButton;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
308 struct Texture;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
309
1038
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
310
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
311 #define WINDOW_INPUT_NONE 0
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
312 #define WINDOW_INPUT_IN_PROGRESS 1
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
313 #define WINDOW_INPUT_CONFIRMED 2
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
314 #define WINDOW_INPUT_CANCELLED 3
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
315
0
Ritor1
parents:
diff changeset
316 /* 155 */
Ritor1
parents:
diff changeset
317 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
318 struct GUIWindow
Ritor1
parents:
diff changeset
319 {
200
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
320 inline GUIWindow()
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
321 {
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
322 pControlsHead = pControlsTail = nullptr;
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
323 eWindowType = WINDOW_null;
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
324 }
1527f66fd81b Buffer overflow in credits window
Nomad
parents: 199
diff changeset
325
189
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 179
diff changeset
326 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7,
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
327 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, Texture *pTextures, ...);
0
Ritor1
parents:
diff changeset
328 void DrawFlashingInputCursor(signed int a3, int a4, struct GUIFont *a2);
Ritor1
parents:
diff changeset
329 int DrawTextInRect(GUIFont *a2, unsigned int uX, unsigned int uY, unsigned int uColor, const char *Str1, int Source, int a8);
1006
e865f349aa41 ui cleanup
Gloval
parents: 1004
diff changeset
330 void DrawText(GUIFont *a2, signed int uX, int uY, unsigned int uFontColor, const char *Str, int a7, int a8, unsigned int uFontShadowColor);
762
cf2fbac6edc9 Misc cleaning
Nomad
parents: 735
diff changeset
331 void 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
332 void DrawCurrentTime(__int64 a2);
405
c0700eaabeb8 AnimatedRooms fix and change name of function
Ritor1
parents: 371
diff changeset
333 void HouseDialogManager();
198
e6e348d66a75 Some work on spellbook
Nomad
parents: 190
diff changeset
334 void OpenSpellBook();
0
Ritor1
parents:
diff changeset
335 void InitializeBookView();
Ritor1
parents:
diff changeset
336 void DrawMessageBox(int arg0);
Ritor1
parents:
diff changeset
337 GUIButton *GetControl(unsigned int uID);
Ritor1
parents:
diff changeset
338 void Release();
972
c8a0f6d89c70 Some inqury on selecting Knight bug.
Nomad
parents: 962
diff changeset
339 void _41D08F_set_keyboard_control_group(int a2, int a3, int a4, int a5);
1006
e865f349aa41 ui cleanup
Gloval
parents: 1004
diff changeset
340 void _41D73D_draw_buff_tooltip();
0
Ritor1
parents:
diff changeset
341
Ritor1
parents:
diff changeset
342 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
343
Ritor1
parents:
diff changeset
344 unsigned int uFrameX;
Ritor1
parents:
diff changeset
345 unsigned int uFrameY;
Ritor1
parents:
diff changeset
346 unsigned int uFrameWidth;
Ritor1
parents:
diff changeset
347 unsigned int uFrameHeight;
Ritor1
parents:
diff changeset
348 unsigned int uFrameZ;
Ritor1
parents:
diff changeset
349 unsigned int uFrameW;
Ritor1
parents:
diff changeset
350 WindowType eWindowType;
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
351 union{
917
ae9e2a339b09 disappear items fix
Ritor1
parents: 910
diff changeset
352 void *ptr_1C;// sometimes BuildID_2Events
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
353 unsigned int par1C;
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
354 };
0
Ritor1
parents:
diff changeset
355 unsigned int uNumControls;
Ritor1
parents:
diff changeset
356 int field_24;
Ritor1
parents:
diff changeset
357 int pNumPresenceButton;
Ritor1
parents:
diff changeset
358 int pCurrentPosActiveItem;
Ritor1
parents:
diff changeset
359 int field_30;
Ritor1
parents:
diff changeset
360 int field_34;
Ritor1
parents:
diff changeset
361 int pStartingPosActiveItem;
496
0e20e886365d guilds ....
Gloval
parents: 495
diff changeset
362 int numVisibleWindows;
1038
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
363 int receives_keyboard_input_2; // 0 no input 1 currently typing 2 enter pressed 3 escape pressed
972
c8a0f6d89c70 Some inqury on selecting Knight bug.
Nomad
parents: 962
diff changeset
364 int receives_keyboard_input;
0
Ritor1
parents:
diff changeset
365 char *Hint;
Ritor1
parents:
diff changeset
366 GUIButton *pControlsHead;
Ritor1
parents:
diff changeset
367 GUIButton *pControlsTail;
Ritor1
parents:
diff changeset
368 };
Ritor1
parents:
diff changeset
369 #pragma pack(pop)
Ritor1
parents:
diff changeset
370
Ritor1
parents:
diff changeset
371
Ritor1
parents:
diff changeset
372
Ritor1
parents:
diff changeset
373
Ritor1
parents:
diff changeset
374
Ritor1
parents:
diff changeset
375
495
90fdb47bfcba guilds ...
Gloval
parents: 481
diff changeset
376
629
59713bb36033 houses func moved to uihouses
Gloval
parents: 623
diff changeset
377
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
378 enum CURRENT_SCREEN
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
379 {
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
380 SCREEN_GAME = 0x0,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
381 SCREEN_MENU = 0x1,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
382 SCREEN_OPTIONS = 0x2,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
383 SCREEN_BOOKS = 0x3,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
384 SCREEN_NPC_DIALOGUE = 0x4,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
385 SCREEN_REST = 0x5,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
386 SCREEN_CHARACTERS = 0x7,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
387 SCREEN_SPELL_BOOK = 0x8,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
388 SCREEN_CREATORS = 0x9,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
389 SCREEN_CHEST = 0xA,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
390 SCREEN_SAVEGAME = 0xB,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
391 SCREEN_LOADGAME = 0xC,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
392 SCREEN_HOUSE = 0xD,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
393 SCREEN_E = 0xE,
987
9e132060ada3 UIMSG_CHEST_ClickItem
Ritor1
parents: 984
diff changeset
394 SCREEN_CHEST_INVENTORY = 0xF,
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
395 SCREEN_VIDEO = 0x10,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
396 SCREEN_CHANGE_LOCATION = 0x11,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
397 SCREEN_INPUT_BLV = 0x12,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
398 SCREEN_BRANCHLESS_NPC_DIALOG = 0x13,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
399 SCREEN_PARTY_CREATION = 0x15,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
400 SCREEN_PRESS_ESCAPE_MESSAGE = 0x16,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
401 SCREEN_CASTING = 0x17,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
402 SCREEN_19 = 0x19,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
403 SCREEN_KEYBOARD_OPTIONS = 0x1A,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
404 SCREEN_1B = 0x1B,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
405 SCREEN_VIDEO_OPTIONS = 0x1C,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
406 SCREEN_63 = 0x63,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
407 SCREEN_64 = 0x64,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
408 SCREEN_67 = 0x67,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
409 SCREEN_QUICK_REFERENCE = 0x68,
9abdd40a107b pCurrentScreen
Ritor1
parents: 111
diff changeset
410 };
0
Ritor1
parents:
diff changeset
411
Ritor1
parents:
diff changeset
412
Ritor1
parents:
diff changeset
413
Ritor1
parents:
diff changeset
414
Ritor1
parents:
diff changeset
415 /* 249 */
Ritor1
parents:
diff changeset
416 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
417 struct GUIMessage
Ritor1
parents:
diff changeset
418 {
Ritor1
parents:
diff changeset
419 enum UIMessageType eType;
Ritor1
parents:
diff changeset
420 int param;
Ritor1
parents:
diff changeset
421 int field_8;
Ritor1
parents:
diff changeset
422 };
Ritor1
parents:
diff changeset
423 #pragma pack(pop)
Ritor1
parents:
diff changeset
424
Ritor1
parents:
diff changeset
425
Ritor1
parents:
diff changeset
426
Ritor1
parents:
diff changeset
427
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
428 #define AddMessage(msg, param, a4) AddMessageImpl((msg), (param), (a4), __FILE__, __LINE__)
0
Ritor1
parents:
diff changeset
429 /* 250 */
Ritor1
parents:
diff changeset
430 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
431 struct GUIMessageQueue
Ritor1
parents:
diff changeset
432 {
Ritor1
parents:
diff changeset
433 inline GUIMessageQueue():
Ritor1
parents:
diff changeset
434 uNumMessages(0)
Ritor1
parents:
diff changeset
435 {}
Ritor1
parents:
diff changeset
436
783
b27dd658ea77 Taveling by foot fixed.
Nomad
parents: 762
diff changeset
437 void Flush();
0
Ritor1
parents:
diff changeset
438 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4);
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
439 void AddMessageImpl(UIMessageType msg, int param, unsigned int a4, const char *file = nullptr, int line = 0);
0
Ritor1
parents:
diff changeset
440
Ritor1
parents:
diff changeset
441 unsigned int uNumMessages;
Ritor1
parents:
diff changeset
442 GUIMessage pMessages[40];
437
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
443
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
444 const char *files[40];
0a1ea44b4a0a ui mesages & spellcasting
Nomad
parents: 434
diff changeset
445 int lines[40];
0
Ritor1
parents:
diff changeset
446 };
Ritor1
parents:
diff changeset
447 #pragma pack(pop)
Ritor1
parents:
diff changeset
448
Ritor1
parents:
diff changeset
449 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
Ritor1
parents:
diff changeset
450
1012
9e823ad5eaa6 second msg_queue returned
Gloval
parents: 1006
diff changeset
451 extern struct GUIMessageQueue *pMessageQueue_50C9E8; // idb
0
Ritor1
parents:
diff changeset
452
Ritor1
parents:
diff changeset
453
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
454
651
2bf48d11d742 Training hall UI fixed
Nomad
parents: 629
diff changeset
455 void OnSelectNPCDialogueOption(DIALOGUE_TYPE newDialogueType);
248
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
456
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
457
37dcbe8f3cca Dialogue stuff
Nomad
parents: 201
diff changeset
458
0
Ritor1
parents:
diff changeset
459 extern int pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[]; // idb
Ritor1
parents:
diff changeset
460 extern struct GUIWindow *pWindow_MainMenu;
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
461 extern std::array<struct GUIWindow, 20> pWindowList;
566
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
462
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
463
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
464
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
465
1183
fa30ea497e94 arcomage refactoring started
Gloval
parents: 1118
diff changeset
466 void ModalWindow(const char *pStr, int a4);
566
fcbb3c281217 QuickRef reputation string fix
Nomad
parents: 496
diff changeset
467
994
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
468
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
469
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
470 void draw_leather();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
471
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
472
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
473 // main menu ui
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
474 void MainMenuUI_LoadFontsAndSomeStuff();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
475 void MainMenuUI_Create();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
476 MENU_STATE MainMenuUI_Credits_Loop();
994
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
477
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
478 // save & load ui
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
479 void SaveUI_Load();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
480 void SaveUI_Draw();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
481
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
482 void LoadUI_Draw();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
483 void LoadUI_Load(unsigned int uDialogueType); // idb
994
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
484
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
485 // game ui
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
486 void GameUI_DrawRightPanel();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
487 void GameUI_DrawRightPanelFrames();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
488 void GameUI_DrawRightPanelItems();
991
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
489 void GameUI_QuickRef_Draw();
994
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
490 void GameUI_DrawFoodAndGold();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
491 void GameUI_DrawLifeManaBars();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
492 void GameUI_DrawHiredNPCs();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
493 void GameUI_DrawPortraits(unsigned int _this);
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
494 void GameUI_Footer();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
495 void GameUI_Footer_2();
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
496 void GameUI_SetFooterString(const char *pStr);
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
497 void GameUI_DrawMinimap(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW, unsigned int uZoom, unsigned int bRedrawOdmMinimap);
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
498 auto GameUI_GetMinimapHintText() -> const char *;
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
499 void GameUI_DrawPartySpells();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
500 void GameUI_DrawTorchlightAndWizardEye();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
501 void GameUI_DrawCharacterSelectionFrame();
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
502 void GameUI_CharacterQuickRecord_Draw(GUIWindow *window, Player *player);
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
503 void GameUI_DrawNPCPopup(void *_this);
816
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
504
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
505 void GameUI_InitializeDialogue(Actor *actor, int bPlayerSaysHello);
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
506 void GameUI_DrawBranchlessDialogue();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
507 void GameUI_DrawDialogue();
816
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
508
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
509
1031
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
510 // game menu ui
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
511 void GameMenuUI_DrawKeyBindings();
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
512 void GameMenuUI_DrawVideoOptions();
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
513 void GameMenuUI_Options_Draw();
816
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
514
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
515
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
516
cfc65feef029 * Player Recovery Times
Nomad
parents: 783
diff changeset
517
994
3431f6abc786 GameUI clean
Nomad
parents: 992
diff changeset
518 // character ui
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
519 struct GUIWindow *CharacterUI_Initialize(unsigned int _this);
983
1462a5f12b65 Character Skills tab drawing fixed.
Nomad
parents: 982
diff changeset
520 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType);
1006
e865f349aa41 ui cleanup
Gloval
parents: 1004
diff changeset
521 void CharacterUI_SkillsTab_ShowHint();
983
1462a5f12b65 Character Skills tab drawing fixed.
Nomad
parents: 982
diff changeset
522 void CharacterUI_StatsTab_ShowHint();
1006
e865f349aa41 ui cleanup
Gloval
parents: 1004
diff changeset
523 void CharacterUI_StatsTab_Draw(Player *player);
991
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
524 void CharacterUI_SkillsTab_CreateButtons();
983
1462a5f12b65 Character Skills tab drawing fixed.
Nomad
parents: 982
diff changeset
525 void CharacterUI_SkillsTab_Draw(Player *player);
991
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
526 void CharacterUI_AwardsTab_Draw(Player *player);
984
d982fffb8b96 CharacterUI_InventoryTab_Draw cleaned.
Nomad
parents: 983
diff changeset
527 void CharacterUI_InventoryTab_Draw(Player *player, bool a2);
991
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
528 void CharacterUI_CharacterScreen_Draw(Player *player);
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
529 void CharacterUI_DrawPaperdoll(Player *player);
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
530 void CharacterUI_DrawPaperdollWithRingOverlay(Player *player);
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
531 void CharacterUI_ReleaseButtons();
c5d8ea1e6ccb CharacterUI cleanings.
Nomad
parents: 984
diff changeset
532
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
533 unsigned int GetSkillColor(unsigned int uPlayerClass, PLAYER_SKILL_TYPE uPlayerSkillType, signed int skill_level);
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
534
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
535
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
536
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
537
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
538
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
539 // book ui
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
540 void BookUI_Draw(WindowType book);
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
541 void BookUI_Questbook_Draw();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
542 void BookUI_Autonotes_Draw();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
543 void BookUI_Map_Draw();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
544 void BookUI_Calendar_Draw();
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
545 void BookUI_Journal_Draw();
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
546
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
547 void OnCloseSpellBook();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
548 void InitializeBookTextures();
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
549 void InitializeBookFonts();
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
550 void DrawSpellBookContent(Player *player);
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
551 unsigned int __cdecl DrawLloydBeaconsScreen();
1038
39f42990698f Cleanings
Nomad
parents: 1033
diff changeset
552 void BookUI_DrawTownPortalMap();
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
553 void LoadSpellbook(unsigned int uID); // idb
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
554 void DrawSpellDescriptionPopup(int spell_index);
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
555 void sub_41140B();
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
556 void sub_411473();
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
557
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
558
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
559
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
560 // rest ui
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
561 void RestUI_Load();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
562 void RestUI_Draw();
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
563
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
564
1033
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
565 // transition & travel ui
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
566 void TransitionUI_Load(uint anim_id, uint exit_pic_id, int x, int y, int z, int directiony, int directionx, int a8, const char *pLocationName);
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
567 void TransitionUI_Draw();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
568
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
569 void TravelUI_Load();
3a5c8df8381d * UI cleans and moves
Nomad
parents: 1031
diff changeset
570 void TravelUI_Draw();
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
571
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
572
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
573
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
574
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
575
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
576
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
577
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
578
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
579
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
580
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
581
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
582
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
583
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
584
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
585
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
586
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
587
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
588
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
589
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
590
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
591
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
592 #pragma pack(push, 1)
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
593 struct GUIButton
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
594 {
1006
e865f349aa41 ui cleanup
Gloval
parents: 1004
diff changeset
595 void DrawLabel(const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor);
832
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
596
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
597 void Release();
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
598
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
599
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
600 unsigned int uX;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
601 unsigned int uY;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
602 unsigned int uWidth;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
603 unsigned int uHeight;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
604 unsigned int uZ;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
605 unsigned int uW;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
606 int uButtonType;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
607 int field_1C;//may be pMessageType
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
608 UIMessageType msg;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
609 unsigned int msg_param;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
610 int field_28;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
611 int field_2C_is_pushed;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
612 GUIButton *pPrev;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
613 GUIButton *pNext;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
614 struct GUIWindow *pParent;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
615 struct Texture *pTextures[5];
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
616 unsigned int uNumTextures;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
617 unsigned __int8 uHotkey;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
618 char pButtonName[32];
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
619 char field_75[71];
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
620 };
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
621 #pragma pack(pop)
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
622
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
623
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
624
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
625
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
626 extern struct GUIButton *pBtn_CloseBook;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
627 extern struct GUIButton *pBtn_InstallRemoveSpell;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
628 extern struct GUIButton *pBtn_Autonotes_Instructors;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
629 extern struct GUIButton *pBtn_Autonotes_Misc;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
630 extern struct GUIButton *pBtn_Book_6;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
631 extern struct GUIButton *pBtn_Book_5;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
632 extern struct GUIButton *pBtn_Book_4;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
633 extern struct GUIButton *pBtn_Book_3;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
634 extern struct GUIButton *pBtn_Book_2;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
635 extern struct GUIButton *pBtn_Book_1;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
636
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
637
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
638 extern struct GUIButton *pPlayerCreationUI_BtnReset;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
639 extern struct GUIButton *pPlayerCreationUI_BtnOK;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
640 extern struct GUIButton *pBtn_ExitCancel;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
641 extern struct GUIButton *pBtn_YES;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
642 extern struct GUIButton *pPlayerCreationUI_BtnPlus;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
643 extern struct GUIButton *pPlayerCreationUI_BtnMinus;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
644
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
645
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
646 extern struct GUIButton *pButton_RestUI_Main;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
647 extern struct GUIButton *pButton_RestUI_Exit;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
648 extern struct GUIButton *pButton_RestUI_Wait5Minutes;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
649 extern struct GUIButton *pButton_RestUI_WaitUntilDawn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
650 extern struct GUIButton *pButton_RestUI_Wait1Hour;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
651
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
652
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
653 extern struct GUIButton *pCharacterScreen_ExitBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
654 extern struct GUIButton *pCharacterScreen_AwardsBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
655 extern struct GUIButton *pCharacterScreen_InventoryBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
656 extern struct GUIButton *pCharacterScreen_SkillsBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
657 extern struct GUIButton *pCharacterScreen_StatsBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
658 extern struct GUIButton *pCharacterScreen_DollBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
659 extern struct GUIButton *pCharacterScreen_DetalizBtn;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
660
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
661
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
662 extern struct GUIButton *pBtn_NPCRight;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
663 extern struct GUIButton *pBtn_NPCLeft;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
664 extern struct GUIButton *pBtn_GameSettings;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
665 extern struct GUIButton *pBtn_QuickReference;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
666 extern struct GUIButton *pBtn_CastSpell;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
667 extern struct GUIButton *pBtn_Rest;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
668 extern struct GUIButton *pBtn_History;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
669 extern struct GUIButton *pBtn_Calendar;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
670 extern struct GUIButton *pBtn_Maps;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
671 extern struct GUIButton *pBtn_Autonotes;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
672 extern struct GUIButton *pBtn_Quests;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
673
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
674
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
675 extern struct GUIButton *pMainMenu_BtnExit;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
676 extern struct GUIButton *pMainMenu_BtnCredits;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
677 extern struct GUIButton *pMainMenu_BtnLoad;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
678 extern struct GUIButton *pMainMenu_BtnNew;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
679
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
680
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
681 extern struct GUIButton *pBtn_Up;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
682 extern struct GUIButton *pBtn_Down;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
683 extern struct GUIButton *ptr_507BA4;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
684
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
685
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
686 extern struct GUIWindow *pPrimaryWindow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
687 extern struct GUIWindow *pChestWindow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
688 extern struct GUIWindow *pDialogueWindow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
689 extern struct GUIWindow *window_SpeakInHouse;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
690 extern struct GUIWindow *pGUIWindow_ScrollWindow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
691 extern struct GUIWindow *ptr_507BC8;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
692 extern struct GUIWindow *pGUIWindow_CurrentMenu;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
693 extern struct GUIWindow *ptr_507BD0;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
694 extern struct GUIWindow *pGUIWindow_Settings;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
695 extern struct GUIWindow *ptr_507BDC;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
696 extern struct GUIWindow *pGUIWindow_EscMessageWindow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
697 extern struct GUIWindow *pBooksWindow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
698 extern struct GUIWindow *pGUIWindow2;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
699
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
700
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
701 extern struct GUIButton *pBtn_Resume;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
702 extern struct GUIButton *pBtn_QuitGame;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
703 extern struct GUIButton *pBtn_GameControls;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
704 extern struct GUIButton *pBtn_LoadGame;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
705 extern struct GUIButton *pBtn_SaveGame;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
706 extern struct GUIButton *pBtn_NewGame;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
707
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
708 extern struct GUIButton *pBtn_SliderRight;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
709 extern struct GUIButton *pBtn_SliderLeft;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
710
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
711
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
712 extern struct GUIButton *pBtnDownArrow;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
713 extern struct GUIButton *pBtnArrowUp;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
714 extern struct GUIButton *pBtnCancel;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
715 extern struct GUIButton *pBtnLoadSlot;
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
716
dfd683c4f538 Hotkeys fixed
Nomad
parents: 816
diff changeset
717
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
718 extern std::array<GUIButton*, 4> pCreationUI_BtnPressRight2;
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
719 extern std::array<GUIButton*, 4> pCreationUI_BtnPressLeft2;
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
720 extern std::array<GUIButton*, 4> pCreationUI_BtnPressLeft;
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
721 extern std::array<GUIButton*, 4> pCreationUI_BtnPressRight;
983
1462a5f12b65 Character Skills tab drawing fixed.
Nomad
parents: 982
diff changeset
722
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
723 extern int uTextureID_GameUI_CharSelectionFrame; // 50C98C
983
1462a5f12b65 Character Skills tab drawing fixed.
Nomad
parents: 982
diff changeset
724
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
725 extern unsigned int ui_mainmenu_copyright_color;
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
726 extern unsigned int ui_character_default_text_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
727 extern unsigned int ui_character_skill_highlight_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
728 extern unsigned int ui_character_header_text_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
729 extern unsigned int ui_character_bonus_text_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
730 extern unsigned int ui_character_bonus_text_color_neg;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
731 extern unsigned int ui_character_skill_upgradeable_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
732 extern unsigned int ui_character_skill_default_color;
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
733 extern std::array<unsigned int, 6> ui_character_award_color;
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
734 extern unsigned int ui_game_minimap_outline_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
735 extern unsigned int ui_game_minimap_actor_friendly_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
736 extern unsigned int ui_game_minimap_actor_hostile_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
737 extern unsigned int ui_game_minimap_actor_corpse_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
738 extern unsigned int ui_game_minimap_decoration_color_1;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
739 extern unsigned int ui_game_minimap_projectile_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
740 extern unsigned int ui_game_minimap_treasure_color;
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1183
diff changeset
741 extern std::array<unsigned int, 24> ui_game_character_record_playerbuff_colors;
1031
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
742 extern unsigned int ui_gamemenu_video_gamma_title_color;
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
743 extern unsigned int ui_gamemenu_keys_action_name_color;
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
744 extern unsigned int ui_gamemenu_keys_key_selection_blink_color_1;
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
745 extern unsigned int ui_gamemenu_keys_key_selection_blink_color_2;
f93d17337113 UI stuff.
Nomad
parents: 1020
diff changeset
746 extern unsigned int ui_gamemenu_keys_key_default_color;
995
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
747 extern unsigned int ui_book_quests_title_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
748 extern unsigned int ui_book_quests_text_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
749 extern unsigned int ui_book_autonotes_title_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
750 extern unsigned int ui_book_autonotes_text_color;
5876a9cafa3e Various UIs, autonotes title fixed
Nomad
parents: 994
diff changeset
751 extern unsigned int ui_book_map_title_color;
1004
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
752 extern unsigned int ui_book_map_coordinates_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
753 extern unsigned int ui_book_calendar_title_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
754 extern unsigned int ui_book_calendar_time_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
755 extern unsigned int ui_book_calendar_day_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
756 extern unsigned int ui_book_calendar_month_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
757 extern unsigned int ui_book_calendar_year_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
758 extern unsigned int ui_book_calendar_moon_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
759 extern unsigned int ui_book_calendar_location_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
760 extern unsigned int ui_book_journal_title_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
761 extern unsigned int ui_book_journal_text_color;
eac5af72b614 UI cleans
Nomad
parents: 999
diff changeset
762 extern unsigned int ui_book_journal_text_shadow;