annotate GUI/GUIWindow.h @ 2546:4087cbc62706

GameMenu logic moved to GUIWindow_GameMenu the same for game menu options
author a.parshin
date Mon, 11 May 2015 17:45:02 +0200
parents e06a3fe9ad6e
children fed97f15d1e1
rev   line source
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1 #pragma once
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
2
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
3 #include <cstdint>
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
4 #include <array>
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
5
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
6 #include "Engine/Objects/Player.h"
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
7
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
8 enum UIMessageType: unsigned __int32
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
9 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
10 UIMSG_0 = 0,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
11
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
12 UIMSG_ChangeGameState = 5,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
13
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
14 UIMSG_MouseLeftClickInGame = 10,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
15
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
16 UIMSG_CHEST_ClickItem = 12,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
17
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
18 UIMSG_MouseLeftClickInScreen = 14,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
19 UIMSG_F = 15,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
20
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
21 UIMSG_ChangeCursor = 17,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
22
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
23 UIMSG_Attack = 23,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
24
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
25 UIMSG_CastQuickSpell = 25,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
26
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
27 UIMSG_STEALFROMACTOR = 27,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
28 UIMSG_1C = 28,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
29 UIMSG_PlayArcomage = 29,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
30
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
31 UIMSG_31 = 49,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
32 UIMSG_32 = 50,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
33 UIMSG_SpellBook_PressTab = 51,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
34 UIMSG_34 = 52,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
35 UIMSG_35 = 53,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
36 UIMSG_MainMenu_ShowPartyCreationWnd = 54,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
37 UIMSG_MainMenu_ShowLoadWindow = 55,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
38 UIMSG_ShowCredits = 56,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
39 UIMSG_ExitToWindows = 57,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
40 UIMSG_3A = 58,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
41
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
42 UIMSG_PlayerCreationChangeName = 60,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
43
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
44 UIMSG_PlayerCreationClickPlus = 62,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
45 UIMSG_PlayerCreationClickMinus = 63,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
46 UIMSG_PlayerCreationSelectActiveSkill = 64,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
47 UIMSG_PlayerCreationSelectClass = 65,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
48 UIMSG_PlayerCreationClickOK = 66,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
49 UIMSG_PlayerCreationClickReset = 67,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
50 UIMSG_44 = 68,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
51 UIMSG_CastSpell_Character_Big_Improvement = 69,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
52 UIMSG_CastSpell_Shoot_Monster = 70,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
53 UIMSG_ClickBooksBtn = 71,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
54 UIMSG_48 = 72,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
55 UIMSG_49 = 73,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
56 UIMSG_PlayerCreationRemoveUpSkill = 74,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
57 UIMSG_PlayerCreationRemoveDownSkill = 75,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
58
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
59 UIMSG_HintSelectRemoveQuickSpellBtn = 78,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
60 UIMSG_SPellbook_ShowHightlightedSpellInfo = 79,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
61
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
62 UIMSG_BuyInShop_Identify_Repair = 81,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
63 UIMSG_LoadGame = 82,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
64 UIMSG_SaveGame = 83,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
65 UIMSG_54 = 84,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
66 UIMSG_ChangeDetaliz = 85,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
67 UIMSG_SelectSpell = 86,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
68 UIMSG_OpenSpellbookPage = 87,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
69 UIMSG_ClickInstallRemoveQuickSpellBtn = 88,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
70
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
71 UIMSG_OnTravelByFoot = 90,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
72 UIMSG_CHANGE_LOCATION_ClickCencelBtn = 91,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
73 UIMSG_ShowStatus_DateTime = 92,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
74 UIMSG_ShowStatus_ManaHP = 93,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
75 UIMSG_ShowStatus_Player = 94,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
76 UIMSG_Wait5Minutes = 95,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
77 UIMSG_Wait1Hour = 96,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
78 UIMSG_Rest8Hour = 97,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
79
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
80 UIMSG_ShowStatus_Food = 100,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
81 UIMSG_ShowStatus_Funds = 101,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
82
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
83 UIMSG_RestWindow = 104,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
84 UIMSG_SpellBookWindow = 105,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
85 UIMSG_QuickReference = 106,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
86 UIMSG_GameMenuButton = 107,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
87
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
88 UIMSG_AlreadyResting = 109,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
89 UIMSG_SelectCharacter = 110,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
90 UIMSG_ChangeSoundVolume = 111,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
91 UIMSG_ChangeMusicVolume = 112,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
92 UIMSG_Escape = 113,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
93 UIMSG_ClickSkillsBtn = 114,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
94 UIMSG_ClickStatsBtn = 115,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
95 UIMSG_ClickInventoryBtn = 116,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
96 UIMSG_ClickAwardsBtn = 117,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
97 UIMSG_PlayerCreation_SelectAttribute = 118,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
98
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
99 UIMSG_InventoryLeftClick = 120,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
100 UIMSG_SkillUp = 121,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
101 UIMSG_7A = 122,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
102 UIMSG_GameMenu_ReturnToGame = 123,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
103 UIMSG_StartNewGame = 124,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
104 UIMSG_Game_OpenLoadGameDialog = 125,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
105 UIMSG_Game_OpenSaveGameDialog = 126,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
106 UIMSG_Game_OpenOptionsDialog = 127,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
107 UIMSG_80 = 128,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
108
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
109 UIMSG_SetGraphicsMode = 131,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
110 UIMSG_Quit = 132,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
111 UIMSG_ClickPaperdoll = 133,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
112 UIMSG_StartHireling1Dialogue = 134,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
113 UIMSG_StartHireling2Dialogue = 135,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
114 UIMSG_SelectNPCDialogueOption = 136,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
115
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
116 UIMSG_CastSpell_Monster_Improvement = 140,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
117 UIMSG_CastSpell_Character_Small_Improvement = 141,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
118 UIMSG_CastSpellFromBook = 142,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
119 UIMSG_HiredNPC_CastSpell = 143,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
120 UIMSG_PlayerCreation_VoicePrev = 144,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
121 UIMSG_PlayerCreation_VoiceNext = 145,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
122 UIMSG_SpellScrollUse = 146,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
123
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
124 UIMSG_StartNPCDialogue = 161,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
125 UIMSG_ArrowUp = 162,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
126 UIMSG_DownArrow = 163,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
127 UIMSG_SaveLoadBtn = 164,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
128 UIMSG_SelectLoadSlot = 165,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
129 UIMSG_Cancel = 166,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
130 UIMSG_ExitRest = 167,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
131 UIMSG_ClickExitCharacterWindowBtn = 168,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
132 UIMSG_ClickAwardsUpBtn = 169,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
133 UIMSG_ClickAwardsDownBtn = 170,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
134 UIMSG_PlayerCreation_FacePrev = 171,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
135 UIMSG_PlayerCreation_FaceNext = 172,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
136 UIMSG_AD = 173,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
137 UIMSG_AE = 174,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
138 UIMSG_ClickNPCTopic = 175,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
139 UIMSG_CycleCharacters = 176,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
140 UIMSG_OnCastLloydsBeacon = 177,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
141 UIMSG_LloydsBeacon_FlippingBtn = 178,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
142 UIMSG_InstallBeacon = 179,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
143 UIMSG_HintBeaconSlot = 180,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
144 UIMSG_CloseAfterInstallBeacon = 181,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
145 UIMSG_HintTownPortal = 182,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
146 UIMSG_ClickTownInTP = 183,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
147 UIMSG_SetTurnSpeed = 184,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
148 UIMSG_ToggleWalkSound = 185,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
149 UIMSG_ChangeVoiceVolume = 186,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
150 UIMSG_ToggleShowDamage = 187,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
151 UIMSG_ScrollNPCPanel = 188,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
152 UIMSG_BD = 189,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
153 UIMSG_CastSpell_Telekinesis = 190,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
154 UIMSG_BF = 191,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
155 UIMSG_ClickAwardScrollBar = 192,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
156 UIMSG_C1 = 192,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
157 UIMSG_C2 = 192,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
158
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
159 UIMSG_OnCastTownPortal = 195,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
160 UIMSG_OnFinalWindowClose = 196,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
161 UIMSG_ShowFinalWindow = 197,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
162 UIMSG_C6 = 198,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
163 UIMSG_C7 = 199,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
164 UIMSG_OpenQuestBook = 200,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
165 UIMSG_OpenAutonotes = 201,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
166 UIMSG_OpenMapBook = 202,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
167 UIMSG_OpenCalendar = 203,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
168 UIMSG_CC = 204,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
169 UIMSG_CD = 205,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
170 UIMSG_CE = 206,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
171 UIMSG_CF = 207,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
172 UIMSG_D0 = 208,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
173 UIMSG_D1 = 209,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
174 UIMSG_D2 = 210,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
175 UIMSG_D3 = 211,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
176 UIMSG_D4 = 212,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
177 UIMSG_D5 = 213,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
178 UIMSG_D6 = 214,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
179
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
180 UIMSG_DD = 221,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
181
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
182 UIMSG_OpenHistoryBook = 224,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
183 UIMSG_ToggleAlwaysRun = 225,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
184 UIMSG_ToggleFlipOnExit = 226,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
185
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
186 UIMSG_ClickZoomOutBtn = 367,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
187 UIMSG_ClickZoomInBtn = 368,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
188
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
189 UIMSG_Game_Action = 404,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
190 UIMSG_SelectShopDialogueOption = 405,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
191
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
192 UIMSG_RentRoom = 409,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
193 UIMSG_ClickHouseNPCPortrait = 410,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
194 UIMSG_TransitionUI_Confirm = 411,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
195 UIMSG_TransitionWindowCloseBtn = 412,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
196
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
197 UIMSG_OpenKeyMappingOptions = 415,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
198 UIMSG_SelectKeyPage1 = 416,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
199 UIMSG_SelectKeyPage2 = 417,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
200 UIMSG_ResetKeyMapping = 418,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
201 UIMSG_ChangeKeyButton = 419,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
202
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
203 UIMSG_OpenVideoOptions = 421,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
204 UIMSG_ToggleBloodsplats = 422,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
205 UIMSG_ToggleColoredLights = 423,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
206 UIMSG_ToggleTint = 424,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
207 UIMSG_1A9 = 425,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
208
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
209 UIMSG_MMT_MainMenu_MM6 = 426,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
210 UIMSG_MMT_MainMenu_MM7 = 427,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
211 UIMSG_MMT_MainMenu_MM8 = 428,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
212 UIMSG_MMT_MainMenu_Continue = 429,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
213
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
214 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
215
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
216
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
217 /* 251 */
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
218 enum MENU_STATE : __int32
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
219 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
220 MENU_MAIN = 0,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
221 MENU_NEWGAME = 1,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
222 MENU_CREDITS = 2,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
223 MENU_SAVELOAD = 3,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
224 MENU_EXIT_GAME = 4,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
225 MENU_5 = 5,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
226 MENU_CREATEPARTY = 6,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
227 MENU_NAMEPANELESC = 7,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
228 MENU_CREDITSPROC = 8,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
229 MENU_LoadingProcInMainMenu = 9,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
230 MENU_DebugBLVLevel = 10,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
231 MENU_CREDITSCLOSE = 11,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
232 MENU_MMT_MAIN_MENU = 12,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
233 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
234
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
235
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
236 enum DIALOGUE_TYPE
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
237 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
238 DIALOGUE_USE_NPC_ABILITY = 9,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
239 DIALOGUE_13 = 0xD,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
240 DIALOGUE_18 = 18,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
241 DIALOGUE_EVT_A = 19,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
242 DIALOGUE_EVT_B = 20,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
243 DIALOGUE_EVT_C = 21,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
244 DIALOGUE_EVT_D = 22,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
245 DIALOGUE_EVT_E = 23,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
246 DIALOGUE_EVT_F = 0x18,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
247 DIALOGUE_76 = 76,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
248 DIALOGUE_PROFESSION_DETAILS = 77,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
249 DIALOGUE_SKILL_TRAINER = 78,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
250 DIALOGUE_84 = 84,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
251 DIALOGUE_ARENA_SELECT_PAGE = 85,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
252 DIALOGUE_ARENA_SELECT_SQUIRE = 86,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
253 DIALOGUE_ARENA_SELECT_KNIGHT = 87,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
254 DIALOGUE_ARENA_SELECT_CHAMPION = 88,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
255 DIALOGUE_ARENA_WELCOME = 89,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
256 DIALOGUE_ARENA_FIGHT_NOT_OVER_YET = 90,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
257 DIALOGUE_ARENA_REWARD = 91,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
258 DIALOGUE_ARENA_ALREADY_WON = 92,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
259 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
260
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
261
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
262
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
263
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
264
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
265 /* 298 */
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
266 enum WindowType: unsigned __int32
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
267 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
268 WINDOW_null = 0,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
269 WINDOW_MainMenu = 1,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
270 WINDOW_GameMenu = 3,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
271 WINDOW_CharacterRecord = 4,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
272 WINDOW_Options = 6,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
273 WINDOW_8 = 8,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
274 WINDOW_Book = 9,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
275 WINDOW_Dialogue = 10,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
276 WINDOW_QuickReference = 12,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
277 WINDOW_F = 15,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
278 WINDOW_Rest = 16,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
279 WINDOW_ChangeLocation = 17,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
280 WINDOW_SpellBook = 18,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
281 WINDOW_GreetingNPC = 19,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
282 WINDOW_Chest = 20,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
283 WINDOW_22 = 0x16,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
284 WINDOW_SaveLoadButtons = 23,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
285 WINDOW_MainMenu_Load = 0x18,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
286 WINDOW_HouseInterior = 0x19,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
287 WINDOW_Transition = 26,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
288 WINDOW_CastSpell = 27, // OnCastTargetedSpell
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
289 WINDOW_Scroll = 0x1E,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
290 WINDOW_CastSpell_InInventory = 31,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
291 WINDOW_ModalWindow = 70,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
292 WINDOW_50 = 80,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
293 WINDOW_59 = 89,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
294 WINDOW_PressedButton2 = 90,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
295 WINDOW_CharactersPressedButton = 91,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
296 WINDOW_PressedButton = 92,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
297 WINDOW_5D = 93,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
298 WINDOW_SaveLoadBtn = 94,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
299 WINDOW_LoadGame_CancelBtn = 95, // OnCancel3
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
300 WINDOW_CloseRestWindowBtn = 96,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
301 WINDOW_ExitCharacterWindow = 97, // OnCancel2
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
302 WINDOW_RestWindow = 0x62,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
303 WINDOW_BooksWindow = 99,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
304 WINDOW_CharacterWindow_Stats = 0x64,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
305 WINDOW_CharacterWindow_Skills = 0x65,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
306 WINDOW_CharacterWindow_Awards = 0x66,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
307 WINDOW_CharacterWindow_Inventory = 0x67,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
308 WINDOW_68 = 104,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
309 WINDOW_KeyMappingOptions = 0x69,
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
310 WINDOW_VideoOptions = 0x6A,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
311 WINDOW_LloydsBeacon = 177,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
312 WINDOW_TownPortal = 195,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
313 WINDOW_QuestBook = 200,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
314 WINDOW_AutonotesBook = 0xC9,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
315 WINDOW_MapsBook = 0xCA,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
316 WINDOW_CalendarBook = 0xCB,
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
317 WINDOW_JournalBook = 0xE0,
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
318 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
319
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
320 struct GUIButton;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
321 struct Texture;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
322
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
323
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
324 #define WINDOW_INPUT_NONE 0
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
325 #define WINDOW_INPUT_IN_PROGRESS 1
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
326 #define WINDOW_INPUT_CONFIRMED 2
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
327 #define WINDOW_INPUT_CANCELLED 3
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
328
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
329 /* 155 */
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
330 #pragma pack(push, 1)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
331 struct GUIWindow
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
332 {
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
333 GUIWindow();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
334 GUIWindow(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int pButton, const char* hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
335 virtual ~GUIWindow() {}
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
336
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
337 GUIButton *CreateButton(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int a6, int a7,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
338 UIMessageType msg, unsigned int msg_param, unsigned __int8 uHotkey, const char *pName, struct Texture *pTextures, ...);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
339 void DrawFlashingInputCursor(signed int uX, int uY, struct GUIFont *a2);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
340 int DrawTextInRect(GUIFont *pFont, unsigned int uX, unsigned int uY, unsigned int uColor, const char *text, int rect_width, int reverse_text);
2529
dbaf6fc71525 GUIWindow::DrawText: cleaned
a.parshin
parents: 2528
diff changeset
341 void DrawText(GUIFont *a2, signed int uX, int uY, unsigned short uFontColor, const char *Str, bool present_time_transparency, int max_text_height, signed int uFontShadowColor);
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
342 void DrawTitleText(GUIFont *a2, signed int uHorizontalMargin, unsigned int uVerticalMargin, unsigned __int16 uDefaultColor, const char *pInString, unsigned int uLineSpacing);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
343 void DrawShops_next_generation_time_string(__int64 next_generation_time);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
344 void HouseDialogManager();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
345 void OpenSpellBook();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
346 void InitializeBookView();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
347 void DrawMessageBox(int arg0);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
348 GUIButton *GetControl(unsigned int uID);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
349 void _41D08F_set_keyboard_control_group(int num_buttons, int a3, int a4, int a5);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
350 void _41D73D_draw_buff_tooltip();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
351
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
352 virtual void Update() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
353 virtual void Release();
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
354
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
355 unsigned int uFrameX;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
356 unsigned int uFrameY;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
357 unsigned int uFrameWidth;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
358 unsigned int uFrameHeight;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
359 unsigned int uFrameZ;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
360 unsigned int uFrameW;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
361 WindowType eWindowType;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
362 union{
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
363 void *ptr_1C;// sometimes BuildID_2Events
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
364 unsigned int par1C;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
365 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
366 unsigned int uNumControls;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
367 int field_24;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
368 int pNumPresenceButton;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
369 int pCurrentPosActiveItem;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
370 int field_30;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
371 int field_34;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
372 int pStartingPosActiveItem;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
373 int numVisibleWindows;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
374 int receives_keyboard_input_2; // 0 no input 1 currently typing 2 enter pressed 3 escape pressed
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
375 int receives_keyboard_input;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
376 const char *Hint;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
377 GUIButton *pControlsHead;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
378 GUIButton *pControlsTail;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
379 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
380 #pragma pack(pop)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
381
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
382 struct GUIWindow_CharacterRecord : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
383 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
384 GUIWindow_CharacterRecord(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
385 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
386 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
387 virtual ~GUIWindow_CharacterRecord() {}
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
388
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
389 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
390 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
391 struct GUIWindow_Book : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
392 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
393 GUIWindow_Book(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
394 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
395 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
396 InitializeBookView();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
397 }
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
398 virtual ~GUIWindow_Book() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
399
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
400 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
401 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
402 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
403 struct GUIWindow_BooksWindow : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
404 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
405 GUIWindow_BooksWindow(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
406 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
407 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
408 virtual ~GUIWindow_BooksWindow() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
409
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
410 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
411 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
412 struct GUIWindow_QuickReference : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
413 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
414 GUIWindow_QuickReference(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
415 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
416 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
417 virtual ~GUIWindow_QuickReference() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
418
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
419 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
420 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
421 struct GUIWindow_Dialogue : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
422 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
423 GUIWindow_Dialogue(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
424 virtual ~GUIWindow_Dialogue() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
425
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
426 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
427 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
428 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
429 struct GUIWindow_Spellbook : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
430 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
431 GUIWindow_Spellbook(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
432 virtual ~GUIWindow_Spellbook() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
433
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
434 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
435 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
436 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
437 struct GUIWindow_GenericDialogue : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
438 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
439 GUIWindow_GenericDialogue(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
440 virtual ~GUIWindow_GenericDialogue() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
441
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
442 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
443 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
444 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
445 struct GUIWindow_Chest : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
446 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
447 GUIWindow_Chest(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
448 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
449 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
450 CreateButton(61, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 1, '1', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
451 CreateButton(177, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 2, '2', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
452 CreateButton(292, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 3, '3', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
453 CreateButton(407, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 4, '4', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
454 CreateButton(0, 0, 0, 0, 1, 0, UIMSG_CycleCharacters, 0, 9, "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
455 }
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
456 virtual ~GUIWindow_Chest() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
457
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
458 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
459 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
460 struct GUIWindow_Save : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
461 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
462 GUIWindow_Save(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
463 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
464 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
465 virtual ~GUIWindow_Save() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
466
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
467 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
468 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
469 struct GUIWindow_Load : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
470 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
471 GUIWindow_Load(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
472 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
473 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
474 virtual ~GUIWindow_Load() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
475
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
476 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
477 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
478 struct GUIWindow_House : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
479 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
480 GUIWindow_House(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
481 virtual ~GUIWindow_House() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
482
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
483 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
484 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
485 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
486 struct GUIWindow_Scroll : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
487 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
488 GUIWindow_Scroll(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
489 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
490 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
491 CreateButton(61, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 1, '1', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
492 CreateButton(177, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 2, '2', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
493 CreateButton(292, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 3, '3', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
494 CreateButton(407, 424, 31, 0, 2, 94, UIMSG_SelectCharacter, 4, '4', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
495 CreateButton(0, 0, 0, 0, 1, 0, UIMSG_CycleCharacters, 0, '\t', "", 0);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
496 }
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
497 virtual ~GUIWindow_Scroll() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
498
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
499 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
500 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
501 struct GUIWindow_Inventory : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
502 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
503 GUIWindow_Inventory(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
504 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
505 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
506 virtual ~GUIWindow_Inventory() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
507
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
508 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
509 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
510 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
511 struct GUIWindow_Inventory_CastSpell : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
512 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
513 GUIWindow_Inventory_CastSpell(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
514 virtual ~GUIWindow_Inventory_CastSpell() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
515
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
516 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
517 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
518 struct GUIWindow_Modal : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
519 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
520 GUIWindow_Modal(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
521 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
522 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
523 virtual ~GUIWindow_Modal() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
524
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
525 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
526 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
527 struct OnButtonClick : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
528 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
529 OnButtonClick(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
530 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
531 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
532 virtual ~OnButtonClick() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
533
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
534 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
535 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
536 struct OnButtonClick2 : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
537 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
538 OnButtonClick2(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
539 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
540 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
541 virtual ~OnButtonClick2() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
542
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
543 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
544 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
545 struct OnButtonClick3 : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
546 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
547 OnButtonClick3(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
548 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
549 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
550 virtual ~OnButtonClick3() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
551
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
552 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
553 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
554 struct OnButtonClick4 : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
555 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
556 OnButtonClick4(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
557 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
558 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
559 virtual ~OnButtonClick4() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
560
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
561 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
562 virtual void Release();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
563 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
564 struct OnSaveLoad : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
565 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
566 OnSaveLoad(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
567 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
568 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
569 virtual ~OnSaveLoad() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
570
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
571 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
572 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
573 struct OnCancel : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
574 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
575 OnCancel(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
576 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
577 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
578 virtual ~OnCancel() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
579
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
580 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
581 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
582 struct OnCancel2 : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
583 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
584 OnCancel2(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
585 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
586 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
587 virtual ~OnCancel2() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
588
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
589 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
590 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
591 struct OnCancel3 : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
592 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
593 OnCancel3(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint) :
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
594 GUIWindow(x, y, width, height, button, hint)
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
595 {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
596 virtual ~OnCancel3() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
597
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
598 virtual void Update();
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
599 };
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
600 struct OnCastTargetedSpell : public GUIWindow
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
601 {
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
602 OnCastTargetedSpell(unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint);
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
603 virtual ~OnCastTargetedSpell() {}
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
604 };
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
605
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
606
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
607
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
608
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
609
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
610 enum CURRENT_SCREEN
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
611 {
2542
a.parshin
parents: 2541
diff changeset
612 SCREEN_GAME = 0,
a.parshin
parents: 2541
diff changeset
613 SCREEN_MENU = 1,
a.parshin
parents: 2541
diff changeset
614 SCREEN_OPTIONS = 2,
a.parshin
parents: 2541
diff changeset
615 SCREEN_BOOKS = 3,
a.parshin
parents: 2541
diff changeset
616 SCREEN_NPC_DIALOGUE = 4,
a.parshin
parents: 2541
diff changeset
617 SCREEN_REST = 5,
a.parshin
parents: 2541
diff changeset
618 SCREEN_6 = 6,
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
619 SCREEN_CHARACTERS = 7,
2542
a.parshin
parents: 2541
diff changeset
620 SCREEN_SPELL_BOOK = 8,
a.parshin
parents: 2541
diff changeset
621 SCREEN_CREATORS = 9,
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
622 SCREEN_CHEST = 10,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
623 SCREEN_SAVEGAME = 11,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
624 SCREEN_LOADGAME = 12,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
625 SCREEN_HOUSE = 13,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
626 SCREEN_E = 14,
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
627 SCREEN_CHEST_INVENTORY = 15,
2542
a.parshin
parents: 2541
diff changeset
628 SCREEN_VIDEO = 16,
a.parshin
parents: 2541
diff changeset
629 SCREEN_CHANGE_LOCATION = 17,
a.parshin
parents: 2541
diff changeset
630 SCREEN_INPUT_BLV = 18,
a.parshin
parents: 2541
diff changeset
631 SCREEN_BRANCHLESS_NPC_DIALOG = 19,
a.parshin
parents: 2541
diff changeset
632 SCREEN_20 = 20,
a.parshin
parents: 2541
diff changeset
633 SCREEN_PARTY_CREATION = 21,
a.parshin
parents: 2541
diff changeset
634 SCREEN_MODAL_WINDOW = 22,
a.parshin
parents: 2541
diff changeset
635 SCREEN_CASTING = 23,
a.parshin
parents: 2541
diff changeset
636 SCREEN_24 = 24,
a.parshin
parents: 2541
diff changeset
637 SCREEN_19 = 25,
a.parshin
parents: 2541
diff changeset
638 SCREEN_KEYBOARD_OPTIONS = 26,
a.parshin
parents: 2541
diff changeset
639 SCREEN_1B = 27,
a.parshin
parents: 2541
diff changeset
640 SCREEN_VIDEO_OPTIONS = 28,
a.parshin
parents: 2541
diff changeset
641
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
642 SCREEN_63 = 0x63,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
643 SCREEN_64 = 0x64,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
644 SCREEN_67 = 0x67,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
645 SCREEN_QUICK_REFERENCE = 0x68,
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
646 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
647
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
648
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
649
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
650
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
651 /* 249 */
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
652 #pragma pack(push, 1)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
653 struct GUIMessage
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
654 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
655 enum UIMessageType eType;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
656 int param;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
657 int field_8;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
658 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
659 #pragma pack(pop)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
660
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
661
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
662
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
663
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
664 #define AddGUIMessage(msg, param, a4) AddMessageImpl((msg), (param), (a4), __FILE__, __LINE__)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
665 /* 250 */
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
666 #pragma pack(push, 1)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
667 struct GUIMessageQueue
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
668 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
669 inline GUIMessageQueue():
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
670 uNumMessages(0)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
671 {}
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
672
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
673 void Flush();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
674 void PopMessage(UIMessageType *pMsg, int *pParam, int *a4);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
675 void AddMessageImpl(UIMessageType msg, int param, unsigned int a4, const char *file = nullptr, int line = 0);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
676
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
677 unsigned int uNumMessages;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
678 GUIMessage pMessages[40];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
679
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
680 const char *files[40];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
681 int lines[40];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
682 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
683 #pragma pack(pop)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
684
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
685 extern struct GUIMessageQueue *pMessageQueue_50CBD0; // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
686
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
687 extern struct GUIMessageQueue *pMessageQueue_50C9E8; // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
688
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
689
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
690
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
691 void OnSelectNPCDialogueOption(DIALOGUE_TYPE newDialogueType);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
692
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
693
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
694
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
695 extern enum WindowType current_character_screen_window;
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
696 extern struct GUIWindow *pWindow_MMT_MainMenu;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
697 extern struct GUIWindow *pWindow_MainMenu;
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
698 extern std::array<struct GUIWindow *, 20> pWindowList;
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
699
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
700
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
701
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
702
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
703 void ModalWindow(const char *pStrHint, UIMessageType OnRelease_message);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
704 void ModalWindow_ShowHint();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
705 void ModalWindow_Release();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
706
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
707
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
708
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
709 void draw_leather();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
710
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
711
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
712 // main menu ui
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
713 void MainMenuUI_LoadFontsAndSomeStuff();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
714 void MainMenuUI_Create();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
715 MENU_STATE MainMenuUI_Credits_Loop();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
716
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
717 // save & load ui
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
718 GUIWindow *SaveUI_Load(enum CURRENT_SCREEN screen);
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
719 void SaveUI_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
720
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
721 void LoadUI_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
722 void LoadUI_Load(unsigned int uDialogueType); // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
723
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
724 // game ui
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
725 void GameUI_DrawRightPanel();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
726 void GameUI_DrawRightPanelFrames();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
727 void GameUI_DrawRightPanelItems();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
728 void GameUI_QuickRef_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
729 void GameUI_DrawFoodAndGold();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
730 void GameUI_DrawLifeManaBars();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
731 void GameUI_DrawHiredNPCs();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
732 void GameUI_DrawPortraits(unsigned int _this);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
733 void GameUI_Footer();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
734 void GameUI_Footer_2();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
735 void GameUI_SetFooterString(const char *pStr);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
736 void GameUI_DrawMinimap(unsigned int uX, unsigned int uY, unsigned int uZ, unsigned int uW, unsigned int uZoom, unsigned int bRedrawOdmMinimap);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
737 auto GameUI_GetMinimapHintText() -> const char *;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
738 void GameUI_DrawPartySpells();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
739 void GameUI_DrawTorchlightAndWizardEye();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
740 void GameUI_DrawCharacterSelectionFrame();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
741 void GameUI_CharacterQuickRecord_Draw(GUIWindow *window, Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
742 void GameUI_DrawNPCPopup(void *_this);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
743
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
744 void GameUI_InitializeDialogue(struct Actor *actor, int bPlayerSaysHello);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
745 void GameUI_DrawBranchlessDialogue();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
746 void GameUI_DrawDialogue();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
747
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
748
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
749
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
750
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
751 // character ui
2541
a902abdfc7f2 1. Renamed class Game to class Engine.
a.parshin
parents: 2529
diff changeset
752 struct GUIWindow *CharacterUI_Initialize(enum CURRENT_SCREEN);
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
753 const char *CharacterUI_GetSkillDescText(unsigned int uPlayerID, PLAYER_SKILL_TYPE uPlayerSkillType);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
754 void CharacterUI_SkillsTab_ShowHint();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
755 void CharacterUI_StatsTab_ShowHint();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
756 void CharacterUI_StatsTab_Draw(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
757 void CharacterUI_SkillsTab_CreateButtons();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
758 void CharacterUI_SkillsTab_Draw(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
759 void CharacterUI_AwardsTab_Draw(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
760 void CharacterUI_InventoryTab_Draw(Player *player, bool a2);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
761 void CharacterUI_CharacterScreen_Draw(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
762 void CharacterUI_DrawPaperdoll(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
763 void CharacterUI_DrawPaperdollWithRingOverlay(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
764 void CharacterUI_ReleaseButtons();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
765
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
766 unsigned int GetSkillColor(unsigned int uPlayerClass, PLAYER_SKILL_TYPE uPlayerSkillType, signed int skill_level);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
767
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
768
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
769
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
770
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
771
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
772 // book ui
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
773 void BookUI_Draw(WindowType book);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
774 void BookUI_Questbook_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
775 void BookUI_Autonotes_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
776 void BookUI_Map_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
777 void BookUI_Calendar_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
778 void BookUI_Journal_Draw();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
779
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
780 void OnCloseBook();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
781 void InitializeBookTextures();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
782 void InitializeBookFonts();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
783 void DrawSpellBookContent(Player *player);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
784 unsigned int DrawLloydBeaconsScreen();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
785 void BookUI_DrawTownPortalMap();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
786 void LoadSpellbook(unsigned int uID); // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
787 void DrawSpellDescriptionPopup(int spell_index);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
788 void OnCloseSpellBookPage();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
789 void OnCloseSpellBook();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
790
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
791
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
792
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
793 // rest ui
2543
b6140dfeac27 GameOver h/cpp
a.parshin
parents: 2542
diff changeset
794 void PrepareToLoadRestUI();
b6140dfeac27 GameOver h/cpp
a.parshin
parents: 2542
diff changeset
795 GUIWindow *RestUI_Load();
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
796
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
797
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
798
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
799
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
800
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
801
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
802 void UI_OnMouseRightClick(Vec2_int_ *_this);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
803
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
804 void __fastcall DrawPopupWindow(unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight); // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
805 void DrawMM7CopyrightWindow();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
806 //void LoadFonts_and_DrawCopyrightWindow();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
807 void GUI_UpdateWindows();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
808 int GetConditionDrawColor(unsigned int uConditionIdx); // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
809 void FillAwardsData();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
810 void CreateAwardsScrollBar();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
811 void ReleaseAwardsScrollBar();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
812 void Inventory_ItemPopupAndAlchemy();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
813 void __fastcall LoadThumbnailLloydTexture(unsigned int uSlot, unsigned int uPlayer);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
814 unsigned int UI_GetHealthManaAndOtherQualitiesStringColor(signed int current_pos, signed int base_pos);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
815 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
816 struct GUIButton *__fastcall GUI_HandleHotkey(unsigned __int8 uHotkey); // idb
2544
c674d547cc7c GUIWindow switch logic refactored into behaviour classes
a.parshin
parents: 2543
diff changeset
817 void GUI_ReplaceHotkey(unsigned __int8 uOldHotkey, unsigned __int8 uNewHotkey, char bFirstCall);
2502
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
818 void DrawBuff_remaining_time_string(int uY, struct GUIWindow *window, __int64 remaining_time, struct GUIFont *Font);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
819 void GameUI_DrawItemInfo(struct ItemGen* inspect_item); // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
820 void MonsterPopup_Draw(unsigned int uActorID, struct GUIWindow *window);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
821 void SetUserInterface(enum PartyAlignment alignment, bool bReplace);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
822 void CreateMsgScrollWindow(signed int mscroll_id);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
823 void free_book_subwindow();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
824 void CreateScrollWindow();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
825 void OnPaperdollLeftClick();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
826 void DrawJoinGuildWindow(int pEventCode);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
827 void DialogueEnding();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
828 char sub_4637E0_is_there_popup_onscreen();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
829 void sub_4B3E1E();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
830 void __fastcall ClickNPCTopic(signed int uMessageParam);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
831 void __fastcall DrawTextAtStatusBar(const char *Str, int a5);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
832 void _4B3FE5_training_dialogue(int a4);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
833 void OracleDialogue();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
834 void CheckBountyRespawnAndAward();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
835 const char * _4B254D_SkillMasteryTeacher(int trainerInfo);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
836 char *BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, struct ItemGen *a3, char *a4, int a5, __int64 *a6);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
837 void __fastcall DrawTextAtStatusBar(const char *Str, int a5);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
838 void ShowStatusBarString(const char *pString, unsigned int uNumSeconds);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
839 void ShowNothingHereStatus();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
840 int const_2();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
841
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
842
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
843 void __fastcall ZBuffer_Fill(int *pZBuffer, int uTextureId, int iZValue);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
844 void __fastcall ZBuffer_DoFill(int *pZBuffer, struct Texture *pTex, int uZValue);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
845 void __fastcall ZBuffer_DoFill2(int *pZBuffer, struct Texture *a2, int a3); // idb
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
846
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
847
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
848
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
849
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
850
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
851
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
852
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
853
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
854
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
855
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
856
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
857
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
858
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
859
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
860 #pragma pack(push, 1)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
861 struct GUIButton
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
862 {
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
863 void DrawLabel(const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor);
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
864
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
865 void Release();
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
866
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
867
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
868 unsigned int uX;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
869 unsigned int uY;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
870 unsigned int uWidth;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
871 unsigned int uHeight;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
872 unsigned int uZ;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
873 unsigned int uW;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
874 int uButtonType;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
875 int field_1C;//may be pMessageType
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
876 UIMessageType msg;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
877 unsigned int msg_param;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
878 int field_28;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
879 int field_2C_is_pushed;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
880 GUIButton *pPrev;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
881 GUIButton *pNext;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
882 struct GUIWindow *pParent;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
883 struct Texture *pTextures[5];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
884 unsigned int uNumTextures;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
885 unsigned __int8 uHotkey;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
886 char pButtonName[32];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
887 char field_75[71];
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
888 };
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
889 #pragma pack(pop)
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
890
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
891
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
892
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
893
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
894 extern struct GUIButton *pBtn_CloseBook;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
895 extern struct GUIButton *pBtn_InstallRemoveSpell;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
896 extern struct GUIButton *pBtn_Autonotes_Instructors;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
897 extern struct GUIButton *pBtn_Autonotes_Misc;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
898 extern struct GUIButton *pBtn_Book_6;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
899 extern struct GUIButton *pBtn_Book_5;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
900 extern struct GUIButton *pBtn_Book_4;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
901 extern struct GUIButton *pBtn_Book_3;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
902 extern struct GUIButton *pBtn_Book_2;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
903 extern struct GUIButton *pBtn_Book_1;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
904
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
905
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
906 extern struct GUIButton *pPlayerCreationUI_BtnReset;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
907 extern struct GUIButton *pPlayerCreationUI_BtnOK;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
908 extern struct GUIButton *pBtn_ExitCancel;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
909 extern struct GUIButton *pBtn_YES;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
910 extern struct GUIButton *pPlayerCreationUI_BtnPlus;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
911 extern struct GUIButton *pPlayerCreationUI_BtnMinus;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
912
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
913
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
914 extern struct GUIButton *pButton_RestUI_Main;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
915 extern struct GUIButton *pButton_RestUI_Exit;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
916 extern struct GUIButton *pButton_RestUI_Wait5Minutes;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
917 extern struct GUIButton *pButton_RestUI_WaitUntilDawn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
918 extern struct GUIButton *pButton_RestUI_Wait1Hour;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
919
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
920
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
921 extern struct GUIButton *pCharacterScreen_ExitBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
922 extern struct GUIButton *pCharacterScreen_AwardsBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
923 extern struct GUIButton *pCharacterScreen_InventoryBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
924 extern struct GUIButton *pCharacterScreen_SkillsBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
925 extern struct GUIButton *pCharacterScreen_StatsBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
926 extern struct GUIButton *pCharacterScreen_DollBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
927 extern struct GUIButton *pCharacterScreen_DetalizBtn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
928
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
929
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
930 extern struct GUIButton *pBtn_NPCRight;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
931 extern struct GUIButton *pBtn_NPCLeft;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
932 extern struct GUIButton *pBtn_GameSettings;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
933 extern struct GUIButton *pBtn_QuickReference;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
934 extern struct GUIButton *pBtn_CastSpell;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
935 extern struct GUIButton *pBtn_Rest;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
936 extern struct GUIButton *pBtn_History;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
937 extern struct GUIButton *pBtn_Calendar;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
938 extern struct GUIButton *pBtn_Maps;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
939 extern struct GUIButton *pBtn_Autonotes;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
940 extern struct GUIButton *pBtn_Quests;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
941
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
942
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
943 extern struct GUIButton *pMMT_MainMenu_BtnMM6;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
944 extern struct GUIButton *pMMT_MainMenu_BtnMM7;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
945 extern struct GUIButton *pMMT_MainMenu_BtnMM8;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
946 extern struct GUIButton *pMMT_MainMenu_BtnContinue;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
947 extern struct GUIButton *pMMT_MainMenu_BtnExit;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
948
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
949
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
950 extern struct GUIButton *pBtn_Up;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
951 extern struct GUIButton *pBtn_Down;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
952 extern struct GUIButton *ptr_507BA4;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
953
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
954
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
955 extern struct GUIWindow *pPrimaryWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
956 extern struct GUIWindow *pChestWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
957 extern struct GUIWindow *pDialogueWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
958 extern struct GUIWindow *window_SpeakInHouse;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
959 extern struct GUIWindow *pGUIWindow_ScrollWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
960 extern struct GUIWindow *ptr_507BC8;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
961 extern struct GUIWindow *pGUIWindow_CurrentMenu;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
962 extern struct GUIWindow *ptr_507BD0;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
963 extern struct GUIWindow *pGUIWindow_Settings;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
964 extern struct GUIWindow *pModalWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
965 extern struct GUIWindow *pGUIWindow_EscMessageWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
966 extern struct GUIWindow *pBooksWindow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
967 extern struct GUIWindow *pGUIWindow2;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
968
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
969
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
970 extern struct GUIButton *pBtn_Resume;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
971 extern struct GUIButton *pBtn_QuitGame;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
972 extern struct GUIButton *pBtn_GameControls;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
973 extern struct GUIButton *pBtn_LoadGame;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
974 extern struct GUIButton *pBtn_SaveGame;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
975 extern struct GUIButton *pBtn_NewGame;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
976
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
977 extern struct GUIButton *pBtn_SliderRight;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
978 extern struct GUIButton *pBtn_SliderLeft;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
979
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
980
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
981 extern struct GUIButton *pBtnDownArrow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
982 extern struct GUIButton *pBtnArrowUp;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
983 extern struct GUIButton *pBtnCancel;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
984 extern struct GUIButton *pBtnLoadSlot;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
985
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
986
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
987 extern std::array<GUIButton*, 4> pCreationUI_BtnPressRight2;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
988 extern std::array<GUIButton*, 4> pCreationUI_BtnPressLeft2;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
989 extern std::array<GUIButton*, 4> pCreationUI_BtnPressLeft;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
990 extern std::array<GUIButton*, 4> pCreationUI_BtnPressRight;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
991
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
992 extern int uTextureID_GameUI_CharSelectionFrame; // 50C98C
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
993
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
994 extern unsigned int ui_mainmenu_copyright_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
995 extern unsigned int ui_character_tooltip_header_default_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
996 extern unsigned int ui_character_default_text_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
997 extern unsigned int ui_character_skill_highlight_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
998 extern unsigned int ui_character_header_text_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
999 extern unsigned int ui_character_bonus_text_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1000 extern unsigned int ui_character_bonus_text_color_neg;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1001 extern unsigned int ui_character_skill_upgradeable_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1002 extern unsigned int ui_character_skill_default_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1003 extern unsigned int ui_character_stat_default_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1004 extern unsigned int ui_character_stat_buffed_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1005 extern unsigned int ui_character_stat_debuffed_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1006 extern unsigned int ui_character_skillinfo_can_learn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1007 extern unsigned int ui_character_skillinfo_can_learn_gm;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1008 extern unsigned int ui_character_skillinfo_cant_learn;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1009 extern unsigned int ui_character_condition_normal_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1010 extern unsigned int ui_character_condition_light_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1011 extern unsigned int ui_character_condition_moderate_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1012 extern unsigned int ui_character_condition_severe_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1013 extern std::array<unsigned int, 6> ui_character_award_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1014 extern unsigned int ui_game_minimap_outline_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1015 extern unsigned int ui_game_minimap_actor_friendly_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1016 extern unsigned int ui_game_minimap_actor_hostile_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1017 extern unsigned int ui_game_minimap_actor_corpse_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1018 extern unsigned int ui_game_minimap_decoration_color_1;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1019 extern unsigned int ui_game_minimap_projectile_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1020 extern unsigned int ui_game_minimap_treasure_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1021 extern std::array<unsigned int, 24> ui_game_character_record_playerbuff_colors;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1022 extern unsigned int ui_gamemenu_video_gamma_title_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1023 extern unsigned int ui_gamemenu_keys_action_name_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1024 extern unsigned int ui_gamemenu_keys_key_selection_blink_color_1;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1025 extern unsigned int ui_gamemenu_keys_key_selection_blink_color_2;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1026 extern unsigned int ui_gamemenu_keys_key_default_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1027 extern unsigned int ui_book_quests_title_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1028 extern unsigned int ui_book_quests_text_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1029 extern unsigned int ui_book_autonotes_title_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1030 extern unsigned int ui_book_autonotes_text_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1031 extern unsigned int ui_book_map_title_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1032 extern unsigned int ui_book_map_coordinates_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1033 extern unsigned int ui_book_calendar_title_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1034 extern unsigned int ui_book_calendar_time_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1035 extern unsigned int ui_book_calendar_day_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1036 extern unsigned int ui_book_calendar_month_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1037 extern unsigned int ui_book_calendar_year_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1038 extern unsigned int ui_book_calendar_moon_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1039 extern unsigned int ui_book_calendar_location_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1040 extern unsigned int ui_book_journal_title_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1041 extern unsigned int ui_book_journal_text_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1042 extern unsigned int ui_book_journal_text_shadow;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1043 extern unsigned int ui_game_dialogue_npc_name_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1044 extern unsigned int ui_game_dialogue_option_highlight_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1045 extern unsigned int ui_game_dialogue_option_normal_color;
a77c34acdbc9 Media folder
Ritor1
parents:
diff changeset
1046 extern unsigned int ui_house_player_cant_interact_color;