comparison mm7_1.cpp @ 989:bb37d33934b0

Слияние
author Ritor1
date Mon, 13 May 2013 09:39:58 +0600
parents 9e132060ada3
children 087a9af8e0ec
comparison
equal deleted inserted replaced
988:af2472c5842e 989:bb37d33934b0
97 { 97 {
98 j->uX = dword_50698C; 98 j->uX = dword_50698C;
99 j->uY = dword_506988; 99 j->uY = dword_506988;
100 j->uZ = dword_506984; 100 j->uZ = dword_506984;
101 j->uW = dword_506980; 101 j->uW = dword_506980;
102 pGUIWindow_CurrentMenu->_41D08F(1, 0, 0, 0); 102 pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(1, 0, 0, 0);
103 } 103 }
104 } 104 }
105 } 105 }
106 } 106 }
107 107
108 //----- (0041CD4F) -------------------------------------------------------- 108 //----- (0041CD4F) --------------------------------------------------------
109 bool __thiscall sub_41CD4F(unsigned int _this) 109 bool UI_OnKeyDown(unsigned int vkKey)
110 { 110 {
111 unsigned int v1; // edi@1 111 //unsigned int v1; // edi@1
112 unsigned int v2; // eax@2 112 //unsigned int v2; // eax@2
113 int v3; // esi@3 113 int v3; // esi@3
114 int v4; // ecx@10 114 int v4; // ecx@10
115 GUIButton *v5; // eax@11 115 GUIButton *pButton; // eax@11
116 int v6; // edx@12 116 int v6; // edx@12
117 int v7; // ecx@20 117 int v7; // ecx@20
118 char v8; // zf@21 118 char v8; // zf@21
119 GUIButton *v9; // ecx@24 119 //GUIButton *v9; // ecx@24
120 int v10; // esi@24 120 int v10; // esi@24
121 //int v11; // edx@26 121 //int v11; // edx@26
122 int v12; // edx@28 122 int v12; // edx@28
123 int v13; // esi@32 123 int v13; // esi@32
124 GUIButton *v14; // eax@37 124 //GUIButton *v14; // eax@37
125 int v15; // edx@38 125 int v15; // edx@38
126 int v17; // ecx@50 126 int v17; // ecx@50
127 int v18; // edx@50 127 int v18; // edx@50
128 GUIButton *v19; // ecx@54 128 //GUIButton *v19; // ecx@54
129 int v20; // esi@54 129 int v20; // esi@54
130 //int v21; // edx@56 130 //int v21; // edx@56
131 int v22; // ecx@59 131 int v22; // ecx@59
132 int v23; // edx@59 132 int v23; // edx@59
133 int v24; // ecx@60 133 int v24; // ecx@60
134 int v25; // esi@63 134 int v25; // esi@63
135 unsigned int v26; // [sp+Ch] [bp-14h]@1 135 //unsigned int v26; // [sp+Ch] [bp-14h]@1
136 int v27; // [sp+10h] [bp-10h]@1 136 //int v27; // [sp+10h] [bp-10h]@1
137 int v28; // [sp+14h] [bp-Ch]@10 137 int v28; // [sp+14h] [bp-Ch]@10
138 int v29; // [sp+14h] [bp-Ch]@36 138 int v29; // [sp+14h] [bp-Ch]@36
139 unsigned int uClickX; // [sp+18h] [bp-8h]@10 139 unsigned int uClickX; // [sp+18h] [bp-8h]@10
140 unsigned int uClickY; // [sp+1Ch] [bp-4h]@10 140 unsigned int uClickY; // [sp+1Ch] [bp-4h]@10
141 141
142 v1 = 0; 142 //v1 = 0;
143 v26 = _this; 143 //v27 = uNumVisibleWindows;
144 v27 = uNumVisibleWindows;
145 if ( uNumVisibleWindows < 0 ) 144 if ( uNumVisibleWindows < 0 )
146 return 0; 145 return false;
147 v2 = pMessageQueue_50CBD0->uNumMessages; 146 //v2 = pMessageQueue_50CBD0->uNumMessages;
148 while ( 1 ) 147 for (int i = uNumVisibleWindows; i >= 0; --i)
149 { 148 //while ( 1 )
150 v3 = pVisibleWindowsIdxs[v27] - 1; 149 {
151 if ( pWindowList[v3].field_44 != v1 ) 150 v3 = pVisibleWindowsIdxs[i] - 1;
152 { 151 if (!pWindowList[v3].receives_keyboard_input)
153 switch(v26) 152 continue;
154 { 153
155 case VK_LEFT: 154 switch (vkKey)
156 { 155 {
157 v12 = pWindowList[v3].field_34; 156 case VK_LEFT:
158 if ( pWindowList[v3].pCurrentPosActiveItem - pWindowList[v3].pStartingPosActiveItem - v12 >= 0 ) 157 {
159 { 158 v12 = pWindowList[v3].field_34;
160 v8 = pCurrentScreen == SCREEN_PARTY_CREATION; 159 if ( pWindowList[v3].pCurrentPosActiveItem - pWindowList[v3].pStartingPosActiveItem - v12 >= 0 )
161 pWindowList[v3].pCurrentPosActiveItem -= v12; 160 {
162 if ( v8 ) 161 v8 = pCurrentScreen == SCREEN_PARTY_CREATION;
163 { 162 pWindowList[v3].pCurrentPosActiveItem -= v12;
164 pAudioPlayer->PlaySound(SOUND_Button, v1, v1, -1, v1, v1, v1, v1); 163 if ( v8 )
165 v2 = pMessageQueue_50CBD0->uNumMessages; 164 {
166 } 165 pAudioPlayer->PlaySound(SOUND_Button, 0, 0, -1, 0, 0, 0, 0);
167 } 166 //v2 = pMessageQueue_50CBD0->uNumMessages;
168 if ( pWindowList[v3].field_30 != v1 ) 167 }
169 { 168 }
170 break; 169 if ( pWindowList[v3].field_30 != 0 )
171 } 170 {
172 v9 = pWindowList[v3].pControlsHead; 171 break;
173 v13 = pWindowList[v3].pCurrentPosActiveItem; 172 }
174 if ( v13 > (signed int)v1 ) 173 pButton = pWindowList[v3].pControlsHead;
175 { 174 v13 = pWindowList[v3].pCurrentPosActiveItem;
176 do 175 if ( v13 > 0)
177 { 176 {
178 v9 = v9->pNext; 177 do
179 --v13; 178 {
180 } 179 pButton = pButton->pNext;
181 while ( v13 ); 180 --v13;
182 } 181 }
183 182 while ( v13 );
184 pMessageQueue_50CBD0->AddMessage(v9->msg, v9->msg_param, v1); 183 }
185 break; 184 pMessageQueue_50CBD0->AddMessage(pButton->msg, pButton->msg_param, 0);
186 } 185 break;
187 case VK_RIGHT: 186 }
188 { 187 case VK_RIGHT:
189 v7 = pWindowList[v3].pCurrentPosActiveItem + pWindowList[v3].field_34; 188 {
190 if ( v7 < pWindowList[v3].pNumPresenceButton + pWindowList[v3].pStartingPosActiveItem ) 189 v7 = pWindowList[v3].pCurrentPosActiveItem + pWindowList[v3].field_34;
191 { 190 if ( v7 < pWindowList[v3].pNumPresenceButton + pWindowList[v3].pStartingPosActiveItem )
192 v8 = pCurrentScreen == SCREEN_PARTY_CREATION; 191 {
193 pWindowList[v3].pCurrentPosActiveItem = v7; 192 v8 = pCurrentScreen == SCREEN_PARTY_CREATION;
194 if ( v8 ) 193 pWindowList[v3].pCurrentPosActiveItem = v7;
195 { 194 if ( v8 )
196 pAudioPlayer->PlaySound(SOUND_Button, v1, v1, -1, v1, v1, v1, v1); 195 {
197 v2 = pMessageQueue_50CBD0->uNumMessages; 196 pAudioPlayer->PlaySound(SOUND_Button, 0, 0, -1, 0, 0, 0, 0);
198 } 197 //v2 = pMessageQueue_50CBD0->uNumMessages;
199 } 198 }
200 if ( pWindowList[v3].field_30 != v1 ) 199 }
201 { 200 if ( pWindowList[v3].field_30 != 0 )
202 break; 201 {
203 } 202 break;
204 v9 = pWindowList[v3].pControlsHead; 203 }
205 v10 = pWindowList[v3].pCurrentPosActiveItem; 204 pButton = pWindowList[v3].pControlsHead;
206 if ( v10 > (signed int)v1 ) 205 v10 = pWindowList[v3].pCurrentPosActiveItem;
207 { 206 if ( v10 > 0)
208 do 207 {
209 { 208 do
210 v9 = v9->pNext; 209 {
211 --v10; 210 pButton = pButton->pNext;
212 } 211 --v10;
213 while ( v10 ); 212 }
214 } 213 while ( v10 );
215 pMessageQueue_50CBD0->AddMessage(v9->msg, v9->msg_param, v1); 214 }
216 break; 215 pMessageQueue_50CBD0->AddMessage(pButton->msg, pButton->msg_param, 0);
217 } 216 break;
218 case VK_DOWN: 217 }
219 { 218 case VK_DOWN:
220 v17 = pWindowList[v3].pStartingPosActiveItem; 219 {
221 v18 = pWindowList[v3].pCurrentPosActiveItem; 220 v17 = pWindowList[v3].pStartingPosActiveItem;
222 if ( v18 >= pWindowList[v3].pNumPresenceButton + v17 - 1 ) 221 v18 = pWindowList[v3].pCurrentPosActiveItem;
223 pWindowList[v3].pCurrentPosActiveItem = v17; 222 if ( v18 >= pWindowList[v3].pNumPresenceButton + v17 - 1 )
224 else 223 pWindowList[v3].pCurrentPosActiveItem = v17;
225 pWindowList[v3].pCurrentPosActiveItem = v18 + 1; 224 else
226 if ( pWindowList[v3].field_30 != v1 ) 225 pWindowList[v3].pCurrentPosActiveItem = v18 + 1;
227 return 1; 226 if ( pWindowList[v3].field_30 != 0 )
228 v19 = pWindowList[v3].pControlsHead; 227 return true;
229 v20 = pWindowList[v3].pCurrentPosActiveItem; 228 pButton = pWindowList[v3].pControlsHead;
230 if ( v20 > (signed int)v1 ) 229 v20 = pWindowList[v3].pCurrentPosActiveItem;
231 { 230 if ( v20 > 0)
232 do 231 {
233 { 232 do
234 v19 = v19->pNext; 233 {
235 --v20; 234 pButton = pButton->pNext;
236 } 235 --v20;
237 while ( v20 ); 236 }
238 } 237 while ( v20 );
239 pMessageQueue_50CBD0->AddMessage(v19->msg, v19->msg_param, v1); 238 }
240 return 1; 239 pMessageQueue_50CBD0->AddMessage(pButton->msg, pButton->msg_param, 0);
241 } 240 return true;
242 case VK_SELECT: 241 }
243 { 242 case VK_SELECT:
244 pMouse->GetClickPos(&uClickX, &uClickY); 243 {
245 v4 = pWindowList[v3].pStartingPosActiveItem; 244 pMouse->GetClickPos(&uClickX, &uClickY);
246 v28 = v4 + pWindowList[v3].pNumPresenceButton; 245 v4 = pWindowList[v3].pStartingPosActiveItem;
247 if ( v4 < v4 + pWindowList[v3].pNumPresenceButton ) 246 v28 = v4 + pWindowList[v3].pNumPresenceButton;
248 { 247 if ( v4 < v4 + pWindowList[v3].pNumPresenceButton )
249 while ( 1 ) 248 {
250 { 249 while ( 1 )
251 v5 = pWindowList[v3].pControlsHead; 250 {
252 if ( v4 > 0 ) 251 pButton = pWindowList[v3].pControlsHead;
253 { 252 if ( v4 > 0 )
254 v6 = v4; 253 {
255 do 254 v6 = v4;
256 { 255 do
257 v5 = v5->pNext; 256 {
258 --v6; 257 pButton = pButton->pNext;
259 } 258 --v6;
260 while ( v6 ); 259 }
261 } 260 while ( v6 );
262 if ( (signed int)uClickX >= (signed int)v5->uX 261 }
263 && (signed int)uClickX <= (signed int)v5->uZ 262 if ( (signed int)uClickX >= (signed int)pButton->uX//test for StatsTab in PlayerCreation Window
264 && (signed int)uClickY >= (signed int)v5->uY 263 && (signed int)uClickX <= (signed int)pButton->uZ
265 && (signed int)uClickY <= (signed int)v5->uW ) 264 && (signed int)uClickY >= (signed int)pButton->uY
266 break; 265 && (signed int)uClickY <= (signed int)pButton->uW )
267 ++v4; 266 break;
268 if ( v4 >= v28 ) 267 ++v4;
269 { 268 if ( v4 >= v28 )
270 v1 = 0; 269 {
271 v2 = pMessageQueue_50CBD0->uNumMessages; 270 //v1 = 0;
272 --v27; 271 //v2 = pMessageQueue_50CBD0->uNumMessages;
273 if ( v27 < 0 ) 272 //--i;
274 return 0; 273 //if ( i < 0 )
275 continue; 274 return false;
276 } 275 //continue;
277 } 276 }
278 pWindowList[v3].pCurrentPosActiveItem = v4; 277 }
279 return 1; 278 pWindowList[v3].pCurrentPosActiveItem = v4;
280 } 279 return true;
281 v2 = pMessageQueue_50CBD0->uNumMessages; 280 }
282 break; 281 //v2 = pMessageQueue_50CBD0->uNumMessages;
283 } 282 break;
284 case VK_UP: 283 }
285 { 284 case VK_UP:
286 v22 = pWindowList[v3].pCurrentPosActiveItem; 285 {
287 v23 = pWindowList[v3].pStartingPosActiveItem; 286 v22 = pWindowList[v3].pCurrentPosActiveItem;
288 if ( v22 <= v23 ) 287 v23 = pWindowList[v3].pStartingPosActiveItem;
289 v24 = pWindowList[v3].pNumPresenceButton + v23 - 1; 288 if ( v22 <= v23 )
290 else 289 v24 = pWindowList[v3].pNumPresenceButton + v23 - 1;
291 v24 = v22 - 1; 290 else
292 v8 = pWindowList[v3].field_30 == v1; 291 v24 = v22 - 1;
293 pWindowList[v3].pCurrentPosActiveItem = v24; 292 v8 = pWindowList[v3].field_30 == 0;
294 if ( !v8 ) 293 pWindowList[v3].pCurrentPosActiveItem = v24;
295 return 1; 294 if ( !v8 )
296 v19 = pWindowList[v3].pControlsHead; 295 return true;
297 v25 = pWindowList[v3].pCurrentPosActiveItem; 296 pButton = pWindowList[v3].pControlsHead;
298 if ( v25 > (signed int)v1 ) 297 v25 = pWindowList[v3].pCurrentPosActiveItem;
299 { 298 if ( v25 > 0)
300 do 299 {
301 { 300 do
302 v19 = v19->pNext; 301 {
303 --v25; 302 pButton = pButton->pNext;
304 } 303 --v25;
305 while ( v25 ); 304 }
306 } 305 while ( v25 );
307 306 }
308 pMessageQueue_50CBD0->AddMessage(v19->msg, v19->msg_param, v1); 307 pMessageQueue_50CBD0->AddMessage(pButton->msg, pButton->msg_param, 0);
309 return 1; 308 return true;
310 } 309 }
311 case VK_NEXT: 310 case VK_NEXT:
312 { 311 {
313 if ( pWindowList[v3].field_30 != v1 ) 312 if ( pWindowList[v3].field_30 != 0 )
314 { 313 {
315 pMouse->GetClickPos(&uClickX, &uClickY); 314 pMouse->GetClickPos(&uClickX, &uClickY);
316 v4 = pWindowList[v3].pStartingPosActiveItem; 315 v4 = pWindowList[v3].pStartingPosActiveItem;
317 v29 = v4 + pWindowList[v3].pNumPresenceButton; 316 v29 = v4 + pWindowList[v3].pNumPresenceButton;
318 if ( v4 < v4 + pWindowList[v3].pNumPresenceButton ) 317 if ( v4 < v4 + pWindowList[v3].pNumPresenceButton )
319 { 318 {
320 while ( 1 ) 319 while ( 1 )
321 { 320 {
322 v14 = pWindowList[v3].pControlsHead; 321 pButton = pWindowList[v3].pControlsHead;
323 if ( v4 > 0 ) 322 if ( v4 > 0 )
324 { 323 {
325 v15 = v4; 324 v15 = v4;
326 do 325 do
327 { 326 {
328 v14 = v14->pNext; 327 pButton = pButton->pNext;
329 --v15; 328 --v15;
330 } 329 }
331 while ( v15 ); 330 while ( v15 );
332 } 331 }
333 if ( (signed int)uClickX >= (signed int)v14->uX 332 if ( (signed int)uClickX >= (signed int)pButton->uX
334 && (signed int)uClickX <= (signed int)v14->uZ 333 && (signed int)uClickX <= (signed int)pButton->uZ
335 && (signed int)uClickY >= (signed int)v14->uY 334 && (signed int)uClickY >= (signed int)pButton->uY
336 && (signed int)uClickY <= (signed int)v14->uW ) 335 && (signed int)uClickY <= (signed int)pButton->uW )
337 { 336 {
338 pWindowList[v3].pCurrentPosActiveItem = v4; 337 pWindowList[v3].pCurrentPosActiveItem = v4;
339 return 1; 338 return true;
340 } 339 }
341 ++v4; 340 ++v4;
342 if ( v4 >= v29 ) 341 if ( v4 >= v29 )
343 { 342 {
344 v1 = 0; 343 //v1 = 0;
345 v2 = pMessageQueue_50CBD0->uNumMessages; 344 //v2 = pMessageQueue_50CBD0->uNumMessages;
346 break; 345 break;
347 } 346 }
348 } 347 }
349 } 348 }
350 else 349 else
351 { 350 {
352 v2 = pMessageQueue_50CBD0->uNumMessages; 351 //v2 = pMessageQueue_50CBD0->uNumMessages;
353 } 352 }
354 } 353 }
355 break; 354 break;
356 } 355 }
357 default: 356 default:
358 { 357 {
359 break; 358 break;
360 } 359 }
361 360 }
362 } 361 }
363 }
364 --v27;
365 if ( v27 < 0 )
366 return 0;
367 }
368
369 } 362 }
370 363
371 //----- (0041D20D) -------------------------------------------------------- 364 //----- (0041D20D) --------------------------------------------------------
372 char __fastcall sub_41D20D_buff_remaining_time_string(int ecx0, GUIWindow *edx0, __int64 a3, GUIFont *a2) 365 char __fastcall sub_41D20D_buff_remaining_time_string(int ecx0, GUIWindow *edx0, __int64 a3, GUIFont *a2)
373 { 366 {
630 ShowStatusBarString(pTmpBuf2, 2u); 623 ShowStatusBarString(pTmpBuf2, 2u);
631 pAudioPlayer->PlaySound(SOUND_GoldReceived, v2, v2, -1, v2, v2, v2, v2); 624 pAudioPlayer->PlaySound(SOUND_GoldReceived, v2, v2, -1, v2, v2, v2, v2);
632 } 625 }
633 626
634 //----- (00420E01) -------------------------------------------------------- 627 //----- (00420E01) --------------------------------------------------------
635 void __cdecl sub_420E01() 628 void __cdecl OnChestLeftClick()
636 { 629 {
637 int chest_id; // edi@1 630 int chest_id; // edi@1
638 POINT *v1; // esi@2 631 POINT *v1; // esi@2
639 int v2; // eax@2 632 int v2; // eax@2
640 int v3; // ebx@4 633 int v3; // ebx@4
855 //LABEL_23: 848 //LABEL_23:
856 viewparams->bRedrawGameUI = true; 849 viewparams->bRedrawGameUI = true;
857 if ( uActiveCharacter == uPlayerID ) 850 if ( uActiveCharacter == uPlayerID )
858 { 851 {
859 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; 852 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103;
860 pCurrentScreen = SCREEN_F; 853 pCurrentScreen = SCREEN_CHEST_INVENTORY;
861 //goto LABEL_28; 854 //goto LABEL_28;
862 uActiveCharacter = uPlayerID; 855 uActiveCharacter = uPlayerID;
863 return; 856 return;
864 } 857 }
865 //LABEL_27: 858 //LABEL_27:
875 { 868 {
876 //LABEL_28: 869 //LABEL_28:
877 uActiveCharacter = uPlayerID; 870 uActiveCharacter = uPlayerID;
878 return; 871 return;
879 } 872 }
880 if ( pCurrentScreen != SCREEN_F ) 873 if ( pCurrentScreen != SCREEN_CHEST_INVENTORY )
881 { 874 {
882 viewparams->bRedrawGameUI = true; 875 viewparams->bRedrawGameUI = true;
883 uActiveCharacter = uPlayerID; 876 uActiveCharacter = uPlayerID;
884 if ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] == 102 ) 877 if ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] == 102 )
885 FillAwardsData(); 878 FillAwardsData();
888 //goto LABEL_23; 881 //goto LABEL_23;
889 viewparams->bRedrawGameUI = true; 882 viewparams->bRedrawGameUI = true;
890 if ( uActiveCharacter == uPlayerID ) 883 if ( uActiveCharacter == uPlayerID )
891 { 884 {
892 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; 885 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103;
893 pCurrentScreen = SCREEN_F; 886 pCurrentScreen = SCREEN_CHEST_INVENTORY;
894 //goto LABEL_28; 887 //goto LABEL_28;
895 uActiveCharacter = uPlayerID; 888 uActiveCharacter = uPlayerID;
896 return; 889 return;
897 } 890 }
898 //LABEL_27: 891 //LABEL_27:
921 } 914 }
922 // 4E28F8: using guessed type int pCurrentScreen; 915 // 4E28F8: using guessed type int pCurrentScreen;
923 // F8B19C: using guessed type int dword_F8B19C; 916 // F8B19C: using guessed type int dword_F8B19C;
924 917
925 //----- (00421EA6) -------------------------------------------------------- 918 //----- (00421EA6) --------------------------------------------------------
926 void __cdecl sub_421EA6_OnInventoryLeftClick() 919 void __cdecl OnInventoryLeftClick()
927 { 920 {
928 Player *v0; // ebx@1 921 Player *v0; // ebx@1
929 signed int v1; // eax@2 922 signed int v1; // eax@2
930 signed int v2; // ecx@2 923 signed int v2; // ecx@2
931 int v3; // eax@2 924 int v3; // eax@2
1325 unsigned __int16 v4; // dx@7 1318 unsigned __int16 v4; // dx@7
1326 unsigned __int16 v5; // cx@7 1319 unsigned __int16 v5; // cx@7
1327 unsigned __int16 v6; // [sp-4h] [bp-14h]@7 1320 unsigned __int16 v6; // [sp-4h] [bp-14h]@7
1328 1321
1329 1322
1323 extern void set_default_ui_skin();
1324 set_default_ui_skin();
1325
1330 if (align == PartyAlignment_Evil) 1326 if (align == PartyAlignment_Evil)
1331 { 1327 {
1332 if ( bReplace ) 1328 if ( bReplace )
1333 { 1329 {
1334 pTexture_RightFrame->Reload("ib-r-C.pcx"); 1330 pTexture_RightFrame->Reload("ib-r-C.pcx");
1362 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); 1358 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC");
1363 pIconsFrameTable->InitializeAnimation(pUIAnum_Torchlight->uIconID); 1359 pIconsFrameTable->InitializeAnimation(pUIAnum_Torchlight->uIconID);
1364 1360
1365 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-c", 2); 1361 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-c", 2);
1366 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-c", 2); 1362 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-c", 2);
1367 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507958], "fr_inven-c", 2); 1363 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven-c", 2);
1368 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); 1364 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2);
1369 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll-c", 2); 1365 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll-c", 2);
1370 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr-c", 2); 1366 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr-c", 2);
1371 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul-c", 2); 1367 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul-c", 2);
1372 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur-c", 2); 1368 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur-c", 2);
1402 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-c", TEXTURE_16BIT_PALETTE); 1398 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-c", TEXTURE_16BIT_PALETTE);
1403 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-c", TEXTURE_16BIT_PALETTE); 1399 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-c", TEXTURE_16BIT_PALETTE);
1404 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-c", TEXTURE_16BIT_PALETTE); 1400 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-c", TEXTURE_16BIT_PALETTE);
1405 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-c", TEXTURE_16BIT_PALETTE); 1401 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-c", TEXTURE_16BIT_PALETTE);
1406 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc-c", TEXTURE_16BIT_PALETTE); 1402 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc-c", TEXTURE_16BIT_PALETTE);
1407 uTextureID_507958 = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); 1403 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE);
1408 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC"); 1404 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeC");
1409 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); 1405 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID);
1410 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC"); 1406 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchC");
1411 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); 1407 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID);
1412 } 1408 }
1447 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); 1443 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID);
1448 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); 1444 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA");
1449 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); 1445 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID);
1450 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-a", 2); 1446 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-a", 2);
1451 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc", 2); 1447 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc", 2);
1452 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507958], "fr_inven", 2); 1448 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven", 2);
1453 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); 1449 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2);
1454 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll", 2); 1450 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll", 2);
1455 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr", 2); 1451 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr", 2);
1456 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul", 2); 1452 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul", 2);
1457 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur", 2); 1453 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur", 2);
1487 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-a", TEXTURE_16BIT_PALETTE); 1483 uTextureID_PlayerBuff_Bless = pIcons_LOD->LoadTexture("isg-01-a", TEXTURE_16BIT_PALETTE);
1488 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-a", TEXTURE_16BIT_PALETTE); 1484 uTextureID_PlayerBuff_Preservation = pIcons_LOD->LoadTexture("isg-02-a", TEXTURE_16BIT_PALETTE);
1489 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-a", TEXTURE_16BIT_PALETTE); 1485 uTextureID_PlayerBuff_Hammerhands = pIcons_LOD->LoadTexture("isg-03-a", TEXTURE_16BIT_PALETTE);
1490 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-a", TEXTURE_16BIT_PALETTE); 1486 uTextureID_PlayerBuff_PainReflection = pIcons_LOD->LoadTexture("isg-04-a", TEXTURE_16BIT_PALETTE);
1491 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc", TEXTURE_16BIT_PALETTE); 1487 uTextureID_50795C = pIcons_LOD->LoadTexture("evtnpc", TEXTURE_16BIT_PALETTE);
1492 uTextureID_507958 = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE); 1488 uTextureID_CharacterUI_InventoryBackground = pIcons_LOD->LoadTexture("fr_inven", TEXTURE_16BIT_PALETTE);
1493 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA"); 1489 pUIAnim_WizardEye->uIconID = pIconsFrameTable->FindIcon("wizeyeA");
1494 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); 1490 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID);
1495 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA"); 1491 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchA");
1496 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); 1492 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID);
1497 uTextureID_Parchment = pIcons_LOD->LoadTexture("parchment", TEXTURE_16BIT_PALETTE); 1493 uTextureID_Parchment = pIcons_LOD->LoadTexture("parchment", TEXTURE_16BIT_PALETTE);
1543 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID); 1539 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnim_WizardEye->uIconID);
1544 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchB"); 1540 pUIAnum_Torchlight->uIconID = pIconsFrameTable->FindIcon("torchB");
1545 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID); 1541 pIconsFrameTable->InitializeAnimation((signed __int16)pUIAnum_Torchlight->uIconID);
1546 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-b", 2); 1542 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uExitCancelTextureId], "ib-bcu-b", 2);
1547 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-b", 2); 1543 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_50795C], "evtnpc-b", 2);
1548 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_507958], "fr_inven-b", 2); 1544 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_CharacterUI_InventoryBackground], "fr_inven-b", 2);
1549 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2); 1545 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_Parchment], "parchment", 2);
1550 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll-b", 2); 1546 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B4], "cornr_ll-b", 2);
1551 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr-b", 2); 1547 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076B0], "cornr_lr-b", 2);
1552 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul-b", 2); 1548 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076AC], "cornr_ul-b", 2);
1553 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur-b", 2); 1549 pIcons_LOD->ReloadTexture(&pIcons_LOD->pTextures[uTextureID_5076A8], "cornr_ur-b", 2);