706
|
1 #include <assert.h>
|
|
2
|
|
3 #include "MM7.h"
|
|
4
|
|
5 #include "MapInfo.h"
|
|
6 #include "Game.h"
|
|
7 #include "GUIWindow.h"
|
|
8 #include "GUIFont.h"
|
|
9 #include "GUIProgressBar.h"
|
|
10 #include "Party.h"
|
|
11 #include "AudioPlayer.h"
|
|
12 #include "Outdoor.h"
|
|
13 #include "IndoorCamera.h"
|
|
14 #include "Overlays.h"
|
|
15 #include "Monsters.h"
|
|
16 #include "Arcomage.h"
|
|
17 #include "LOD.h"
|
|
18 #include "Actor.h"
|
|
19 #include "Allocator.h"
|
|
20 #include "Events.h"
|
|
21 #include "Viewport.h"
|
|
22 #include "FrameTableInc.h"
|
|
23 #include "Math.h"
|
|
24 #include "SpriteObject.h"
|
|
25 #include "ObjectList.h"
|
|
26 #include "Chest.h"
|
|
27 #include "PaletteManager.h"
|
|
28 #include "DecorationList.h"
|
|
29 #include "SaveLoad.h"
|
|
30 #include "stru123.h"
|
|
31 #include "Time.h"
|
|
32 #include "IconFrameTable.h"
|
|
33 #include "Awards.h"
|
|
34 #include "Autonotes.h"
|
|
35 #include "stru160.h"
|
|
36 #include "stru279.h"
|
|
37 #include "TurnEngine.h"
|
924
|
38 #include "CastSpellInfo.h"
|
706
|
39 #include "Weather.h"
|
|
40 #include "stru272.h"
|
|
41 #include "stru298.h"
|
|
42 #include "StorylineTextTable.h"
|
|
43 #include "Events2D.h"
|
|
44 #include "texts.h"
|
|
45 #include "stru351.h"
|
|
46
|
|
47 #include "mm7_data.h"
|
|
48
|
|
49
|
|
50
|
|
51
|
|
52
|
|
53 //----- (00419719) --------------------------------------------------------
|
|
54 char __fastcall CharacterUI_SkillsTab_Draw(unsigned int uPlayerID)
|
|
55 {
|
|
56 unsigned int v1; // esi@1
|
|
57 Player *pPlayer; // ebp@1
|
|
58 unsigned int v3; // eax@1
|
|
59 signed int v4; // ecx@1
|
|
60 int v5; // edi@3
|
|
61 GUIWindow *v6; // ecx@3
|
|
62 int v7; // eax@4
|
|
63 GUIButton *v8; // edx@5
|
|
64 int v9; // eax@7
|
|
65 unsigned int v10; // ecx@9
|
|
66 unsigned __int16 v11; // ax@9
|
|
67 int v12; // eax@9
|
|
68 unsigned __int8 v13; // cf@12
|
|
69 unsigned __int8 v14; // zf@12
|
|
70 unsigned int v15; // eax@12
|
|
71 char *v16; // ecx@22
|
|
72 GUIWindow *v17; // ecx@33
|
|
73 int v18; // edx@34
|
|
74 GUIButton *v19; // eax@35
|
|
75 int v20; // edx@37
|
|
76 unsigned __int16 v21; // cx@39
|
|
77 unsigned int v22; // eax@39
|
|
78 int v23; // edi@39
|
|
79 unsigned int v24; // eax@42
|
|
80 char v25; // sf@52
|
|
81 char *v26; // ecx@52
|
|
82 int v27; // edi@63
|
|
83 GUIWindow *v28; // ecx@63
|
|
84 int v29; // edx@64
|
|
85 GUIButton *v30; // eax@65
|
|
86 int v31; // edx@67
|
|
87 unsigned int v32; // ecx@69
|
|
88 int v33; // eax@69
|
|
89 unsigned int v34; // eax@72
|
|
90 char *v35; // ecx@82
|
|
91 GUIWindow *v36; // ecx@93
|
|
92 int v37; // edx@94
|
|
93 GUIButton *v38; // eax@94
|
|
94 int v39; // edx@97
|
|
95 unsigned __int16 v40; // cx@99
|
|
96 unsigned int v41; // eax@99
|
|
97 int v42; // edi@99
|
|
98 unsigned int v43; // eax@102
|
|
99 char *v44; // ecx@112
|
|
100 char *v46; // [sp-Ch] [bp-4Ch]@19
|
|
101 char *v47; // [sp-Ch] [bp-4Ch]@49
|
|
102 char *v48; // [sp-Ch] [bp-4Ch]@79
|
|
103 char *v49; // [sp-Ch] [bp-4Ch]@109
|
|
104 unsigned int v50; // [sp-8h] [bp-48h]@19
|
|
105 unsigned int v51; // [sp-8h] [bp-48h]@49
|
|
106 unsigned int v52; // [sp-8h] [bp-48h]@79
|
|
107 unsigned int v53; // [sp-8h] [bp-48h]@109
|
|
108 int v54; // [sp-4h] [bp-44h]@19
|
|
109 int v55; // [sp-4h] [bp-44h]@49
|
|
110 int v56; // [sp-4h] [bp-44h]@79
|
|
111 int v57; // [sp-4h] [bp-44h]@109
|
|
112 unsigned int v58; // [sp+10h] [bp-30h]@9
|
|
113 unsigned int v59; // [sp+10h] [bp-30h]@39
|
|
114 unsigned int v60; // [sp+10h] [bp-30h]@69
|
|
115 unsigned int v61; // [sp+10h] [bp-30h]@99
|
|
116 int v62; // [sp+14h] [bp-2Ch]@4
|
|
117 int v63; // [sp+14h] [bp-2Ch]@34
|
|
118 int v64; // [sp+14h] [bp-2Ch]@64
|
|
119 int v65; // [sp+14h] [bp-2Ch]@94
|
|
120 signed int i; // [sp+18h] [bp-28h]@4
|
|
121 signed int v67; // [sp+18h] [bp-28h]@34
|
|
122 signed int v68; // [sp+18h] [bp-28h]@64
|
|
123 signed int v69; // [sp+18h] [bp-28h]@94
|
|
124 int v70; // [sp+1Ch] [bp-24h]@3
|
|
125 int v71; // [sp+1Ch] [bp-24h]@33
|
|
126 int v72; // [sp+1Ch] [bp-24h]@63
|
|
127 int v73; // [sp+1Ch] [bp-24h]@93
|
|
128 int uY; // [sp+20h] [bp-20h]@9
|
|
129 int uYa; // [sp+20h] [bp-20h]@33
|
|
130 int uYb; // [sp+20h] [bp-20h]@69
|
|
131 int uYc; // [sp+20h] [bp-20h]@93
|
|
132 unsigned int a5; // [sp+24h] [bp-1Ch]@1
|
|
133 unsigned int v79; // [sp+28h] [bp-18h]@1
|
|
134 int *v80; // [sp+2Ch] [bp-14h]@3
|
|
135 int *v81; // [sp+2Ch] [bp-14h]@33
|
|
136 int *v82; // [sp+2Ch] [bp-14h]@63
|
|
137 int *v83; // [sp+2Ch] [bp-14h]@93
|
|
138 unsigned int v84; // [sp+30h] [bp-10h]@1
|
|
139 int v85; // [sp+34h] [bp-Ch]@1
|
|
140 unsigned int v86; // [sp+38h] [bp-8h]@1
|
|
141 unsigned __int16 v87; // [sp+3Ch] [bp-4h]@9
|
|
142 char *v88; // [sp+3Ch] [bp-4h]@24
|
|
143 char *v89; // [sp+3Ch] [bp-4h]@54
|
|
144 unsigned __int16 v90; // [sp+3Ch] [bp-4h]@69
|
|
145 char *v91; // [sp+3Ch] [bp-4h]@84
|
|
146 char *v92; // [sp+3Ch] [bp-4h]@114
|
|
147
|
|
148 v1 = uPlayerID;
|
|
149 a5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
150 v84 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xAFu, 0xFFu);
|
|
151 v85 = pGUIWindow_CurrentMenu->pCurrentPosActiveItem;
|
|
152 v86 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0);
|
|
153 v79 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
|
|
154 pPlayer = &pParty->pPlayers[v1-1];
|
|
155 v3 = pIcons_LOD->LoadTexture("fr_skill", TEXTURE_16BIT_PALETTE);
|
|
156 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0));
|
|
157 v4 = v79;
|
|
158 if ( !pPlayer->uSkillPoints )
|
|
159 v4 = 65535;
|
|
160 sprintf(
|
|
161 pTmpBuf,
|
|
162 "%s \f%05d%s\f00000\r177%s: \f%05d%d\f00000",
|
|
163 pGlobalTXT_LocalizationStrings[206], // Skills for
|
|
164 a5,
|
|
165 pPlayer->pName,
|
|
166 pGlobalTXT_LocalizationStrings[207], // Skill Points
|
|
167 v4,
|
|
168 pPlayer->uSkillPoints);
|
|
169 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
|
|
170 v5 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;// Weapons, Level
|
|
171 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[242], pGlobalTXT_LocalizationStrings[131]);
|
|
172 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, v5, a5, pTmpBuf, 0, 0, 0);
|
|
173 v6 = pGUIWindow_CurrentMenu;
|
|
174 v70 = 0;
|
|
175 v80 = pWeaponSkills;
|
|
176 do
|
|
177 {
|
|
178 v62 = *v80;
|
|
179 v7 = 0;
|
|
180 for ( i = 0; i < (signed int)v6->uNumControls; v7 = i++ + 1 )
|
|
181 {
|
|
182 v8 = v6->pControlsHead;
|
|
183 if ( v7 > 0 )
|
|
184 {
|
|
185 do
|
|
186 {
|
|
187 v8 = v8->pNext;
|
|
188 --v7;
|
|
189 }
|
|
190 while ( v7 );
|
|
191 }
|
|
192 v9 = v8->field_1C;
|
|
193 if ( SBYTE1(v9) >= 0 )
|
|
194 continue;
|
|
195 BYTE1(v9) &= 0x7Fu;
|
|
196 if ( v9 != v62 )
|
|
197 continue;
|
|
198 v5 = v8->uY;
|
|
199 v10 = pPlayer->uSkillPoints;
|
|
200 ++v70;
|
|
201 v11 = pPlayer->pActiveSkills[v62];
|
|
202 v87 = pPlayer->pActiveSkills[v62];
|
|
203 v12 = v11 & 0x3F;
|
|
204 v58 = 0;
|
|
205 uY = v12;
|
|
206 if ( v10 >= v12 + 1 )
|
|
207 v58 = v84;
|
|
208 if ( v85 == i )
|
|
209 {
|
|
210 v13 = v10 < v12;
|
|
211 v14 = v10 == v12;
|
|
212 v15 = v86;
|
|
213 if ( !(v13 | v14) )
|
|
214 v15 = v79;
|
|
215 v58 = v15;
|
|
216 }
|
|
217 else
|
|
218 {
|
|
219 v15 = v58;
|
|
220 }
|
|
221 if ( HIBYTE(v87) & 1 )
|
|
222 {
|
|
223 if ( !v15 )
|
|
224 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
225 v54 = uY;
|
|
226 v50 = v58;
|
|
227 v46 = pGlobalTXT_LocalizationStrings[96];
|
|
228 }
|
|
229 else
|
|
230 {
|
|
231 if ( !(v87 & 0xC0) )
|
|
232 {
|
|
233 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v62], uY);
|
|
234 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
|
|
235 v6 = pGUIWindow_CurrentMenu;
|
|
236 continue;
|
|
237 }
|
|
238 v16 = pGlobalTXT_LocalizationStrings[432];
|
|
239 if ( (v87 & 0x80u) == 0 )
|
|
240 v16 = pGlobalTXT_LocalizationStrings[433];
|
|
241 v88 = v16;
|
|
242 if ( !v15 )
|
|
243 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
244 v54 = uY;
|
|
245 v50 = v58;
|
|
246 v46 = v88;
|
|
247 }
|
|
248 sprintf(pTmpBuf, "%s ", pSkillNames[v62], v15, v46, v50, v54);
|
|
249 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
|
|
250 v6 = pGUIWindow_CurrentMenu;
|
|
251 }
|
|
252 ++v80;
|
|
253 }
|
|
254 while ( v80 <= &pWeaponSkills[8]);
|
|
255 if ( !v70 )
|
|
256 {
|
|
257 v5 = v5 + LOBYTE(pFontLucida->uFontHeight) - 3;
|
|
258 v6->DrawText(pFontLucida, 24, v5, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
|
|
259 }
|
|
260 uYa = v5 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
|
|
261 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[138], pGlobalTXT_LocalizationStrings[131]);
|
|
262 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, uYa, a5, pTmpBuf, 0, 0, 0);
|
|
263 v17 = pGUIWindow_CurrentMenu;
|
|
264 v71 = 0;
|
|
265 v81 = pMagicSkills;
|
|
266 do
|
|
267 {
|
|
268 v18 = 0;
|
|
269 v67 = 0;
|
|
270 v63 = *v81;
|
|
271 while ( v67 < (signed int)v17->uNumControls )
|
|
272 {
|
|
273 v19 = v17->pControlsHead;
|
|
274 if ( v18 > 0 )
|
|
275 {
|
|
276 do
|
|
277 {
|
|
278 v19 = v19->pNext;
|
|
279 --v18;
|
|
280 }
|
|
281 while ( v18 );
|
|
282 }
|
|
283 v20 = v19->field_1C;
|
|
284 if ( SBYTE1(v20) >= 0 || (BYTE1(v20) &= 0x7Fu, v20 != v63) )
|
|
285 {
|
|
286 v18 = v67++ + 1;
|
|
287 continue;
|
|
288 }
|
|
289 ++v71;
|
|
290 uYa = v19->uY;
|
|
291 v21 = pPlayer->pActiveSkills[v63];
|
|
292 v22 = pPlayer->uSkillPoints;
|
|
293 v23 = pPlayer->pActiveSkills[v63] & 0x3F;
|
|
294 v59 = 0;
|
|
295 if ( v22 >= v23 + 1 )
|
|
296 v59 = v84;
|
|
297 if ( v85 == v67 )
|
|
298 {
|
|
299 v13 = v22 < v23;
|
|
300 v14 = v22 == v23;
|
|
301 v24 = v86;
|
|
302 if ( !(v13 | v14) )
|
|
303 v24 = v79;
|
|
304 v59 = v24;
|
|
305 }
|
|
306 else
|
|
307 {
|
|
308 v24 = v59;
|
|
309 }
|
|
310 if ( HIBYTE(v21) & 1 )
|
|
311 {
|
|
312 if ( !v24 )
|
|
313 v24 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
314 v55 = v23;
|
|
315 v51 = v59;
|
|
316 v47 = pGlobalTXT_LocalizationStrings[96];
|
|
317 }
|
|
318 else
|
|
319 {
|
|
320 if ( !(v21 & 0xC0) )
|
|
321 {
|
|
322 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v63], v23);
|
|
323 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
|
|
324 v17 = pGUIWindow_CurrentMenu;
|
|
325 v18 = v67++ + 1;
|
|
326 continue;
|
|
327 }
|
|
328 v25 = (v21 & 0x80u) != 0;
|
|
329 v26 = pGlobalTXT_LocalizationStrings[432];
|
|
330 if ( !v25 )
|
|
331 v26 = pGlobalTXT_LocalizationStrings[433];
|
|
332 v89 = v26;
|
|
333 if ( !v24 )
|
|
334 v24 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
335 v55 = v23;
|
|
336 v51 = v59;
|
|
337 v47 = v89;
|
|
338 }
|
|
339 sprintf(pTmpBuf, "%s ", pSkillNames[v63], v24, v47, v51, v55);
|
|
340 //LABEL_58:
|
|
341 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
|
|
342 v17 = pGUIWindow_CurrentMenu;
|
|
343 //LABEL_59:
|
|
344 v18 = v67++ + 1;
|
|
345 }
|
|
346 ++v81;
|
|
347 }
|
|
348 while ( v81 <= &pMagicSkills[8]);
|
|
349 if ( !v71 )
|
|
350 v17->DrawText(
|
|
351 pFontLucida,
|
|
352 24,
|
|
353 LOBYTE(pFontLucida->uFontHeight) + uYa - 3,
|
|
354 0,
|
|
355 pGlobalTXT_LocalizationStrings[153],
|
|
356 0,
|
|
357 0,
|
|
358 0);
|
|
359 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
|
|
360 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[11], pGlobalTXT_LocalizationStrings[131]);
|
|
361 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, v27, a5, pTmpBuf, 0, 0, 0);
|
|
362 v28 = pGUIWindow_CurrentMenu;
|
|
363 v72 = 0;
|
|
364 v82 = pArmorSkills;
|
|
365 do
|
|
366 {
|
|
367 v29 = 0;
|
|
368 v68 = 0;
|
|
369 v64 = *v82;
|
|
370 while ( v68 < (signed int)v28->uNumControls )
|
|
371 {
|
|
372 v30 = v28->pControlsHead;
|
|
373 if ( v29 > 0 )
|
|
374 {
|
|
375 do
|
|
376 {
|
|
377 v30 = v30->pNext;
|
|
378 --v29;
|
|
379 }
|
|
380 while ( v29 );
|
|
381 }
|
|
382 v31 = v30->field_1C;
|
|
383 if ( SBYTE1(v31) >= 0 || (BYTE1(v31) &= 0x7Fu, v31 != v64) )
|
|
384 {
|
|
385 v29 = v68++ + 1;
|
|
386 continue;
|
|
387 }
|
|
388 v27 = v30->uY;
|
|
389 ++v72;
|
|
390 v60 = 0;
|
|
391 v90 = pPlayer->pActiveSkills[v64];
|
|
392 v32 = pPlayer->uSkillPoints;
|
|
393 v33 = pPlayer->pActiveSkills[v64] & 0x3F;
|
|
394 uYb = v33;
|
|
395 if ( v32 >= v33 + 1 )
|
|
396 v60 = v84;
|
|
397 if ( v85 == v68 )
|
|
398 {
|
|
399 v13 = v32 < v33;
|
|
400 v14 = v32 == v33;
|
|
401 v34 = v86;
|
|
402 if ( !(v13 | v14) )
|
|
403 v34 = v79;
|
|
404 v60 = v34;
|
|
405 }
|
|
406 else
|
|
407 {
|
|
408 v34 = v60;
|
|
409 }
|
|
410 if ( (pPlayer->pActiveSkills[v64] >> 8) & 1 )
|
|
411 {
|
|
412 if ( !v34 )
|
|
413 v34 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
414 v56 = uYb;
|
|
415 v52 = v60;
|
|
416 v48 = pGlobalTXT_LocalizationStrings[96];
|
|
417 }
|
|
418 else
|
|
419 {
|
|
420 if ( !(v90 & 0xC0) )
|
|
421 {
|
|
422 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v64], uYb);
|
|
423 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
|
|
424 v28 = pGUIWindow_CurrentMenu;
|
|
425 v29 = v68++ + 1;
|
|
426 continue;
|
|
427 }
|
|
428 v35 = pGlobalTXT_LocalizationStrings[432];
|
|
429 if ( (v90 & 0x80u) == 0 )
|
|
430 v35 = pGlobalTXT_LocalizationStrings[433];
|
|
431 v91 = v35;
|
|
432 if ( !v34 )
|
|
433 v34 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
434 v56 = uYb;
|
|
435 v52 = v60;
|
|
436 v48 = v91;
|
|
437 }
|
|
438 sprintf(pTmpBuf, "%s ", pSkillNames[v64], v34, v48, v52, v56);
|
|
439 //LABEL_88:
|
|
440 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
|
|
441 v28 = pGUIWindow_CurrentMenu;
|
|
442 //LABEL_89:
|
|
443 v29 = v68++ + 1;
|
|
444 }
|
|
445 ++v82;
|
|
446 }
|
|
447 while ( v82 <= &pArmorSkills[4]);
|
|
448 if ( !v72 )
|
|
449 {
|
|
450 v27 = v27 + LOBYTE(pFontLucida->uFontHeight) - 3;
|
|
451 v28->DrawText(pFontLucida, 248, v27, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
|
|
452 }
|
|
453 uYc = v27 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
|
|
454 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[143], pGlobalTXT_LocalizationStrings[131]);
|
|
455 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, uYc, a5, pTmpBuf, 0, 0, 0);
|
|
456 v36 = pGUIWindow_CurrentMenu;
|
|
457 v73 = 0;
|
|
458 v83 = pMiscSkills;
|
|
459 do
|
|
460 {
|
|
461 v37 = 0;
|
|
462 v69 = 0;
|
|
463 v38 = (GUIButton *)*v83;
|
|
464 v65 = *v83;
|
|
465 while ( v69 < (signed int)v36->uNumControls )
|
|
466 {
|
|
467 v38 = v36->pControlsHead;
|
|
468 if ( v37 > 0 )
|
|
469 {
|
|
470 do
|
|
471 {
|
|
472 v38 = v38->pNext;
|
|
473 --v37;
|
|
474 }
|
|
475 while ( v37 );
|
|
476 }
|
|
477 v39 = v38->field_1C;
|
|
478 if ( SBYTE1(v39) >= 0 || (BYTE1(v39) &= 0x7Fu, v39 != v65) )
|
|
479 {
|
|
480 //goto LABEL_119;
|
|
481 v37 = v69++ + 1;
|
|
482 continue;
|
|
483 }
|
|
484 ++v73;
|
|
485 uYc = v38->uY;
|
|
486 v40 = pPlayer->pActiveSkills[v65];
|
|
487 v41 = pPlayer->uSkillPoints;
|
|
488 v42 = pPlayer->pActiveSkills[v65] & 0x3F;
|
|
489 v61 = 0;
|
|
490 if ( v41 >= v42 + 1 )
|
|
491 v61 = v84;
|
|
492 if ( v85 == v69 )
|
|
493 {
|
|
494 v13 = v41 < v42;
|
|
495 v14 = v41 == v42;
|
|
496 v43 = v86;
|
|
497 if ( !(v13 | v14) )
|
|
498 v43 = v79;
|
|
499 v61 = v43;
|
|
500 }
|
|
501 else
|
|
502 {
|
|
503 v43 = v61;
|
|
504 }
|
|
505 if ( HIBYTE(v40) & 1 )
|
|
506 {
|
|
507 if ( !v43 )
|
|
508 v43 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
509 v57 = v42;
|
|
510 v53 = v61;
|
|
511 v49 = pGlobalTXT_LocalizationStrings[96];
|
|
512 }
|
|
513 else
|
|
514 {
|
|
515 if ( !(v40 & 0xC0) )
|
|
516 {
|
|
517 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v65], v42);
|
|
518 LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0);
|
|
519 v36 = pGUIWindow_CurrentMenu;
|
|
520 v37 = v69++ + 1;
|
|
521 continue;
|
|
522 }
|
|
523 v25 = (v40 & 0x80u) != 0;
|
|
524 v44 = pGlobalTXT_LocalizationStrings[432];
|
|
525 if ( !v25 )
|
|
526 v44 = pGlobalTXT_LocalizationStrings[433];
|
|
527 v92 = v44;
|
|
528 if ( !v43 )
|
|
529 v43 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
530 v57 = v42;
|
|
531 v53 = v61;
|
|
532 v49 = v92;
|
|
533 }
|
|
534 sprintf(pTmpBuf, "%s ", pSkillNames[v65], v43, v49, v53, v57);
|
|
535 LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0);
|
|
536 v36 = pGUIWindow_CurrentMenu;
|
|
537 v37 = v69++ + 1;
|
|
538 }
|
|
539 ++v83;
|
|
540 }
|
|
541 while ( v83 <= &pMiscSkills[11]);
|
|
542 if ( !v73 )
|
|
543 LOBYTE(v38) = v36->DrawText(
|
|
544 pFontLucida,
|
|
545 248,
|
|
546 LOBYTE(pFontLucida->uFontHeight) + uYc - 3,
|
|
547 0,
|
|
548 pGlobalTXT_LocalizationStrings[153],
|
|
549 0,
|
|
550 0,
|
|
551 0);
|
|
552 return (char)v38;
|
|
553 }
|
|
554
|
|
555 //----- (0041A000) --------------------------------------------------------
|
|
556 void CharacterUI_AwardsTab_Draw( unsigned int uPlayerID )
|
|
557 {
|
|
558 //unsigned int v1; // esi@1
|
|
559 unsigned int v2; // ebx@1
|
|
560 unsigned int award_texture_id; // eax@1
|
|
561 unsigned int result; // eax@1
|
|
562 int v5; // eax@15
|
|
563 char *v6; // ebx@15
|
|
564 int v7; // eax@23
|
|
565 int v8; // eax@24
|
|
566 int v9; // eax@25
|
|
567 int v10; // eax@27
|
|
568 int v11; // eax@32
|
|
569 int v12; // eax@33
|
|
570 int v13; // eax@34
|
|
571 signed int v14; // eax@43
|
|
572 unsigned int v15; // eax@43
|
|
573 int v16; // eax@43
|
|
574 int v17; // [sp-4h] [bp-D4h]@16
|
|
575 char Source[100]; // [sp+Ch] [bp-C4h]@1
|
|
576 GUIWindow a1; // [sp+70h] [bp-60h]@1
|
|
577 unsigned int v20; // [sp+C4h] [bp-Ch]@15
|
|
578 int v21; // [sp+C8h] [bp-8h]@14
|
|
579 int v22; // [sp+CCh] [bp-4h]@40
|
|
580
|
|
581 auto player = &pParty->pPlayers[uPlayerID - 1];
|
|
582 //v1 = uPlayerID;
|
|
583 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
584 award_texture_id = pIcons_LOD->LoadTexture("fr_award", TEXTURE_16BIT_PALETTE);
|
|
585 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(award_texture_id != -1 ? &pIcons_LOD->pTextures[award_texture_id] : 0));
|
|
586 sprintfex(pTmpBuf, "%s \f%05d", pGlobalTXT_LocalizationStrings[LOCSTR_AVARDS_FOR], v2);
|
|
587 sprintfex(Source, pGlobalTXT_LocalizationStrings[LOCSTR_S_THE_S], player->pName, pClassNames[player->classType]);
|
|
588 strcat(pTmpBuf, Source);
|
|
589 strcat(pTmpBuf, "\f00000");
|
|
590 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
|
|
591 result = dword_506528;
|
|
592 a1.uFrameX = 12;
|
|
593 a1.uFrameY = 48;
|
|
594 a1.uFrameWidth = 424;
|
|
595 a1.uFrameHeight = 290;
|
|
596 a1.uFrameZ = 435;
|
|
597 a1.uFrameW = 337;
|
|
598 if ( dword_506544 && awards_count + dword_506528 < awards_count2 )
|
|
599 result = dword_506528++ + 1;
|
|
600 if ( dword_506548 && result )
|
|
601 {
|
|
602 --result;
|
|
603 dword_506528 = result;
|
|
604 }
|
|
605 if ( dword_50651C < 0 )
|
|
606 {
|
|
607 result += awards_count;
|
|
608 dword_506528 = result;
|
|
609 if ( (signed int)(awards_count + result) > awards_count2 )
|
|
610 {
|
|
611 result = awards_count2 - awards_count;
|
|
612 dword_506528 = result;
|
|
613 }
|
|
614 }
|
|
615 else if ( dword_50651C > 0 )
|
|
616 {
|
|
617 result -= awards_count;
|
|
618 dword_506528 = result;
|
|
619 if ( (result & 0x80000000u) != 0 )
|
|
620 {
|
|
621 result = 0;
|
|
622 dword_506528 = result;
|
|
623 }
|
|
624 }
|
|
625 //LABEL_14:
|
|
626 dword_506544 = 0;
|
|
627 dword_506548 = 0;
|
|
628 awards_count = 0;
|
|
629 dword_50651C = 0;
|
|
630 v21 = result;
|
|
631 if ( (signed int)result < awards_count2 )
|
|
632 {
|
|
633 while ( 1 )
|
|
634 {
|
|
635 v5 = achievedAwardsIndex[v21];
|
|
636 v20 = achievedAwardsIndex[v21];
|
|
637 v6 = (char *)pAwards[v20].pText;//(char *)dword_723E80_award_related[v20 / 4];
|
|
638 if ( v5 != 1 )
|
|
639 {
|
|
640 if (!( (v5 < 85 || v5 > 91) && (v5 < 103 || v5 > 104) ))
|
|
641 {
|
|
642 if ( v5 > 89 )
|
|
643 {
|
|
644 if ( v5 == 90 )
|
|
645 {
|
|
646 v10 = (unsigned __int8)pParty->uNumArenaKnightWins;
|
|
647 v22 = v10;
|
|
648 }
|
|
649 else if ( v5 == 91 )
|
|
650 {
|
|
651 v10 = (unsigned __int8)pParty->uNumArenaLordWins;
|
|
652 v22 = v10;
|
|
653 }
|
|
654 else if ( v5 == 103 )
|
|
655 {
|
|
656 v10 = pParty->field_874;
|
|
657 v22 = v10;
|
|
658 }
|
|
659 else if ( v5 == 104 )
|
|
660 {
|
|
661 v10 = pParty->field_878;
|
|
662 v22 = v10;
|
|
663 }
|
|
664 }
|
|
665 else
|
|
666 {
|
|
667 if ( v5 == 89 )
|
|
668 {
|
|
669 v10 = (unsigned __int8)pParty->uNumArenaSquireWins;
|
|
670 v22 = v10;
|
|
671 }
|
|
672 else if ( v5 == 85 )
|
|
673 {
|
|
674 v10 = pParty->uNumDeaths;
|
|
675 v22 = v10;
|
|
676 }
|
|
677 else if ( v5 == 86 )
|
|
678 {
|
|
679 v10 = pParty->uNumBountiesCollected;
|
|
680 v22 = v10;
|
|
681 }
|
|
682 else if ( v5 == 87 )
|
|
683 {
|
|
684 v10 = pParty->uNumPrisonTerms;
|
|
685 v22 = v10;
|
|
686 }
|
|
687 else if ( v5 == 88)
|
|
688 {
|
|
689 v10 = (unsigned __int8)pParty->uNumArenaPageWins;
|
|
690 v22 = v10;
|
|
691 }
|
|
692 }
|
|
693 v17 = v22;
|
|
694 sprintf(pTmpBuf, v6, v17);
|
|
695 v6 = pTmpBuf;
|
|
696 }
|
|
697 }
|
|
698 else
|
|
699 {
|
|
700 v17 = pParty->uFine;
|
|
701 sprintf(pTmpBuf, v6, v17);
|
|
702 v6 = pTmpBuf;
|
|
703 }
|
|
704 v14 = pAwards[v20].uSort;//dword_723E84[v20 / 4];
|
|
705 ++awards_count;
|
|
706 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(
|
|
707 pAwardsTextColors[3 * v14 % 6],
|
|
708 pAwardsTextColors[3 * v14 % 6 + 1],
|
|
709 pAwardsTextColors[3 * v14 % 6 + 2]);
|
|
710 a1.DrawText(pFontArrus, 0, 0, v15, v6, 0, 0, 0);
|
|
711 v16 = pFontArrus->CalcTextHeight(v6, &a1, 0, 0);
|
|
712 result = v16 + a1.uFrameY + 4;
|
|
713 if ( (signed int)result <= (signed int)a1.uFrameHeight )
|
|
714 {
|
|
715 ++v21;
|
|
716 a1.uFrameY = result;
|
|
717 result = v21;
|
|
718 if ( v21 < awards_count2 )
|
|
719 continue;
|
|
720 }
|
|
721 return;
|
|
722 }
|
|
723
|
|
724 }
|
|
725 return;
|
|
726 }
|
|
727
|
|
728
|
|
729
|
|
730
|
|
731
|
|
732
|
|
733 //----- (0041A2C1) --------------------------------------------------------
|
|
734 unsigned int __fastcall GetSizeInInventorySlots(unsigned int uNumPixels)
|
|
735 {
|
|
736 if ( (signed int)uNumPixels < 14 )
|
|
737 uNumPixels = 14;
|
|
738 return ((signed int)(uNumPixels - 14) >> 5) + 1;
|
|
739 }
|
|
740
|
|
741 //----- (0041A2D1) --------------------------------------------------------
|
|
742 void __fastcall CharacterUI_InventoryTab_Draw(unsigned int uPlayerID, char a2)
|
|
743 {
|
|
744 Player *pPlayer; // esi@1
|
|
745 char v3; // bl@1
|
|
746 unsigned int v4; // eax@2
|
|
747 ItemGen *pItem; // ebx@5
|
|
748 unsigned int v6; // eax@6
|
|
749 Texture *v7; // esi@6
|
|
750 __int16 v8; // ax@6
|
|
751 signed int v9; // edi@6
|
|
752 signed int v10; // ecx@6
|
|
753 signed int v11; // edx@6
|
|
754 signed int v12; // eax@11
|
|
755 int v13; // eax@13
|
|
756 signed int v14; // edx@13
|
|
757 int v15; // eax@13
|
|
758 unsigned int v16; // ebx@15
|
|
759 unsigned int v17; // edi@15
|
|
760 Texture *pTexture; // ebx@24
|
|
761 double v19; // st7@26
|
|
762 const char *v20; // [sp-8h] [bp-40h]@20
|
|
763 Player *pPlayer2; // [sp+14h] [bp-24h]@1
|
|
764 int uTextureId; // [sp+18h] [bp-20h]@6
|
|
765 int *v23; // [sp+1Ch] [bp-1Ch]@1
|
|
766 int v24; // [sp+20h] [bp-18h]@5
|
|
767 ItemGen *pItem2; // [sp+24h] [bp-14h]@5
|
|
768 int v26; // [sp+28h] [bp-10h]@3
|
|
769 unsigned int uCellID; // [sp+2Ch] [bp-Ch]@3
|
|
770 unsigned int uCellX; // [sp+30h] [bp-8h]@5
|
|
771 unsigned int uCellY; // [sp+34h] [bp-4h]@5
|
|
772
|
|
773 v23 = pRenderer->pActiveZBuffer;
|
|
774 pPlayer = pPlayers[uPlayerID];
|
|
775 v3 = a2;
|
|
776 pPlayer2 = pPlayers[uPlayerID];
|
|
777 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_507958 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507958] : 0));
|
|
778 if ( v3 )
|
|
779 {
|
|
780 v4 = pIcons_LOD->LoadTexture("fr_strip", TEXTURE_16BIT_PALETTE);
|
|
781 pRenderer->DrawTextureIndexed(8u, 0x131u, (Texture *)(v4 != -1 ? (int)&pIcons_LOD->pTextures[v4] : 0));
|
|
782 }
|
|
783 uCellID = 0;
|
|
784 v26 = (int)pPlayer->pInventoryIndices;
|
|
785 do
|
|
786 {
|
|
787 if ( *(int *)v26 > 0 )
|
|
788 {
|
|
789 v24 = *(int *)v26 - 1;
|
|
790 uCellY = 32 * (uCellID / 14) + 17;
|
|
791 pItem = &pPlayer->pInventoryItems[v24];
|
|
792 uCellX = 32 * (uCellID % 14) + 14;
|
|
793 pItem2 = pItem;
|
|
794 if ( pItem->uItemID )
|
|
795 {
|
|
796 v6 = pIcons_LOD->LoadTexture(pItemsTable->pItems[pItem->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
|
|
797 uTextureId = v6;
|
|
798 v7 = (Texture *)(v6 != -1 ? (int)&pIcons_LOD->pTextures[v6] : 0);
|
|
799 v8 = (v6 != -1 ? pIcons_LOD->pTextures[v6].uTextureWidth : 24);
|
|
800 v9 = v7->uTextureHeight;
|
|
801 v10 = v7->uTextureWidth;
|
|
802 v11 = v7->uTextureWidth;
|
|
803 if ( v10 < 14 )
|
|
804 v11 = 14;
|
|
805 if ( (v11 - 14) >> 5 == 0 && v8 < 32 )
|
|
806 uCellX += (32 - v10) / 2;
|
|
807 v12 = v7->uTextureWidth;
|
|
808 if ( v10 < 14 )
|
|
809 v12 = 14;
|
|
810 v13 = v12 - 14;
|
|
811 v14 = v7->uTextureHeight;
|
|
812 LOBYTE(v13) = v13 & 0xE0;
|
|
813 v15 = v13 + 32;
|
|
814 if ( v9 < 14 )
|
|
815 v14 = 14;
|
|
816 v16 = pItem->uAttributes;
|
|
817 v17 = uCellX + ((v15 - v10) >> 1) + pSRZBufferLineOffsets[uCellY + ((((v14 - 14) & 0xFFFFFFE0) - v9 + 32) >> 1)];
|
|
818 if ( !(v16 & 0xF0) )
|
|
819 {
|
|
820 if (pItem->Identified() || pCurrentScreen != SCREEN_HOUSE )
|
|
821 {
|
|
822 if (pItem->Broken())
|
|
823 pRenderer->DrawTransparentRedShade(uCellX, uCellY, v7);
|
|
824 else
|
|
825 pRenderer->DrawTextureTransparent(uCellX, uCellY, v7);
|
|
826 }
|
|
827 else
|
|
828 {
|
|
829 pRenderer->DrawTransparentGreenShade(uCellX, uCellY, v7);
|
|
830 }
|
|
831 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
|
|
832 pPlayer = pPlayer2;
|
|
833 //goto LABEL_34;
|
|
834 ++uCellID;
|
|
835 v26 += 4;
|
|
836 continue;
|
|
837 }
|
|
838 if ( (unsigned __int8)(v16 & 0xF0) != 16 )
|
|
839 {
|
|
840 if ( (unsigned __int8)(v16 & 0xF0) == 32 )
|
|
841 {
|
|
842 v20 = "sp28a";
|
|
843 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
|
|
844 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
845 if ( dword_50C9A8 <= 0 )
|
|
846 {
|
|
847 dword_50C9A8 = 0;
|
|
848 LOBYTE(pItem2->uAttributes) &= 0xFu;
|
|
849 ptr_50C9A4 = 0;
|
|
850 }
|
|
851 v19 = (double)GetTickCount() * 0.1;
|
|
852 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
|
|
853 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
|
|
854 pPlayer = pPlayer2;
|
|
855 //goto LABEL_34;
|
|
856 ++uCellID;
|
|
857 v26 += 4;
|
|
858 continue;
|
|
859 }
|
|
860 if ( (unsigned __int8)(v16 & 0xF0) == 64 )
|
|
861 {
|
|
862 v20 = "sp30a";
|
|
863 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
|
|
864 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
865 if ( dword_50C9A8 <= 0 )
|
|
866 {
|
|
867 dword_50C9A8 = 0;
|
|
868 LOBYTE(pItem2->uAttributes) &= 0xFu;
|
|
869 ptr_50C9A4 = 0;
|
|
870 }
|
|
871 v19 = (double)GetTickCount() * 0.1;
|
|
872 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
|
|
873 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
|
|
874 pPlayer = pPlayer2;
|
|
875 //goto LABEL_34;
|
|
876 ++uCellID;
|
|
877 v26 += 4;
|
|
878 continue;
|
|
879 }
|
|
880 if ( (unsigned __int8)(v16 & 0xF0) == 128 )
|
|
881 {
|
|
882 v20 = "sp91a";
|
|
883 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
|
|
884 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
885 if ( dword_50C9A8 <= 0 )
|
|
886 {
|
|
887 dword_50C9A8 = 0;
|
|
888 LOBYTE(pItem2->uAttributes) &= 0xFu;
|
|
889 ptr_50C9A4 = 0;
|
|
890 }
|
|
891 v19 = (double)GetTickCount() * 0.1;
|
|
892 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
|
|
893 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
|
|
894 pPlayer = pPlayer2;
|
|
895 //goto LABEL_34;
|
|
896 ++uCellID;
|
|
897 v26 += 4;
|
|
898 continue;
|
|
899 }
|
|
900 }
|
|
901 v20 = "sptext01";
|
|
902 pTexture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v20, TEXTURE_16BIT_PALETTE)];
|
|
903 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
904 if ( dword_50C9A8 <= 0 )
|
|
905 {
|
|
906 dword_50C9A8 = 0;
|
|
907 LOBYTE(pItem2->uAttributes) &= 0xFu;
|
|
908 ptr_50C9A4 = 0;
|
|
909 }
|
|
910 v19 = (double)GetTickCount() * 0.1;
|
|
911 pRenderer->_4A63E6(uCellX, uCellY, v7, pTexture, (signed __int64)v19, 0, 255);
|
|
912 ZBuffer_Fill(&v23[v17], uTextureId, v24 + 1);
|
|
913 pPlayer = pPlayer2;
|
|
914 }
|
|
915 }
|
|
916 //LABEL_34:
|
|
917 ++uCellID;
|
|
918 v26 += 4;
|
|
919 }
|
|
920 while ( uCellID < 126 );
|
|
921 }
|
|
922
|
|
923 //----- (0041A556) --------------------------------------------------------
|
|
924 void __cdecl draw_leather()
|
|
925 {
|
|
926 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_Leather));
|
|
927 }
|
|
928
|
|
929 //----- (0041A57E) --------------------------------------------------------
|
|
930 void QuickRefDraw()
|
|
931 {
|
|
932 unsigned int v0; // ebx@1
|
|
933 //unsigned int v1; // eax@1
|
|
934 Player *pPlayer; // ebp@2
|
|
935 int v3; // eax@6
|
|
936 int v4; // edi@6
|
|
937 unsigned int v5; // eax@7
|
|
938 unsigned int v6; // edi@9
|
|
939 unsigned int v7; // edi@11
|
|
940 signed int v8; // eax@13
|
|
941 unsigned int v9; // eax@13
|
|
942 unsigned int v10; // edi@13
|
|
943 int v11; // eax@15
|
|
944 unsigned int v12; // eax@15
|
|
945 unsigned int v13; // edi@15
|
|
946 int v14; // eax@17
|
|
947 int v15; // ST18_4@17
|
|
948 int v16; // ebx@17
|
|
949 int v17; // eax@17
|
|
950 unsigned int v18; // eax@17
|
|
951 unsigned int v19; // edi@17
|
|
952 int v20; // eax@19
|
|
953 unsigned int v21; // edi@19
|
|
954 char *v22; // eax@21
|
|
955 unsigned int v23; // edi@21
|
|
956 int v24; // eax@23
|
|
957 unsigned int v25; // edi@23
|
|
958 char *v26; // eax@25
|
|
959 unsigned int v27; // edi@25
|
|
960 int v28; // ecx@27
|
|
961 char *v29; // eax@27
|
|
962 signed int v30; // edx@27
|
|
963 unsigned int v31; // edi@31
|
|
964 unsigned int v32; // edi@33
|
|
965 const char *v33; // ST10_4@35
|
|
966 unsigned int v34; // eax@35
|
|
967 unsigned int v35; // edi@35
|
|
968 unsigned __int8 v36; // al@37
|
|
969 char *v37; // eax@38
|
|
970 int v38; // eax@41
|
|
971 signed int v39; // edi@42
|
|
972 char *v40; // eax@45
|
|
973 unsigned int v41; // eax@45
|
|
974 signed int v43; // [sp+10h] [bp-1Ch]@1
|
|
975 unsigned int v44; // [sp+14h] [bp-18h]@2
|
|
976 int v45; // [sp+18h] [bp-14h]@1
|
|
977 unsigned int v46; // [sp+1Ch] [bp-10h]@1
|
|
978 unsigned int v47; // [sp+20h] [bp-Ch]@1
|
|
979 unsigned int v48; // [sp+24h] [bp-8h]@33
|
|
980 //unsigned int v49; // [sp+28h] [bp-4h]@1
|
|
981
|
|
982 v0 = 0;
|
|
983 v47 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
984 //v49 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0);
|
|
985 v46 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
|
|
986 //v1 = pIcons_LOD->LoadTexture("quikref", TEXTURE_16BIT_PALETTE);
|
|
987 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->LoadTexturePtr("quikref", TEXTURE_16BIT_PALETTE));
|
|
988 v43 = 0;
|
|
989 v45 = LOBYTE(pFontArrus->uFontHeight) + 1;
|
|
990 do
|
|
991 {
|
|
992 pPlayer = &pParty->pPlayers[v43];
|
|
993 v44 = 94 * v43 + 89;
|
|
994 if ( v43 == v0 )
|
|
995 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x12u, v0, pGlobalTXT_LocalizationStrings[149], 60, v0);//Name
|
|
996 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 94 * v43 + 89, 0x12u, v47, pPlayer->pName, 84, v0);
|
|
997 if ( v43 == v0 )
|
|
998 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x2Fu, v0, pGlobalTXT_LocalizationStrings[131], 60, v0); //Óðîâ.
|
|
999 v3 = pPlayer->GetActualLevel();
|
|
1000 sprintf(pTmpBuf, "%lu", v3);
|
|
1001 v4 = pPlayer->GetBaseLevel();
|
|
1002 if ( pPlayer->GetActualLevel() <= v4 )
|
|
1003 v5 = pPlayer->GetExperienceDisplayColor();
|
|
1004 else
|
|
1005 v5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, v0);
|
|
1006 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, 0x2Fu, v5, pTmpBuf, 84, v0);
|
|
1007 v6 = v45 + 47;
|
|
1008 if ( v43 == v0 )
|
|
1009 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v45 + 47, v0, pGlobalTXT_LocalizationStrings[41], 60, v0);//Êëàññ
|
|
1010 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v6, v0, pClassNames[pPlayer->classType], 84, v0);
|
|
1011 v7 = v45 + v6;
|
|
1012 if ( v43 == v0 )
|
|
1013 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v7, v0, pGlobalTXT_LocalizationStrings[107], 60, v0);//Çäîð.
|
|
1014 sprintf(pTmpBuf, "%d", pPlayer->sHealth);
|
|
1015 v8 = pPlayer->GetMaxHealth();
|
|
1016 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8);
|
|
1017 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0);
|
|
1018 v10 = v45 + v7;
|
|
1019 if ( v43 == v0 )
|
|
1020 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v10, v0, pGlobalTXT_LocalizationStrings[209], 60, v0);//Ìàíà
|
|
1021 sprintf(pTmpBuf, "%d", pPlayer->sMana);
|
|
1022 v11 = pPlayer->GetMaxMana();
|
|
1023 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11);
|
|
1024 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0);
|
|
1025 v13 = v45 + v10;
|
|
1026 if ( v43 == v0 )
|
|
1027 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v13, v0, pGlobalTXT_LocalizationStrings[0], 60, v0);//Êëàññ áðîíè
|
|
1028 v14 = pPlayer->GetActualAC();
|
|
1029 sprintf(pTmpBuf, "%d", v14);
|
|
1030 v15 = v0;
|
|
1031 v16 = pPlayer->GetBaseAC();
|
|
1032 v17 = pPlayer->GetActualAC();
|
|
1033 v18 = UI_GetHealthManaStringColor(v17, v16);
|
|
1034 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15);
|
|
1035 v0 = 0;
|
|
1036 v19 = v45 + v13;
|
|
1037 if ( !v43 )
|
|
1038 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v19, 0, pGlobalTXT_LocalizationStrings[18], 60, 0);//Àòàêà
|
|
1039 v20 = pPlayer->GetActualAttack(0);
|
|
1040 sprintf(pTmpBuf, "%+d", v20);
|
|
1041 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0);
|
|
1042 v21 = v45 + v19;
|
|
1043 if ( !v43 )
|
|
1044 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v21, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Ïîâð.
|
|
1045 v22 = pPlayer->GetMeleeDamageString();
|
|
1046 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v21, 0, v22, 84, 0);
|
|
1047 v23 = v45 + v21;
|
|
1048 if ( !v43 )
|
|
1049 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v23, 0, pGlobalTXT_LocalizationStrings[203], 60, 0);// Ñòðåëÿòü
|
|
1050 v24 = pPlayer->GetRangedAttack();
|
|
1051 sprintf(pTmpBuf, "%+d", v24);
|
|
1052 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0);
|
|
1053 v25 = v45 + v23;
|
|
1054 if ( !v43 )
|
|
1055 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v25, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Ïîâð.
|
|
1056 v26 = pPlayer->GetRangedDamageString();
|
|
1057 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v25, 0, v26, 84, 0);
|
|
1058 v27 = v45 + v25;
|
|
1059 if ( !v43 )
|
|
1060 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v27, 0, pGlobalTXT_LocalizationStrings[205], 60, 0);//Íàâûêè
|
|
1061 v28 = 0;
|
|
1062 v29 = (char *)pPlayer->pActiveSkills;
|
|
1063 v30 = 36;
|
|
1064 do
|
|
1065 {
|
|
1066 if ( *(short *)v29 )
|
|
1067 ++v28;
|
|
1068 v29 += 2;
|
|
1069 --v30;
|
|
1070 }
|
|
1071 while ( v30 );
|
|
1072 sprintf(pTmpBuf, "%lu", v28);
|
|
1073 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0);
|
|
1074 v31 = v45 + v27;
|
|
1075 if ( !v43 )
|
|
1076 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v31, 0, pGlobalTXT_LocalizationStrings[168], 60, 0);//Î÷êè
|
|
1077 sprintf(pTmpBuf, "%lu", pPlayer->uSkillPoints);
|
|
1078 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v31, pPlayer->uSkillPoints != 0 ? v46 : 0, pTmpBuf, 84, 0);
|
|
1079 v32 = v45 + v31;
|
|
1080 v48 = pPlayer->GetMajorConditionIdx();
|
|
1081 if ( !v43 )
|
|
1082 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v32, 0, pGlobalTXT_LocalizationStrings[45], 60, 0);//Ñîñò.
|
|
1083 v33 = aCharacterConditionNames[v48];
|
|
1084 v34 = GetConditionDrawColor(v48);
|
|
1085 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v32, v34, v33, 84, 0);
|
|
1086 v35 = v45 + v32;
|
|
1087 if ( !v43 )
|
|
1088 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v35, 0, pGlobalTXT_LocalizationStrings[170], 60, 0);//Á.Ïðèì.
|
|
1089 v36 = pPlayer->uQuickSpell;
|
|
1090 if ( v36 )
|
|
1091 v37 = pSpellStats->pInfos[v36].pShortName;
|
|
1092 else
|
|
1093 v37 = pGlobalTXT_LocalizationStrings[153];//Íåò
|
|
1094 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v35, 0, v37, 84, 0);
|
|
1095 ++v43;
|
|
1096 }
|
|
1097 while ( v43 < 4 );
|
|
1098
|
|
1099 v38 = GetPartyReputation();
|
|
1100 if ( v38 >= 0 )
|
|
1101 {
|
|
1102 if ( v38 <= 5 )
|
|
1103 v39 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0xFF);
|
|
1104 else
|
|
1105 v39 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0, 0);
|
|
1106 }
|
|
1107 else
|
|
1108 v39 = v46;
|
|
1109
|
|
1110 v40 = GetReputationString(v38);
|
|
1111 sprintf(pTmpBuf, "%s: \f%05d%s\f00000", pGlobalTXT_LocalizationStrings[180], v39, v40);//Reputation
|
|
1112 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0);
|
|
1113 v41 = pParty->GetPartyFame();
|
|
1114 sprintf(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame Ñëàâà
|
|
1115 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0);
|
|
1116 }
|
|
1117
|
|
1118 //----- (0041ABFD) --------------------------------------------------------
|
910
|
1119 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx)
|
|
1120 {
|
|
1121 unsigned int v2; // eax@6
|
|
1122 Texture *pTexture; // ecx@6
|
|
1123 GUIButton *pButton; // eax@6
|
|
1124 unsigned int v5; // eax@7
|
|
1125 unsigned int v6; // eax@10
|
|
1126 unsigned int v7; // eax@11
|
706
|
1127
|
910
|
1128 if ( uPlayerIdx )
|
|
1129 {
|
|
1130 pRenderer->ClearZBuffer(0, 479);
|
|
1131 switch ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] )
|
|
1132 {
|
|
1133 case WINDOW_CharacterWindow_Stats: // stats
|
|
1134 sub_4196A0();
|
|
1135 sub_419379();
|
|
1136 CharacterUI_StatsTab_Draw(uPlayerIdx);
|
|
1137 v7 = pIcons_LOD->LoadTexture("ib-cd1-d", TEXTURE_16BIT_PALETTE);
|
|
1138 pTexture = (Texture *)(v7 != -1 ? (int)&pIcons_LOD->pTextures[v7] : 0);
|
|
1139 pButton = pCharacterScreen_StatsBtn;
|
|
1140 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
|
|
1141 break;
|
|
1142 case WINDOW_CharacterWindow_Skills: // skills
|
|
1143 if ( dword_507CC0 != uActiveCharacter )
|
|
1144 {
|
|
1145 sub_4196A0();
|
|
1146 CharacterUI_SkillScreen_Draw();
|
706
|
1147 }
|
910
|
1148 sub_419379();
|
|
1149 CharacterUI_SkillsTab_Draw(uPlayerIdx);
|
|
1150 v6 = pIcons_LOD->LoadTexture("ib-cd2-d", TEXTURE_16BIT_PALETTE);
|
|
1151 pTexture = (Texture *)(v6 != -1 ? (int)&pIcons_LOD->pTextures[v6] : 0);
|
|
1152 pButton = pCharacterScreen_SkillsBtn;
|
|
1153 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
|
|
1154 break;
|
|
1155 case WINDOW_CharacterWindow_Awards: // awards
|
|
1156 sub_4196A0();
|
|
1157 sub_419379();
|
|
1158 sub_419220();
|
|
1159 CharacterUI_AwardsTab_Draw(uPlayerIdx);
|
|
1160 v5 = pIcons_LOD->LoadTexture("ib-cd4-d", TEXTURE_16BIT_PALETTE);
|
|
1161 pTexture = (Texture *)(v5 != -1 ? (int)&pIcons_LOD->pTextures[v5] : 0);
|
|
1162 pButton = pCharacterScreen_AwardsBtn;
|
|
1163 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
|
|
1164 break;
|
|
1165 case WINDOW_CharacterWindow_Inventory: // inventory and other
|
|
1166 sub_4196A0();
|
|
1167 sub_419379();
|
|
1168 CharacterUI_InventoryTab_Draw(uPlayerIdx, 0);
|
|
1169 v2 = pIcons_LOD->LoadTexture("ib-cd3-d", TEXTURE_16BIT_PALETTE);
|
|
1170 pTexture = (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0);
|
|
1171 pButton = pCharacterScreen_InventoryBtn;
|
|
1172 pRenderer->DrawTextureIndexed(pButton->uX, pButton->uY, pTexture);
|
|
1173 break;
|
|
1174 default:
|
|
1175 break;
|
|
1176 }
|
|
1177 if ( bRingsShownInCharScreen )
|
|
1178 CharacterUI_DrawPaperdollWithRingOverlay(uPlayerIdx);
|
|
1179 else
|
|
1180 CharacterUI_DrawPaperdoll(uPlayerIdx);
|
|
1181 }
|
|
1182 }
|
706
|
1183
|
898
|
1184 //----- (0043CC7C) --------------------------------------------------------
|
|
1185 void __fastcall CharacterUI_DrawPaperdoll(unsigned int uPlayerID)
|
|
1186 {
|
|
1187 signed int pSex; // eax@1
|
|
1188 unsigned int v6; // ecx@9
|
899
|
1189 int v7; // ecx@10
|
|
1190 unsigned int pMainHandNum4; // eax@14
|
|
1191 ItemGen *item_MainHand4; // eax@15
|
|
1192 int v10; // edx@15
|
|
1193 unsigned int pX_MainHand4; // edi@15
|
|
1194 unsigned int v14; // ebx@18
|
|
1195 Texture *v16; // ebp@27
|
|
1196 double v17; // st7@29
|
|
1197 int v18; // edi@30
|
|
1198 char *v19; // eax@30
|
|
1199 unsigned int pBowNum; // eax@37
|
|
1200 ItemGen *itemBow; // edi@38
|
|
1201 int pX_Bow; // ebx@38
|
|
1202 double v28; // st7@51
|
|
1203 char *v30; // eax@54
|
|
1204 unsigned int pCloakNum; // eax@59
|
|
1205 ItemGen *item_Cloak; // edx@60
|
|
1206 int v33; // eax@65
|
|
1207 int v34; // eax@74
|
|
1208 int v35; // ebx@74
|
|
1209 LODFile_IconsBitmaps *v38; // ecx@78
|
|
1210 Texture *v39; // edi@85
|
|
1211 double v40; // st7@87
|
|
1212 int v41; // edi@88
|
|
1213 unsigned int pArmorNum; // eax@93
|
|
1214 ItemGen *item_Armor; // edx@94
|
|
1215 int v45; // eax@98
|
|
1216 int v48; // ebx@106
|
|
1217 LODFile_IconsBitmaps *v50; // ecx@110
|
|
1218 Texture *v51; // edi@117
|
|
1219 double v52; // st7@119
|
|
1220 int v53; // edi@120
|
|
1221 char *v55; // eax@122
|
|
1222 unsigned int pBootNum; // eax@127
|
|
1223 ItemGen *item_Boot; // edi@128
|
|
1224 int v59; // ebx@129
|
|
1225 int v60; // ecx@132
|
|
1226 Texture *v63; // edi@145
|
|
1227 double v64; // st7@147
|
|
1228 int v65; // edi@148
|
|
1229 char *v66; // eax@148
|
|
1230 unsigned int pMainHandNum; // edx@155
|
|
1231 int v70; // edx@156
|
|
1232 unsigned int pBeltNum; // eax@160
|
|
1233 ItemGen *item_Belt; // edi@161
|
|
1234 int v73; // edx@163
|
|
1235 unsigned int v75; // ebx@170
|
|
1236 Texture *v77; // edi@181
|
|
1237 double v78; // st7@183
|
|
1238 int v79; // edi@184
|
|
1239 char *v80; // eax@184
|
|
1240 unsigned int pMainHandNum2; // eax@192
|
|
1241 int v83; // eax@193
|
|
1242 int pArmorShoulderNum; // eax@197
|
|
1243 int v87; // eax@197
|
|
1244 int v88; // eax@198
|
|
1245 int v89; // eax@199
|
|
1246 int v94; // ebx@214
|
|
1247 int v95; // eax@214
|
|
1248 char *v96; // edi@226
|
|
1249 double v97; // st7@228
|
|
1250 int v98; // edi@229
|
|
1251 char *v99; // eax@229
|
|
1252 int pX_ArmorShoulder; // eax@237
|
|
1253 int pY_ArmorShoulder; // ecx@237
|
|
1254 int v106; // edx@238
|
|
1255 int v107; // edx@239
|
|
1256 int v108; // edx@240
|
|
1257 int v109; // edi@250
|
|
1258 char *v110; // edx@250
|
|
1259 unsigned int pCloakCollarNum; // eax@259
|
|
1260 ItemGen *item_CloakCollar; // eax@260
|
|
1261 int v114; // eax@265
|
|
1262 int v116; // ebx@274
|
706
|
1263 double v118; // st7@286
|
|
1264 int v119; // edi@287
|
|
1265 char *v120; // eax@287
|
|
1266 unsigned int v122; // edi@295
|
898
|
1267 int pHelmNum; // ebx@297
|
|
1268 ItemGen *item_Helm; // edi@298
|
706
|
1269 int v125; // ecx@303
|
|
1270 unsigned int v127; // ebx@314
|
|
1271 Texture *v129; // edi@325
|
|
1272 double v130; // st7@327
|
|
1273 int v131; // edi@328
|
|
1274 char *v132; // eax@328
|
898
|
1275 unsigned int pMainHandNum3; // eax@335
|
|
1276 ItemGen *item_MainHand3; // eax@336
|
706
|
1277 unsigned int v138; // ebx@339
|
|
1278 Texture *v140; // edi@348
|
|
1279 double v141; // st7@350
|
|
1280 int v142; // edi@351
|
|
1281 char *v143; // eax@351
|
898
|
1282 unsigned int pShieldNum; // eax@358
|
|
1283 ItemGen *item_Shield; // eax@359
|
706
|
1284 int v149; // edx@359
|
898
|
1285 int pX_Shield; // ebx@362
|
706
|
1286 int v151; // ecx@363
|
|
1287 int v152; // ecx@364
|
|
1288 unsigned int v153; // eax@370
|
|
1289 Texture *v157; // ebp@381
|
|
1290 double v158; // st7@383
|
|
1291 char *v160; // eax@386
|
898
|
1292 unsigned int pMainHandNum5; // eax@393
|
|
1293 ItemGen *item_MainHand5; // eax@394
|
706
|
1294 char *v166; // [sp-8h] [bp-54h]@16
|
|
1295 const char *v167; // [sp-8h] [bp-54h]@23
|
|
1296 const char *v168; // [sp-8h] [bp-54h]@43
|
|
1297 const char *v169; // [sp-8h] [bp-54h]@79
|
|
1298 const char *v170; // [sp-8h] [bp-54h]@111
|
|
1299 const char *v171; // [sp-8h] [bp-54h]@141
|
|
1300 const char *v172; // [sp-8h] [bp-54h]@177
|
|
1301 const char *v173; // [sp-8h] [bp-54h]@222
|
|
1302 const char *v178; // [sp-8h] [bp-54h]@242
|
|
1303 const char *v179; // [sp-8h] [bp-54h]@280
|
|
1304 const char *v180; // [sp-8h] [bp-54h]@321
|
|
1305 char *v181; // [sp-8h] [bp-54h]@337
|
|
1306 const char *v182; // [sp-8h] [bp-54h]@344
|
|
1307 const char *v183; // [sp-8h] [bp-54h]@375
|
|
1308 signed int v186; // [sp-4h] [bp-50h]@202
|
|
1309 signed int v191; // [sp-4h] [bp-50h]@266
|
|
1310 signed int v192; // [sp-4h] [bp-50h]@304
|
898
|
1311 int pY_MainHand4; // [sp+10h] [bp-3Ch]@15
|
|
1312 int pY_Bow; // [sp+10h] [bp-3Ch]@38
|
|
1313 unsigned int pY_Cloak; // [sp+10h] [bp-3Ch]@74
|
|
1314 unsigned int pY_Armor; // [sp+10h] [bp-3Ch]@106
|
|
1315 int pY_Boot; // [sp+10h] [bp-3Ch]@129
|
|
1316 int pY_Belt; // [sp+10h] [bp-3Ch]@168
|
|
1317 unsigned int pY_shoulder; // [sp+10h] [bp-3Ch]@216
|
|
1318 unsigned int pY_CloakCollar; // [sp+10h] [bp-3Ch]@274
|
|
1319 int pY_Helm; // [sp+10h] [bp-3Ch]@312
|
|
1320 int pY_MainHand3; // [sp+10h] [bp-3Ch]@336
|
|
1321 int pY_Shield; // [sp+10h] [bp-3Ch]@362
|
706
|
1322 Texture *a2b; // [sp+14h] [bp-38h]@49
|
898
|
1323 int pX_Cloak; // [sp+14h] [bp-38h]@74
|
|
1324 int pX_Armor; // [sp+14h] [bp-38h]@106
|
|
1325 int pX_Boot; // [sp+14h] [bp-38h]@129
|
|
1326 int pX_Belt; // [sp+14h] [bp-38h]@168
|
|
1327 int pX_shoulder; // [sp+14h] [bp-38h]@214
|
|
1328 int pX_CloakCollar; // [sp+14h] [bp-38h]@274
|
706
|
1329 Texture *a2i; // [sp+14h] [bp-38h]@284
|
898
|
1330 int pX_Helm; // [sp+14h] [bp-38h]@312
|
|
1331 int pX_MainHand3; // [sp+14h] [bp-38h]@336
|
706
|
1332 int pBodyComplection; // [sp+24h] [bp-28h]@6
|
898
|
1333 unsigned int pBowTextureNum; // [sp+2Ch] [bp-20h]@38
|
706
|
1334 signed int v245; // [sp+34h] [bp-18h]@361
|
|
1335 signed int IsDwarf; // [sp+40h] [bp-Ch]@4
|
|
1336
|
898
|
1337 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE);
|
|
1338 pSex = pPlayers[uPlayerID]->GetSexByVoice();
|
|
1339 if ( pPlayers[uPlayerID]->GetRace() && pPlayers[uPlayerID]->GetRace() != 1 && pPlayers[uPlayerID]->GetRace() != 2 )
|
|
1340 {
|
|
1341 IsDwarf = 1;
|
|
1342 pBodyComplection = (pSex != 0) + 2;
|
|
1343 }
|
|
1344 else
|
|
1345 {
|
|
1346 IsDwarf = 0;
|
|
1347 pBodyComplection = pSex != 0;
|
|
1348 }
|
|
1349 pRenderer->ResetTextureClipRect();
|
|
1350 pRenderer->DrawTextureIndexed(0x1D3u, 0, pIcons_LOD->GetTexture(uTextureID_BACKDOLL));//Ïîäëîæêà
|
|
1351 if ( IsPlayerWearingWatersuit[uPlayerID] )//àêâàëàíã
|
|
1352 {
|
|
1353 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY,
|
|
1354 (Texture *)(papredoll_dbods[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dbods[uPlayerID - 1]] : 0));
|
|
1355 if ( !bRingsShownInCharScreen )
|
|
1356 pRenderer->DrawMaskToZBuffer(pPaperdoll_BodyX, pPaperdoll_BodyY,
|
|
1357 (Texture *)(papredoll_dbods[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dbods[uPlayerID - 1]] : 0),
|
|
1358 pPlayers[uPlayerID]->pEquipment.uArmor);
|
|
1359 v6 = pPlayers[uPlayerID]->pEquipment.uMainHand;
|
|
1360 if ( !v6 || (v7 = *(int *)&pPlayers[uPlayerID]->pInventoryItems[v6-1], pItemsTable->pItems[v7].uEquipType != 1)
|
|
1361 && (pItemsTable->pItems[v7].uSkillType != 4 || pPlayers[uPlayerID]->pEquipment.uShield) )
|
|
1362 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
|
|
1363 (Texture *)(papredoll_dlads[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dlads[uPlayerID - 1]] : 0));
|
|
1364 pMainHandNum4 = pPlayers[uPlayerID]->pEquipment.uMainHand;
|
|
1365 if ( pMainHandNum4 )
|
|
1366 {
|
|
1367 item_MainHand4 = &pPlayers[uPlayerID]->pInventoryItems[pMainHandNum4 - 1];
|
|
1368 pX_MainHand4 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[item_MainHand4->uItemID].uEquipX;
|
|
1369 pY_MainHand4 = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[item_MainHand4->uItemID].uEquipY;
|
|
1370 if ( item_MainHand4->uItemID == 64 )
|
|
1371 v166 = "item64v1";
|
|
1372 else
|
|
1373 v166 = pItemsTable->pItems[item_MainHand4->uItemID].pIconName;
|
|
1374 v14 = pIcons_LOD->LoadTexture(v166, TEXTURE_16BIT_PALETTE);
|
|
1375 if ( !( item_MainHand4->uAttributes & 0xF0 ) )
|
|
1376 {
|
|
1377 v18 = v14 + 1;
|
|
1378 v19 = (char *)&pIcons_LOD->pTextures[v14];
|
|
1379 if ( item_MainHand4->uAttributes & 2 )
|
|
1380 pRenderer->DrawTransparentRedShade(pX_MainHand4, pY_MainHand4, (Texture *)(v18 != 0 ? (int)v19 : 0));
|
|
1381 else
|
|
1382 {
|
|
1383 if ( item_MainHand4->uAttributes & 1 )
|
|
1384 pRenderer->DrawTextureTransparent(pX_MainHand4, pY_MainHand4, (Texture *)(v18 != 0 ? (int)v19 : 0));
|
|
1385 else
|
|
1386 pRenderer->DrawTransparentGreenShade(pX_MainHand4, pY_MainHand4, (Texture *)(v18 != 0 ? (int)v19 : 0));
|
|
1387 }
|
|
1388 }
|
|
1389 if ( item_MainHand4->uAttributes & 0xF0 )
|
|
1390 {
|
910
|
1391 if ( ( item_MainHand4->uAttributes & 0xF0) == 16 )
|
898
|
1392 v167 = "sptext01";
|
|
1393 if ( ( item_MainHand4->uAttributes & 0xF0) == 32 )
|
|
1394 v167 = "sp28a";
|
|
1395 if ( (item_MainHand4->uAttributes & 0xF0) == 64 )
|
|
1396 v167 = "sp30a";
|
|
1397 if ( (item_MainHand4->uAttributes & 0xF0) == 128 )
|
|
1398 v167 = "sp91a";
|
|
1399 v16 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v167, TEXTURE_16BIT_PALETTE)];
|
|
1400 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1401 if ( dword_50C9A8 <= 0 )
|
|
1402 {
|
|
1403 dword_50C9A8 = 0;
|
|
1404 item_MainHand4->uAttributes &= 0xFu;
|
|
1405 ptr_50C9A4 = 0;
|
|
1406 }
|
|
1407 v17 = (double)GetTickCount() * 0.1;
|
|
1408 pRenderer->_4A63E6(pX_MainHand4, pY_MainHand4, (Texture *)(v14 != -1 ? (int)&pIcons_LOD->pTextures[v14] : 0), v16, (signed __int64)v17, 0, 255);
|
|
1409 }
|
|
1410 if ( !bRingsShownInCharScreen )
|
|
1411 pRenderer->DrawMaskToZBuffer(pX_MainHand4, pY_MainHand4, (Texture *)(v18 != 0 ? (int)v19 : 0), pMainHandNum4);
|
|
1412 }
|
|
1413 }
|
|
1414 else// áåç àêâàëàíãà
|
|
1415 {
|
|
1416 pBowNum = pPlayers[uPlayerID]->pEquipment.uBow; //ñíà÷àëà ðèñóåòñÿ ëóê
|
|
1417 if ( pBowNum )
|
|
1418 {
|
|
1419 itemBow = &pPlayers[uPlayerID]->pInventoryItems[pBowNum - 1];
|
|
1420 pX_Bow = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][2][0] - pItemsTable->pItems[itemBow->uItemID].uEquipX;
|
|
1421 pY_Bow = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][2][1] - pItemsTable->pItems[itemBow->uItemID].uEquipY;
|
|
1422 pBowTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[itemBow->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
|
|
1423 if ( !(itemBow->uAttributes & 0xF0) )// åñëè íå ïðèìåí¸í çàêë
|
|
1424 {
|
|
1425 if ( itemBow->uAttributes & 2 )
|
|
1426 pRenderer->DrawTransparentRedShade(pX_Bow, pY_Bow, (Texture *)(pBowTextureNum != -1 ? (int)&pIcons_LOD->pTextures[pBowTextureNum] : 0));
|
706
|
1427 else
|
898
|
1428 {
|
|
1429 v30 = (char *)&pIcons_LOD->pTextures[pBowTextureNum];
|
|
1430 if ( !(itemBow->uAttributes & 1) )//íå îïîçíàííûé ëóê çåë¸íûé
|
|
1431 pRenderer->DrawTransparentGreenShade(pX_Bow, pY_Bow, (Texture *)(pBowTextureNum != -1 ? (int)v30 : 0));
|
|
1432 else // îïîçíàííûé ëóê
|
|
1433 pRenderer->DrawTextureTransparent(pX_Bow, pY_Bow, (Texture *)(pBowTextureNum != -1 ? (int)v30 : 0));
|
|
1434 }
|
|
1435 }
|
|
1436 else
|
|
1437 {
|
|
1438 if ( (itemBow->uAttributes & 0xF0) == 16 )
|
|
1439 v168 = "sptext01";
|
|
1440 if ( (itemBow->uAttributes & 0xF0) == 32 )
|
|
1441 v168 = "sp28a";
|
|
1442 if ( (itemBow->uAttributes & 0xF0) == 64 )
|
|
1443 v168 = "sp30a";
|
|
1444 if ( (itemBow->uAttributes & 0xF0) == 128 )
|
|
1445 v168 = "sp91a";
|
|
1446 a2b = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v168, TEXTURE_16BIT_PALETTE)];
|
|
1447 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1448 if ( dword_50C9A8 <= 0 )
|
|
1449 {
|
|
1450 dword_50C9A8 = 0;
|
|
1451 itemBow->uAttributes &= 0xFu;
|
|
1452 ptr_50C9A4 = 0;
|
|
1453 }
|
|
1454 v28 = (double)GetTickCount() * 0.1;
|
|
1455 pRenderer->_4A63E6(pX_Bow, pY_Bow, (Texture *)(pBowTextureNum != -1 ? (int)&pIcons_LOD->pTextures[pBowTextureNum] : 0), a2b, (signed __int64)v28, 0, 255);
|
|
1456 }
|
|
1457 if ( !bRingsShownInCharScreen )
|
|
1458 pRenderer->DrawMaskToZBuffer(pX_Bow, pY_Bow, (Texture *)(pBowTextureNum != -1 ? (int)&pIcons_LOD->pTextures[pBowTextureNum] : 0), pBowNum);
|
|
1459 }
|
|
1460 pCloakNum = pPlayers[uPlayerID]->pEquipment.uCloak;// ïîòîì ïëàù
|
|
1461 if ( pCloakNum )
|
|
1462 {
|
|
1463 item_Cloak = &pPlayers[uPlayerID]->pInventoryItems[pCloakNum - 1];
|
|
1464 switch ( item_Cloak->uItemID )
|
|
1465 {
|
|
1466 case 525:
|
|
1467 v33 = 5;
|
|
1468 break;
|
|
1469 case 530:
|
|
1470 v33 = 6;
|
|
1471 break;
|
|
1472 case 547:
|
|
1473 v33 = 7;
|
|
1474 break;
|
|
1475 case 548:
|
|
1476 v33 = 8;
|
|
1477 break;
|
|
1478 case 550:
|
|
1479 v33 = 9;
|
|
1480 break;
|
|
1481 default:
|
|
1482 v33 = item_Cloak->uItemID - 105;
|
|
1483 break;
|
|
1484 }
|
|
1485 if ( v33 >= 0 && v33 < 10 )
|
|
1486 {
|
899
|
1487 v35 = paperdoll_cloak_texture[pBodyComplection][v33];//Texture_Cloak
|
|
1488 pX_Cloak = pPaperdoll_BodyX + paperdoll_Cloak[pBodyComplection][v33][0];
|
|
1489 pY_Cloak = pPaperdoll_BodyY + paperdoll_Cloak[pBodyComplection][v33][1];
|
898
|
1490 if ( !(item_Cloak->uAttributes & 0xF0) )
|
|
1491 {
|
|
1492 v41 = v35 + 1;
|
|
1493 if ( item_Cloak->uAttributes & 2 )
|
|
1494 pRenderer->DrawTransparentRedShade(pX_Cloak, pY_Cloak, (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0));
|
|
1495 else
|
|
1496 pRenderer->DrawTextureTransparent(pX_Cloak, pY_Cloak, (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0));
|
|
1497 }
|
|
1498 else
|
|
1499 {
|
|
1500 if ( (item_Cloak->uAttributes & 0xF0) == 16 )
|
|
1501 v169 = "sptext01";
|
|
1502 if ( (item_Cloak->uAttributes & 0xF0) == 32 )
|
|
1503 v169 = "sp28a";
|
|
1504 if ( (item_Cloak->uAttributes & 0xF0) != 64 )
|
|
1505 v169 = "sp30a";
|
|
1506 if ( (item_Cloak->uAttributes & 0xF0) == 128 )
|
|
1507 v169 = "sp91a";
|
|
1508 v39 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v169, TEXTURE_16BIT_PALETTE)];
|
|
1509 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1510 if ( dword_50C9A8 <= 0 )
|
|
1511 {
|
|
1512 dword_50C9A8 = 0;
|
|
1513 item_Cloak->uAttributes &= 0xFu;
|
|
1514 ptr_50C9A4 = 0;
|
|
1515 }
|
|
1516 v40 = (double)GetTickCount() * 0.1;
|
|
1517 pRenderer->_4A63E6(pX_Cloak, pY_Cloak, (Texture *)(v35 != -1 ? (int)&pIcons_LOD->pTextures[v35] : 0), v39, (signed __int64)v40, 0, 255);
|
|
1518 }
|
|
1519 if ( !bRingsShownInCharScreen )
|
|
1520 pRenderer->DrawMaskToZBuffer(pX_Cloak, pY_Cloak, (Texture *)(v41 != 0 ? (int)&pIcons_LOD->pTextures[v35] : 0), pCloakNum);
|
|
1521 }
|
|
1522 }
|
|
1523 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX, pPaperdoll_BodyY,//ðèñóåòñÿ êóêëà
|
|
1524 (Texture *)(papredoll_dbods[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dbods[uPlayerID - 1]] : 0));
|
|
1525 pArmorNum = pPlayers[uPlayerID]->pEquipment.uArmor;// ïîòîì áðîíÿ
|
|
1526 if ( pArmorNum )
|
|
1527 {
|
|
1528 item_Armor = &pPlayers[uPlayerID]->pInventoryItems[pArmorNum - 1];
|
|
1529 switch ( item_Armor->uItemID )
|
|
1530 {
|
|
1531 case 504:
|
|
1532 v45 = 15;
|
|
1533 break;
|
|
1534 case 505:
|
|
1535 v45 = 14;
|
|
1536 break;
|
|
1537 case 516:
|
|
1538 v45 = 13;
|
|
1539 break;
|
|
1540 case 533:
|
|
1541 v45 = 16;
|
|
1542 break;
|
|
1543 default:
|
|
1544 v45 = item_Armor->uItemID - 66;
|
|
1545 break;
|
|
1546 }
|
|
1547 if ( v45 >= 0 && v45 < 17 )
|
|
1548 {
|
899
|
1549 pX_Armor = pPaperdoll_BodyX + paperdoll_Armor[pBodyComplection][v45][0];
|
|
1550 pY_Armor = pPaperdoll_BodyY + paperdoll_Armor[pBodyComplection][v45][1];
|
|
1551 v48 = paperdoll_armor_texture[pBodyComplection][v45][0];
|
898
|
1552 if ( !(item_Armor->uAttributes & 0xF0) )
|
|
1553 {
|
|
1554 v53 = v48 + 1;
|
|
1555 if ( item_Armor->uAttributes & 2 )
|
|
1556 pRenderer->DrawTransparentRedShade(pX_Armor, pY_Armor, (Texture *)(v53 != 0 ? (int)&pIcons_LOD->pTextures[v48] : 0));
|
|
1557 else
|
|
1558 {
|
|
1559 v55 = (char *)&pIcons_LOD->pTextures[v48];
|
|
1560 if ( !(item_Armor->uAttributes & 1) )
|
|
1561 pRenderer->DrawTransparentGreenShade(pX_Armor, pY_Armor, (Texture *)(v53 != 0 ? (int)v55 : 0));
|
|
1562 else
|
|
1563 pRenderer->DrawTextureTransparent(pX_Armor, pY_Armor, (Texture *)(v53 != 0 ? (int)v55 : 0));
|
|
1564 }
|
|
1565 }
|
|
1566 else
|
|
1567 {
|
|
1568 if ( (item_Armor->uAttributes & 0xF0) == 16 )
|
|
1569 v170 = "sptext01";
|
|
1570 if ( (item_Armor->uAttributes & 0xF0) == 32 )
|
|
1571 v170 = "sp28a";
|
|
1572 if ( (item_Armor->uAttributes & 0xF0) == 64 )
|
|
1573 v170 = "sp30a";
|
|
1574 if ( (item_Armor->uAttributes & 0xF0) == 128 )
|
|
1575 v170 = "sp91a";
|
|
1576 v51 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v170, TEXTURE_16BIT_PALETTE)];
|
|
1577 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1578 if ( dword_50C9A8 <= 0 )
|
|
1579 {
|
|
1580 dword_50C9A8 = 0;
|
|
1581 item_Armor->uAttributes &= 0xFu;
|
|
1582 ptr_50C9A4 = 0;
|
|
1583 }
|
|
1584 v52 = (double)GetTickCount() * 0.1;
|
|
1585 pRenderer->_4A63E6(pX_Armor, pY_Armor, (Texture *)(v48 != -1 ? (int)&pIcons_LOD->pTextures[v48] : 0), v51, (signed __int64)v52, 0, 255);
|
|
1586 }
|
|
1587 if ( pPlayers[uPlayerID]->pEquipment.uMainHand //äàëåå ïëå÷è áðîíè
|
|
1588 && (pPlayers[uPlayerID]->GetEquippedItemEquipType(EQUIP_MAIN_HAND) == EQUIP_MAIN_HAND ||
|
|
1589 pPlayers[uPlayerID]->GetEquippedItemSkillType(EQUIP_MAIN_HAND) == EQUIP_SHIELD &&
|
|
1590 !pPlayers[uPlayerID]->pEquipment.uShield) )
|
|
1591 {
|
899
|
1592 v94 = paperdoll_armor_texture[pBodyComplection][v45][2];
|
898
|
1593 if ( v94 == pIcons_LOD->FindTextureByName("pending") )
|
|
1594 {
|
899
|
1595 v94 = paperdoll_armor_texture[pBodyComplection][v45][1];
|
|
1596 pX_shoulder = pPaperdoll_BodyX + paperdoll_shoulder[pBodyComplection][v45][0];
|
|
1597 pY_shoulder = pPaperdoll_BodyY + paperdoll_shoulder[pBodyComplection][v45][1];
|
898
|
1598 }
|
|
1599 else
|
|
1600 {
|
899
|
1601 pX_shoulder = pPaperdoll_BodyX + dword_4E5270[v45][0];
|
|
1602 pY_shoulder = pPaperdoll_BodyY + dword_4E5270[v45][1];
|
898
|
1603 }
|
|
1604 if ( !(item_Armor->uAttributes & 0xF0) )
|
|
1605 {
|
|
1606 v98 = v94 + 1;
|
|
1607 v99 = (char *)&pIcons_LOD->pTextures[v94];
|
|
1608 if ( item_Armor->uAttributes & 2 )
|
|
1609 pRenderer->DrawTransparentRedShade(pX_shoulder, pY_shoulder, (Texture *)(v98 != 0 ? (int)v99 : 0));
|
|
1610 else
|
706
|
1611 {
|
898
|
1612 if ( item_Armor->uAttributes & 1 )
|
|
1613 pRenderer->DrawTextureTransparent(pX_shoulder, pY_shoulder, (Texture *)(v98 != 0 ? (int)v99 : 0));
|
|
1614 else
|
|
1615 pRenderer->DrawTransparentGreenShade(pX_shoulder, pY_shoulder, (Texture *)(v98 != 0 ? (int)v99 : 0));
|
|
1616 }
|
|
1617 }
|
|
1618 else
|
|
1619 {
|
|
1620 if ( v94 != pIcons_LOD->FindTextureByName("pending") )
|
|
1621 {
|
|
1622 if ( item_Armor->uAttributes & 0xF0 )
|
|
1623 {
|
|
1624 if ( (item_Armor->uAttributes & 0xF0) == 16 )
|
|
1625 v173 = "sptext01";
|
|
1626 if ( (item_Armor->uAttributes & 0xF0) == 32 )
|
|
1627 v173 = "sp28a";
|
|
1628 if ( ( item_Armor->uAttributes & 0xF0) == 64 )
|
|
1629 v173 = "sp30a";
|
|
1630 if ( (item_Armor->uAttributes & 0xF0) == 128 )
|
|
1631 v173 = "sp91a";
|
|
1632 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v173, TEXTURE_16BIT_PALETTE)];
|
706
|
1633 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1634 if ( dword_50C9A8 <= 0 )
|
898
|
1635 {
|
|
1636 dword_50C9A8 = 0;
|
|
1637 item_Armor->uAttributes &= 0xFu;
|
|
1638 ptr_50C9A4 = 0;
|
706
|
1639 }
|
898
|
1640 v97 = (double)GetTickCount();
|
|
1641 pRenderer->_4A63E6(pX_shoulder, pY_shoulder, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), (Texture *)v96, (signed __int64)(v97 * 0.1), 0, 255);
|
|
1642 }
|
|
1643 }
|
|
1644 }
|
|
1645 }
|
|
1646 else
|
|
1647 {
|
899
|
1648 v94 = paperdoll_armor_texture[pBodyComplection][v45][1];
|
898
|
1649 if ( v94 != pIcons_LOD->FindTextureByName("pending") )
|
|
1650 {
|
899
|
1651 pX_ArmorShoulder = pPaperdoll_BodyX + paperdoll_shoulder[pBodyComplection][v45][0];
|
|
1652 pY_ArmorShoulder = pPaperdoll_BodyY + paperdoll_shoulder[pBodyComplection][v45][1];
|
898
|
1653 if ( !(item_Armor->uAttributes & 0xF0) )
|
|
1654 {
|
|
1655 v109 = v94 + 1;
|
|
1656 v110 = (char *)&pIcons_LOD->pTextures[v94];
|
|
1657 if ( item_Armor->uAttributes & 2 )
|
|
1658 pRenderer->DrawTransparentRedShade(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)(v109 != 0 ? (int)v110 : 0));
|
|
1659 else
|
|
1660 {
|
|
1661 if ( item_Armor->uAttributes & 1 )
|
|
1662 pRenderer->DrawTextureTransparent(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)(v109 != 0 ? (int)v110 : 0));
|
|
1663 else
|
|
1664 pRenderer->DrawTransparentGreenShade(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)(v109 != 0 ? (int)v110 : 0));
|
|
1665 }
|
|
1666 }
|
|
1667 else
|
|
1668 {
|
|
1669 if ( (item_Armor->uAttributes & 0xF0) == 16 )
|
|
1670 v178 = "sptext01";
|
|
1671 if ( (item_Armor->uAttributes & 0xF0) == 32 )
|
|
1672 v178 = "sp28a";
|
|
1673 if ( (item_Armor->uAttributes & 0xF0) == 64 )
|
|
1674 v178 = "sp30a";
|
|
1675 if ( (item_Armor->uAttributes & 0xF0) == 128 )
|
|
1676 v178 = "sp91a";
|
|
1677 v96 = (char *)&pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v178, TEXTURE_16BIT_PALETTE)];
|
|
1678 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1679 if ( dword_50C9A8 <= 0 )
|
|
1680 {
|
|
1681 dword_50C9A8 = 0;
|
|
1682 item_Armor->uAttributes &= 0xFu;
|
|
1683 ptr_50C9A4 = 0;
|
|
1684 }
|
|
1685 v97 = (double)GetTickCount();
|
|
1686 pRenderer->_4A63E6(pX_ArmorShoulder, pY_ArmorShoulder, (Texture *)(v94 != -1 ? (int)&pIcons_LOD->pTextures[v94] : 0), (Texture *)v96, (signed __int64)(v97 * 0.1), 0, 255);
|
|
1687 }
|
|
1688 }
|
|
1689 }
|
|
1690 if ( !bRingsShownInCharScreen )
|
|
1691 pRenderer->DrawMaskToZBuffer(pX_Armor, pY_Armor, (Texture *)(v53 != 0 ? (int)v55 : 0), pArmorNum);
|
|
1692 }
|
|
1693 }
|
|
1694 pBootNum = pPlayers[uPlayerID]->pEquipment.uBoot;//äàëåå îáóâü
|
|
1695 if ( pBootNum )
|
|
1696 {
|
|
1697 item_Boot = &pPlayers[uPlayerID]->pInventoryItems[pBootNum - 1];
|
|
1698 switch ( item_Boot->uItemID )
|
|
1699 {
|
|
1700 case 529:
|
|
1701 v60 = 5;
|
|
1702 v59 = papredoll_flying_feet[pPlayers[uPlayerID]->uFace];
|
|
1703 break;
|
|
1704 case 512:
|
|
1705 v60 = 6;
|
899
|
1706 v59 = paperdoll_boots_texture[pBodyComplection][5];
|
898
|
1707 break;
|
|
1708 default:
|
|
1709 v60 = item_Boot->uItemID - 115;
|
899
|
1710 v59 = paperdoll_boots_texture[pBodyComplection][v60];
|
898
|
1711 break;
|
|
1712 }
|
|
1713 if ( v60 >= 0 && v60 < 7 )
|
|
1714 {
|
899
|
1715 pX_Boot = pPaperdoll_BodyX + paperdoll_Boot[pBodyComplection][v60][0];
|
|
1716 pY_Boot = pPaperdoll_BodyY + paperdoll_Boot[pBodyComplection][v60][1];
|
898
|
1717 if ( !(item_Boot->uAttributes & 0xF0) )
|
|
1718 {
|
|
1719 v65 = v59 + 1;
|
|
1720 v66 = (char *)&pIcons_LOD->pTextures[v59];
|
|
1721 if ( item_Boot->uAttributes & 2 )
|
|
1722 pRenderer->DrawTransparentRedShade(pX_Boot, pY_Boot, (Texture *)(v65 != 0 ? (int)v66 : 0));
|
|
1723 else
|
|
1724 {
|
|
1725 if ( item_Boot->uAttributes & 1 )
|
|
1726 pRenderer->DrawTextureTransparent(pX_Boot, pY_Boot, (Texture *)(v65 != 0 ? (int)v66 : 0));
|
|
1727 else
|
|
1728 pRenderer->DrawTransparentGreenShade(pX_Boot, pY_Boot, (Texture *)(v65 != 0 ? (int)v66 : 0));
|
|
1729 }
|
|
1730 }
|
|
1731 else
|
|
1732 {
|
|
1733 if ( (item_Boot->uAttributes & 0xF0) == 16 )
|
|
1734 v171 = "sptext01";
|
|
1735 if ( (item_Boot->uAttributes & 0xF0) == 32 )
|
|
1736 v171 = "sp28a";
|
|
1737 if ( (item_Boot->uAttributes & 0xF0) == 64 )
|
|
1738 v171 = "sp30a";
|
|
1739 if ( (item_Boot->uAttributes & 0xF0) == 128 )
|
|
1740 v171 = "sp91a";
|
|
1741 v63 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v171, TEXTURE_16BIT_PALETTE)];
|
|
1742 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1743 if ( dword_50C9A8 <= 0 )
|
|
1744 {
|
|
1745 dword_50C9A8 = 0;
|
|
1746 item_Boot->uAttributes &= 0xFu;
|
|
1747 ptr_50C9A4 = 0;
|
|
1748 }
|
|
1749 v64 = (double)GetTickCount() * 0.1;
|
|
1750 pRenderer->_4A63E6(pX_Boot, pY_Boot, (Texture *)(v59 != -1 ? (int)&pIcons_LOD->pTextures[v59] : 0), v63, (signed __int64)v64, 0, 255);
|
|
1751 }
|
|
1752 if ( !bRingsShownInCharScreen )
|
|
1753 pRenderer->DrawMaskToZBuffer(pX_Boot, pY_Boot, (Texture *)(v65 != 0 ? (int)v66 : 0), pBootNum);
|
|
1754 }
|
|
1755 }
|
|
1756 pMainHandNum = pPlayers[uPlayerID]->pEquipment.uMainHand;
|
|
1757 if ( !pMainHandNum || (v70 = *(int *)&pPlayers[uPlayerID]->pInventoryItems[pMainHandNum -1], pItemsTable->pItems[v70].uEquipType != 1)
|
|
1758 && (pItemsTable->pItems[v70].uSkillType != 4 || pPlayers[uPlayerID]->pEquipment.uShield) )
|
|
1759 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0],
|
|
1760 pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1],
|
|
1761 (Texture *)(papredoll_dlads[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dlads[uPlayerID - 1]] : 0));
|
|
1762 pBeltNum = pPlayers[uPlayerID]->pEquipment.uBelt;// äàëåå ïîÿñ
|
|
1763 if ( pBeltNum )
|
|
1764 {
|
|
1765 item_Belt = &pPlayers[uPlayerID]->pInventoryItems[pBeltNum - 1];
|
|
1766 switch ( item_Belt->uItemID )
|
|
1767 {
|
|
1768 case 524:
|
|
1769 v73 = 5;
|
|
1770 break;
|
|
1771 case 535:
|
|
1772 v73 = 6;
|
|
1773 break;
|
|
1774 default:
|
|
1775 v73 = item_Belt->uItemID - 100;
|
|
1776 break;
|
|
1777 }
|
|
1778 if ( v73 >= 0 && v73 < 7 )
|
|
1779 {
|
899
|
1780 pX_Belt = pPaperdoll_BodyX + paperdoll_Belt[pBodyComplection][v73][0];
|
|
1781 pY_Belt = pPaperdoll_BodyY + paperdoll_Belt[pBodyComplection][v73][1];
|
898
|
1782 if ( IsDwarf != 1 || v73 == 5 )
|
899
|
1783 v75 = paperdoll_belt_texture[pBodyComplection][v73];
|
898
|
1784 else
|
899
|
1785 v75 = paperdoll_belt_texture[pBodyComplection - 2][v73];
|
898
|
1786 if ( !(item_Belt->uAttributes & 0xF0) )
|
|
1787 {
|
|
1788 v79 = v75 + 1;
|
|
1789 v80 = (char *)&pIcons_LOD->pTextures[v75];
|
|
1790 if ( item_Belt->uAttributes & 2 )
|
|
1791 pRenderer->DrawTransparentRedShade(pX_Belt, pY_Belt, (Texture *)(v79 != 0 ? (int)v80 : 0));
|
|
1792 else
|
|
1793 {
|
|
1794 if ( item_Belt->uAttributes & 1 )
|
|
1795 pRenderer->DrawTextureTransparent(pX_Belt, pY_Belt, (Texture *)(v79 != 0 ? (int)v80 : 0));
|
|
1796 else
|
|
1797 pRenderer->DrawTransparentGreenShade(pX_Belt, pY_Belt, (Texture *)(v79 != 0 ? (int)v80 : 0));
|
|
1798 }
|
|
1799 if ( !bRingsShownInCharScreen )
|
|
1800 pRenderer->DrawMaskToZBuffer(pX_Belt, pY_Belt, (Texture *)(v79 != 0 ? (int)v80 : 0), pBeltNum);
|
|
1801 }
|
|
1802 else
|
|
1803 {
|
|
1804 if ( (item_Belt->uAttributes & 0xF0) == 16 )
|
|
1805 v172 = "sptext01";
|
|
1806 if ( (item_Belt->uAttributes & 0xF0) == 32 )
|
|
1807 v172 = "sp28a";
|
|
1808 if ( (item_Belt->uAttributes & 0xF0) == 64 )
|
|
1809 v172 = "sp30a";
|
|
1810 if ( (item_Belt->uAttributes & 0xF0) == 128 )
|
|
1811 v172 = "sp91a";
|
|
1812 v77 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v172, TEXTURE_16BIT_PALETTE)];
|
706
|
1813 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1814 if ( dword_50C9A8 <= 0 )
|
898
|
1815 {
|
|
1816 dword_50C9A8 = 0;
|
|
1817 item_Belt->uAttributes &= 0xFu;
|
|
1818 ptr_50C9A4 = 0;
|
706
|
1819 }
|
898
|
1820 v78 = (double)GetTickCount() * 0.1;
|
|
1821 pRenderer->_4A63E6(pX_Belt, pY_Belt, (Texture *)(v75 != -1 ? (int)&pIcons_LOD->pTextures[v75] : 0), v77, (signed __int64)v78, 0, 255);
|
|
1822 }
|
|
1823 }
|
|
1824 }
|
|
1825 pMainHandNum2 = pPlayers[uPlayerID]->pEquipment.uMainHand;
|
|
1826 if ( pMainHandNum2 )
|
|
1827 {
|
|
1828 v83 = *(int *)&pPlayers[uPlayerID]->pInventoryItems[pMainHandNum2 - 1];
|
|
1829 if ( pItemsTable->pItems[v83].uEquipType == 1
|
|
1830 || pItemsTable->pItems[v83].uSkillType == 4 && !pPlayers[uPlayerID]->pEquipment.uShield )
|
|
1831 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0],
|
|
1832 pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1],
|
|
1833 (Texture *)(papredoll_dlaus[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dlaus[uPlayerID - 1]] : 0));
|
|
1834 }
|
|
1835 pCloakCollarNum = pPlayers[uPlayerID]->pEquipment.uCloak;//äàëåå âîðîòíèê ïëàùà
|
|
1836 if ( pCloakCollarNum )
|
|
1837 {
|
|
1838 item_CloakCollar = &pPlayers[uPlayerID]->pInventoryItems[pCloakCollarNum - 1];
|
|
1839 switch ( item_CloakCollar->uItemID )
|
|
1840 {
|
|
1841 case 525:
|
|
1842 v114 = 5;
|
|
1843 break;
|
|
1844 case 530:
|
|
1845 v114 = 6;
|
|
1846 break;
|
|
1847 case 547:
|
|
1848 v114 = 7;
|
|
1849 break;
|
|
1850 case 548:
|
|
1851 v114 = 8;
|
|
1852 break;
|
|
1853 case 550:
|
|
1854 v114 = 9;
|
|
1855 break;
|
|
1856 default:
|
|
1857 v114 = item_CloakCollar->uItemID - 105;
|
|
1858 }
|
|
1859 if ( v114 >= 0 && v114 < 10 )
|
|
1860 {
|
899
|
1861 v116 = paperdoll_cloak_collar_texture[pBodyComplection][v114];
|
|
1862 pX_CloakCollar = pPaperdoll_BodyX + paperdoll_CloakCollar[pBodyComplection][v114][0];
|
|
1863 pY_CloakCollar = pPaperdoll_BodyY + paperdoll_CloakCollar[pBodyComplection][v114][1];
|
898
|
1864 if ( v116 != pIcons_LOD->FindTextureByName("pending") )
|
|
1865 {
|
|
1866 if ( !(item_CloakCollar->uAttributes & 0xF0) )
|
706
|
1867 {
|
898
|
1868 v119 = v116 + 1;
|
|
1869 v120 = (char *)&pIcons_LOD->pTextures[v116];
|
|
1870 if ( item_CloakCollar->uAttributes & 2 )
|
|
1871 pRenderer->DrawTransparentRedShade(pX_CloakCollar, pY_CloakCollar, (Texture *)(v119 != 0 ? (int)v120 : 0));
|
|
1872 else
|
|
1873 pRenderer->DrawTextureTransparent(pX_CloakCollar, pY_CloakCollar, (Texture *)(v119 != 0 ? (int)v120 : 0));
|
|
1874 if ( !bRingsShownInCharScreen )
|
|
1875 pRenderer->DrawMaskToZBuffer(pX_CloakCollar, pY_CloakCollar, (Texture *)(v119 != 0 ? (int)v120 : 0), pCloakCollarNum);
|
|
1876 }
|
706
|
1877 else
|
898
|
1878 {
|
|
1879 if ( (item_CloakCollar->uAttributes & 0xF0) == 16 )
|
|
1880 v179 = "sptext01";
|
|
1881 if ( (item_CloakCollar->uAttributes & 0xF0) == 32 )
|
|
1882 v179 = "sp28a";
|
|
1883 if ( (item_CloakCollar->uAttributes & 0xF0) == 64 )
|
|
1884 v179 = "sp30a";
|
|
1885 if ( (item_CloakCollar->uAttributes & 0xF0) == 128 )
|
|
1886 v179 = "sp91a";
|
|
1887 a2i = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v179, TEXTURE_16BIT_PALETTE)];
|
|
1888 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1889 if ( dword_50C9A8 <= 0 )
|
|
1890 {
|
|
1891 dword_50C9A8 = 0;
|
|
1892 item_CloakCollar->uAttributes &= 0xFu;
|
|
1893 ptr_50C9A4 = 0;
|
|
1894 }
|
|
1895 v118 = (double)GetTickCount() * 0.1;
|
|
1896 pRenderer->_4A63E6(pX_CloakCollar, pY_CloakCollar, (Texture *)(v116 != -1 ? (int)&pIcons_LOD->pTextures[v116] : 0), a2i, (signed __int64)v118, 0, 255);
|
|
1897 }
|
|
1898 }
|
|
1899 }
|
|
1900 }
|
|
1901 if ( pPlayers[uPlayerID]->uFace == 12 || pPlayers[uPlayerID]->uFace == 13 )
|
|
1902 {
|
|
1903 v122 = papredoll_dbrds[pPlayers[uPlayerID]->uFace];
|
|
1904 if ( v122 != pIcons_LOD->FindTextureByName("Pending") )
|
|
1905 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_Beards[2 * pPlayers[uPlayerID]->uFace - 24],
|
|
1906 pPaperdoll_BodyY + pPaperdoll_Beards[2 * pPlayers[uPlayerID]->uFace - 23],
|
|
1907 (Texture *)(v122 != -1 ? (int)&pIcons_LOD->pTextures[v122] : 0));
|
|
1908 }
|
|
1909 pHelmNum = pPlayers[uPlayerID]->pEquipment.uHelm;//äàëåå øëåì
|
|
1910 if ( pHelmNum )
|
|
1911 {
|
|
1912 item_Helm = &pPlayers[uPlayerID]->pInventoryItems[pHelmNum-1];
|
|
1913 switch ( item_Helm->uItemID )
|
|
1914 {
|
|
1915 case 521:
|
|
1916 v125 = 11;
|
|
1917 break;
|
|
1918 case 522:
|
|
1919 v125 = 12;
|
|
1920 break;
|
|
1921 case 523:
|
|
1922 v125 = 13;
|
|
1923 break;
|
|
1924 case 532:
|
|
1925 v125 = 14;
|
|
1926 break;
|
|
1927 case 544:
|
|
1928 v125 = 15;
|
|
1929 break;
|
|
1930 default:
|
|
1931 v125 = item_Helm->uItemID - 89;
|
|
1932 }
|
|
1933 if ( v125 >= 0 && v125 < 16 )
|
|
1934 {
|
899
|
1935 pX_Helm = pPaperdoll_BodyX + paperdoll_Helm[pBodyComplection][v125][0];
|
|
1936 pY_Helm = pPaperdoll_BodyY + paperdoll_Helm[pBodyComplection][v125][1];
|
898
|
1937 if ( IsDwarf != 1 || item_Helm->uItemID != 92 )
|
899
|
1938 v127 = paperdoll_helm_texture[pSex][v125];
|
898
|
1939 else
|
|
1940 v127 = papredoll_dbrds[11];
|
|
1941 if ( item_Helm->uAttributes & 0xF0 )
|
|
1942 {
|
|
1943 if ( (item_Helm->uAttributes & 0xF0) == 16 )
|
|
1944 v180 = "sptext01";
|
|
1945 if ( (item_Helm->uAttributes & 0xF0) == 32 )
|
|
1946 v180 = "sp28a";
|
|
1947 if ( (item_Helm->uAttributes & 0xF0) == 64 )
|
|
1948 v180 = "sp30a";
|
|
1949 if ( (item_Helm->uAttributes & 0xF0) == 128 )
|
|
1950 v180 = "sp91a";
|
|
1951 v129 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v180, TEXTURE_16BIT_PALETTE)];
|
|
1952 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
1953 if ( dword_50C9A8 <= 0 )
|
|
1954 {
|
|
1955 dword_50C9A8 = 0;
|
|
1956 item_Helm->uAttributes &= 0xFu;
|
|
1957 ptr_50C9A4 = 0;
|
|
1958 }
|
|
1959 v130 = (double)GetTickCount() * 0.1;
|
|
1960 pRenderer->_4A63E6(pX_Helm, pY_Helm, (Texture *)(v127 != -1 ? (int)&pIcons_LOD->pTextures[v127] : 0), v129, (signed __int64)v130, 0, 255);
|
|
1961 }
|
|
1962 else
|
|
1963 {
|
|
1964 v131 = v127 + 1;
|
|
1965 v132 = (char *)&pIcons_LOD->pTextures[v127];
|
|
1966 if ( item_Helm->uAttributes & 2 )
|
|
1967 pRenderer->DrawTransparentRedShade(pX_Helm, pY_Helm, (Texture *)(v131 != 0 ? (int)v132 : 0));
|
|
1968 else
|
|
1969 {
|
|
1970 if ( item_Helm->uAttributes & 1 )
|
|
1971 pRenderer->DrawTextureTransparent(pX_Helm, pY_Helm, (Texture *)(v131 != 0 ? (int)v132 : 0));
|
706
|
1972 else
|
898
|
1973 pRenderer->DrawTransparentGreenShade(pX_Helm, pY_Helm, (Texture *)(v131 != 0 ? (int)v132 : 0));
|
|
1974 }
|
|
1975 }
|
706
|
1976 if ( !bRingsShownInCharScreen )
|
898
|
1977 pRenderer->DrawMaskToZBuffer(pX_Helm, pY_Helm, (Texture *)(v131 != 0 ? (int)v132 : 0), pHelmNum);
|
|
1978 }
|
|
1979 }
|
|
1980 pMainHandNum3 = pPlayers[uPlayerID]->pEquipment.uMainHand;//weapon in right hand
|
|
1981 if ( pMainHandNum3 )
|
|
1982 {
|
|
1983 item_MainHand3 = &pPlayers[uPlayerID]->pInventoryItems[pMainHandNum3 - 1];
|
|
1984 pX_MainHand3 = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][1][0] - pItemsTable->pItems[item_MainHand3->uItemID].uEquipX;
|
|
1985 pY_MainHand3 = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][1][1] - pItemsTable->pItems[item_MainHand3->uItemID].uEquipY;
|
|
1986 if ( item_MainHand3->uItemID == 64 )
|
|
1987 v181 = "item64v1";
|
|
1988 else
|
|
1989 v181 = pItemsTable->pItems[item_MainHand3->uItemID].pIconName;
|
|
1990 v138 = pIcons_LOD->LoadTexture(v181, TEXTURE_16BIT_PALETTE);
|
|
1991 if ( !(item_MainHand3->uAttributes & 0xF0) )
|
|
1992 {
|
|
1993 v142 = v138 + 1;
|
|
1994 v143 = (char *)&pIcons_LOD->pTextures[v138];
|
|
1995 if ( item_MainHand3->uAttributes & 2 )
|
|
1996 pRenderer->DrawTransparentRedShade(pX_MainHand3, pY_MainHand3, (Texture *)(v142 != 0 ? (int)v143 : 0));
|
|
1997 else
|
|
1998 {
|
|
1999 if ( item_MainHand3->uAttributes & 1 )
|
|
2000 pRenderer->DrawTextureTransparent(pX_MainHand3, pY_MainHand3, (Texture *)(v142 != 0 ? (int)v143 : 0));
|
|
2001 else
|
|
2002 pRenderer->DrawTransparentGreenShade(pX_MainHand3, pY_MainHand3, (Texture *)(v142 != 0 ? (int)v143 : 0));
|
|
2003 }
|
|
2004 }
|
|
2005 else
|
|
2006 {
|
|
2007 if ( (item_MainHand3->uAttributes & 0xF0) == 16 )
|
|
2008 v182 = "sptext01";
|
|
2009 if ( (item_MainHand3->uAttributes & 0xF0) == 32 )
|
|
2010 v182 = "sp28a";
|
|
2011 if ( (item_MainHand3->uAttributes & 0xF0) == 64 )
|
|
2012 v182 = "sp30a";
|
|
2013 if ( (item_MainHand3->uAttributes & 0xF0) == 128 )
|
|
2014 v182 = "sp91a";
|
|
2015 v140 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v182, TEXTURE_16BIT_PALETTE)];
|
|
2016 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
2017 if ( dword_50C9A8 <= 0 )
|
|
2018 {
|
|
2019 dword_50C9A8 = 0;
|
|
2020 item_MainHand3->uAttributes &= 0xFu;
|
|
2021 ptr_50C9A4 = 0;
|
706
|
2022 }
|
898
|
2023 v141 = (double)GetTickCount() * 0.1;
|
|
2024 pRenderer->_4A63E6(pX_MainHand3, pY_MainHand3, (Texture *)(v138 != -1 ? (int)&pIcons_LOD->pTextures[v138] : 0), v140, (signed __int64)v141, 0, 255);
|
|
2025 }
|
|
2026 if ( !bRingsShownInCharScreen )
|
|
2027 pRenderer->DrawMaskToZBuffer(pX_MainHand3, pY_MainHand3, (Texture *)(v142 != 0 ? (int)v143 : 0), pMainHandNum3);
|
|
2028 }
|
|
2029 pShieldNum = pPlayers[uPlayerID]->pEquipment.uShield;// äàëåå ùèò
|
|
2030 if ( pShieldNum )
|
|
2031 {
|
|
2032 item_Shield = &pPlayers[uPlayerID]->pInventoryItems[pShieldNum - 1];
|
|
2033 v149 = pItemsTable->pItems[item_Shield->uItemID].uSkillType;
|
|
2034 if ( v149 == 2 || v149 == 1 )
|
|
2035 {
|
|
2036 v151 = item_Shield->uItemID - 400;
|
|
2037 pX_Shield = 596;
|
|
2038 v245 = 1;
|
|
2039 switch ( item_Shield->uItemID )
|
|
2040 {
|
|
2041 case 400:
|
|
2042 pY_Shield = 86;
|
|
2043 break;
|
|
2044 case 403:
|
|
2045 pY_Shield = 28;
|
|
2046 break;
|
|
2047 case 415:
|
|
2048 pX_Shield = 595;
|
|
2049 pY_Shield = 33;
|
|
2050 break;
|
|
2051 default:
|
|
2052 pX_Shield = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[item_Shield->uItemID].uEquipX;
|
|
2053 pY_Shield = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[item_Shield->uItemID].uEquipY;
|
|
2054 break;
|
|
2055 }
|
|
2056 }
|
|
2057 else
|
|
2058 {
|
|
2059 v245 = 0;
|
|
2060 pX_Shield = pPaperdoll_BodyX + paperdoll_Weapon[pBodyComplection][0][0] - pItemsTable->pItems[item_Shield->uItemID].uEquipX;
|
|
2061 pY_Shield = pPaperdoll_BodyY + paperdoll_Weapon[pBodyComplection][0][1] - pItemsTable->pItems[item_Shield->uItemID].uEquipY;
|
|
2062 }
|
|
2063 v153 = pIcons_LOD->LoadTexture(pItemsTable->pItems[item_Shield->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
|
|
2064 if ( !(item_Shield->uAttributes & 0xF0) )
|
|
2065 {
|
|
2066 if ( item_Shield->uAttributes & 2 )
|
|
2067 pRenderer->DrawTransparentRedShade(pX_Shield, pY_Shield, (Texture *)(v153 != -1 ? (int)&pIcons_LOD->pTextures[v153] : 0));
|
|
2068 else
|
|
2069 {
|
|
2070 v160 = (char *)&pIcons_LOD->pTextures[v153];
|
|
2071 if ( !(item_Shield->uAttributes & 1) )
|
|
2072 pRenderer->DrawTransparentGreenShade(pX_Shield, pY_Shield, (Texture *)(v153 != -1 ? (int)v160 : 0));
|
|
2073 else
|
|
2074 pRenderer->DrawTextureTransparent(pX_Shield, pY_Shield, (Texture *)(v153 != -1 ? (int)v160 : 0));
|
|
2075 }
|
|
2076 }
|
|
2077 else
|
|
2078 {
|
|
2079 if ( (item_Shield->uAttributes & 0xF0) == 16 )
|
|
2080 v183 = "sptext01";
|
|
2081 if ( (item_Shield->uAttributes & 0xF0) == 32 )
|
|
2082 v183 = "sp28a";
|
|
2083 if ( (item_Shield->uAttributes & 0xF0) == 64 )
|
|
2084 v183 = "sp30a";
|
|
2085 if ( (item_Shield->uAttributes & 0xF0) == 128 )
|
|
2086 v183 = "sp91a";
|
|
2087 v157 = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(v183, TEXTURE_16BIT_PALETTE)];
|
|
2088 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
2089 if ( dword_50C9A8 <= 0 )
|
|
2090 {
|
|
2091 dword_50C9A8 = 0;
|
|
2092 item_Shield->uAttributes &= 0xFu;
|
|
2093 ptr_50C9A4 = 0;
|
|
2094 }
|
|
2095 v158 = (double)GetTickCount() * 0.1;
|
|
2096 pRenderer->_4A63E6(pX_Shield, pY_Shield, (Texture *)(v153 != -1 ? (int)&pIcons_LOD->pTextures[v153] : 0), v157, (signed __int64)v158, 0, 255);
|
|
2097 if ( v245 )
|
|
2098 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdollLeftEmptyHand[pBodyComplection][0],
|
|
2099 pPaperdoll_BodyY + pPaperdollLeftEmptyHand[pBodyComplection][1],
|
|
2100 (Texture *)(papredoll_dlhs[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dlhs[uPlayerID - 1]] : 0));
|
|
2101 }
|
|
2102 if ( !bRingsShownInCharScreen )
|
|
2103 pRenderer->DrawMaskToZBuffer(pX_Shield, pY_Shield, (Texture *)(v153 != -1 ? (int)&pIcons_LOD->pTextures[v153] : 0), pShieldNum);
|
|
2104 }
|
|
2105 }
|
|
2106 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_RightHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_RightHand[pBodyComplection][1],
|
|
2107 (Texture *)(papredoll_drhs[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_drhs[uPlayerID - 1]] : 0));
|
|
2108 pMainHandNum5 = pPlayers[uPlayerID]->pEquipment.uMainHand;
|
|
2109 if ( pMainHandNum5 )
|
|
2110 {
|
|
2111 item_MainHand5 = &pPlayers[uPlayerID]->pInventoryItems[pMainHandNum5 - 1];
|
|
2112 if ( pItemsTable->pItems[item_MainHand5->uItemID].uEquipType == 1 || pItemsTable->pItems[item_MainHand5->uItemID].uSkillType == 4 && !pPlayers[uPlayerID]->pEquipment.uShield )
|
|
2113 pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1],
|
|
2114 (Texture *)(papredoll_dlhus[uPlayerID - 1] != -1 ? (int)&pIcons_LOD->pTextures[papredoll_dlhus[uPlayerID - 1]] : 0));
|
|
2115 }
|
|
2116 if ( !bRingsShownInCharScreen )//ðèñîâàíèå ëóïû
|
|
2117 pRenderer->DrawTextureTransparent(603, 299, (Texture *)(uTextureID_MAGNIF_B != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_MAGNIF_B] : 0));
|
910
|
2118 pRenderer->DrawTextureTransparent(468, 0, (Texture *)(uTextureID_right_panel_loop != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_right_panel_loop] : 0));//îáðàìëåíèå
|
898
|
2119 }
|
706
|
2120
|
910
|
2121 //----- (0043E825) --------------------------------------------------------
|
|
2122 void __fastcall CharacterUI_DrawPaperdollWithRingOverlay(unsigned int uPlayerID)
|
|
2123 {
|
913
|
2124 int v3; // ecx@1
|
|
2125 unsigned int pItemTextureNum; // ebx@3
|
|
2126 int v9; // edi@17
|
|
2127 char v13; // sf@24
|
|
2128 unsigned __int8 v14; // of@24
|
|
2129 unsigned int pItemNum; // eax@25
|
|
2130 int v20; // edi@40
|
|
2131 int v21; // eax@41
|
|
2132 int v33; // esi@61
|
|
2133 const char *spell_texture_name; // [sp-8h] [bp-38h]@8
|
|
2134 Texture *spell_texture; // [sp+10h] [bp-20h]@14
|
|
2135 int v41; // [sp+10h] [bp-20h]@26
|
|
2136 unsigned int pY_Ring; // [sp+14h] [bp-1Ch]@3
|
|
2137 unsigned int pX_Ring; // [sp+18h] [bp-18h]@3
|
|
2138 int v48; // [sp+24h] [bp-Ch]@1
|
|
2139 ItemGen *item;
|
706
|
2140
|
910
|
2141 pIcons_LOD->LoadTexture("sptext01", TEXTURE_16BIT_PALETTE);
|
|
2142 CharacterUI_DrawPaperdoll(uPlayerID);
|
|
2143 pRenderer->DrawTextureTransparent(0x1D9u, 0, (Texture *)(uTextureID_BACKHAND != -1 ? &pIcons_LOD->pTextures[uTextureID_BACKHAND] : 0));
|
|
2144 pRenderer->DrawTextureTransparent(0x1D4u, 0, (Texture *)(uTextureID_right_panel_loop != -1 ? &pIcons_LOD->pTextures[uTextureID_right_panel_loop] : 0));
|
|
2145 pRenderer->DrawTextureIndexed(pCharacterScreen_DetalizBtn->uX, pCharacterScreen_DetalizBtn->uY,
|
|
2146 (Texture *)(uTextureID_detaliz_close_button != -1 ? &pIcons_LOD->pTextures[uTextureID_detaliz_close_button] : 0));
|
|
2147 v3 = 0;
|
|
2148 v48 = 0;
|
|
2149 do
|
|
2150 {
|
913
|
2151 pItemNum = pPlayers[uPlayerID]->pEquipment.uRings[v3];
|
910
|
2152 if ( pPlayers[uPlayerID]->pEquipment.uRings[v3] )
|
|
2153 {
|
913
|
2154 item = &pPlayers[uPlayerID]->pInventoryItems[pItemNum - 1];
|
910
|
2155 pX_Ring = pPaperdollRingsX[v3];
|
|
2156 pY_Ring = pPaperdollRingsY[v3];
|
913
|
2157 pItemTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[item->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
|
|
2158 if ( item->uAttributes & 0xF0 )
|
910
|
2159 {
|
913
|
2160 if ( (item->uAttributes & 0xF0) == 16 )
|
|
2161 spell_texture_name = "sptext01";
|
|
2162 if ( (item->uAttributes & 0xF0) == 32 )
|
|
2163 spell_texture_name = "sp28a";
|
|
2164 if ( (item->uAttributes & 0xF0) == 64 )
|
|
2165 spell_texture_name = "sp30a";
|
|
2166 if ( (item->uAttributes & 0xF0) == 128 )
|
|
2167 spell_texture_name = "sp91a";
|
|
2168 spell_texture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(spell_texture_name, TEXTURE_16BIT_PALETTE)];
|
910
|
2169 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
2170 if ( dword_50C9A8 <= 0 )
|
|
2171 {
|
|
2172 dword_50C9A8 = 0;
|
913
|
2173 item->uAttributes &= 0xFu;
|
910
|
2174 ptr_50C9A4 = 0;
|
|
2175 }
|
913
|
2176 pRenderer->_4A63E6(pX_Ring, pY_Ring, (Texture *)(pItemTextureNum != -1 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0), spell_texture, GetTickCount() * 0.1, 0, 255);
|
910
|
2177 }
|
|
2178 else
|
|
2179 {
|
913
|
2180 v9 = pItemTextureNum + 1;
|
|
2181 if ( item->uAttributes & 2 )
|
|
2182 pRenderer->DrawTransparentRedShade(pX_Ring, pY_Ring, (Texture *)(v9 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0));
|
910
|
2183 else
|
|
2184 {
|
913
|
2185 if ( (item->uAttributes & 1) == 0 )
|
|
2186 pRenderer->DrawTransparentGreenShade(pX_Ring, pY_Ring, (Texture *)(v9 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0));
|
910
|
2187 else
|
913
|
2188 pRenderer->DrawTextureTransparent(pX_Ring, pY_Ring, (Texture *)(v9 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0));
|
910
|
2189 }
|
913
|
2190 pRenderer->_4A601E(pX_Ring, pY_Ring, (Texture *)(v9 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0), pItemNum);
|
910
|
2191 }
|
|
2192 }
|
|
2193 v3++;
|
913
|
2194 pItemNum = pPlayers[uPlayerID]->pEquipment.uRings[v3];
|
910
|
2195 v14 = (v48 + 1) > 5;
|
|
2196 v13 = v48 - 4 < 0;
|
|
2197 v48++;
|
|
2198 }
|
|
2199 while ( (unsigned __int8)(v13 ^ v14) | (v48 == 4) );
|
913
|
2200 pItemNum = pPlayers[uPlayerID]->pEquipment.uAmulet;
|
|
2201 if ( pItemNum )
|
910
|
2202 {
|
|
2203 v41 = pPlayers[uPlayerID]->pEquipment.uAmulet;
|
913
|
2204 item = &pPlayers[uPlayerID]->pInventoryItems[pItemNum - 1];
|
|
2205 pItemTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[item->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
|
|
2206 if ( item->uAttributes & 0xF0 )
|
910
|
2207 {
|
913
|
2208 if ( (item->uAttributes & 0xF0) == 16 )
|
|
2209 spell_texture_name = "sptext01";
|
|
2210 if ( (item->uAttributes & 0xF0) == 32 )
|
|
2211 spell_texture_name = "sp28a";
|
|
2212 if ( (item->uAttributes & 0xF0) == 64 )
|
|
2213 spell_texture_name = "sp30a";
|
|
2214 if ( (item->uAttributes & 0xF0) == 128 )
|
|
2215 spell_texture_name = "sp91a";
|
|
2216 spell_texture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(spell_texture_name, TEXTURE_16BIT_PALETTE)];
|
910
|
2217 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
2218 if ( dword_50C9A8 <= 0 )
|
|
2219 {
|
|
2220 dword_50C9A8 = 0;
|
913
|
2221 item->uAttributes &= 0xFu;
|
910
|
2222 ptr_50C9A4 = 0;
|
|
2223 }
|
913
|
2224 pRenderer->_4A63E6(493, 91, (Texture *)(pItemTextureNum != -1 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0), spell_texture, GetTickCount() * 0.1, 0, 255);
|
910
|
2225 }
|
|
2226 else
|
|
2227 {
|
913
|
2228 v20 = pItemTextureNum + 1;
|
|
2229 if ( item->uAttributes & 2 )
|
910
|
2230 {
|
913
|
2231 v21 = 9 * pItemTextureNum;
|
910
|
2232 pRenderer->DrawTransparentRedShade(493, 91, (Texture *)(v20 != 0 ? (int)&pIcons_LOD->pTextures[8 * v21 / 0x48u] : 0));
|
|
2233 }
|
|
2234 else
|
|
2235 {
|
913
|
2236 v21 = 9 * pItemTextureNum;
|
|
2237 if ( !(item->uAttributes & 1) )
|
910
|
2238 pRenderer->DrawTransparentGreenShade(493, 91, (Texture *)(v20 != 0 ? (int)&pIcons_LOD->pTextures[8 * v21 / 0x48u] : 0));
|
|
2239 else
|
|
2240 pRenderer->DrawTextureTransparent(493, 91, (Texture *)(v20 != 0 ? (int)&pIcons_LOD->pTextures[8 * v21 / 0x48u] : 0));
|
|
2241 }
|
|
2242 pRenderer->_4A601E(493, 91, (Texture *)(v20 != 0 ? (int)&pIcons_LOD->pTextures[8 * v21 / 0x48u] : 0), v41);
|
|
2243 }
|
|
2244 }
|
913
|
2245 pItemNum = pPlayers[uPlayerID]->pEquipment.uGlove;
|
|
2246 if ( !pItemNum )
|
|
2247 return;
|
|
2248 item = &pPlayers[uPlayerID]->pInventoryItems[pItemNum - 1];
|
|
2249 pItemTextureNum = pIcons_LOD->LoadTexture(pItemsTable->pItems[item->uItemID].pIconName, TEXTURE_16BIT_PALETTE);
|
|
2250 if ( !(item->uAttributes & 0xF0) )
|
|
2251 {
|
|
2252 v33 = pItemTextureNum + 1;
|
|
2253 if ( item->uAttributes & 2 )
|
|
2254 pRenderer->DrawTransparentRedShade(586, 88, (Texture *)(v33 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0));
|
|
2255 else
|
|
2256 {
|
|
2257 if ( !(item->uAttributes & 1) )
|
|
2258 pRenderer->DrawTransparentGreenShade(586, 88, (Texture *)(v33 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0));
|
|
2259 else
|
|
2260 pRenderer->DrawTextureTransparent(586, 88, (Texture *)(v33 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0));
|
|
2261 }
|
|
2262 pRenderer->_4A601E(586, 88, (Texture *)(v33 != 0 ? (int)&pIcons_LOD->pTextures[pItemTextureNum] : 0), pItemNum);
|
|
2263 }
|
|
2264 else
|
|
2265 {
|
|
2266 if ( (item->uAttributes & 0xF0) == 16 )
|
|
2267 spell_texture_name = "sptext01";
|
|
2268 if ( (item->uAttributes & 0xF0) == 32 )
|
|
2269 spell_texture_name = "sp28a";
|
|
2270 if ( (item->uAttributes & 0xF0) == 64 )
|
|
2271 spell_texture_name = "sp30a";
|
|
2272 if ( (item->uAttributes & 0xF0) == 128 )
|
|
2273 spell_texture_name = "sp91a";
|
|
2274 spell_texture = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(spell_texture_name, TEXTURE_16BIT_PALETTE)];
|
|
2275 dword_50C9A8 -= pEventTimer->uTimeElapsed;
|
|
2276 if ( dword_50C9A8 <= 0 )
|
|
2277 {
|
|
2278 dword_50C9A8 = 0;
|
|
2279 item->uAttributes &= 0xFu;
|
|
2280 ptr_50C9A4 = 0;
|
|
2281 }
|
|
2282 pRenderer->_4A63E6(586, 88, pIcons_LOD->GetTexture(pItemTextureNum), spell_texture, GetTickCount() * 0.1, 0, 255);
|
|
2283 }
|
|
2284 }
|
706
|
2285
|
|
2286 //----- (0043BCA7) --------------------------------------------------------
|
|
2287 void CharacterUI_LoadPaperdollTextures()
|
|
2288 {
|
|
2289 int v0; // edi@7
|
|
2290 enum CHARACTER_RACE pRace; // ebx@7
|
|
2291 signed int pSex; // eax@7
|
|
2292 int v3; // ebx@10
|
|
2293 Player *pPlayer; // edi@12
|
|
2294 unsigned __int8 v5; // cl@12
|
|
2295 int v6; // edi@16
|
|
2296 unsigned int v7; // eax@16
|
|
2297 Player *pPlayer2; // ebx@16
|
|
2298 char *v9; // ebx@16
|
|
2299 char v10; // al@16
|
|
2300 signed int v11; // edi@21
|
|
2301 unsigned int v22; // eax@76
|
|
2302 int v23; // ecx@76
|
|
2303 unsigned int v24; // eax@78
|
|
2304 int v25; // ecx@78
|
|
2305 int v26; // ebx@79
|
|
2306 unsigned int v27; // eax@80
|
|
2307 int v28; // ecx@80
|
|
2308 int v30; // [sp+10h] [bp-28h]@5
|
|
2309 signed int v32; // [sp+10h] [bp-28h]@75
|
|
2310 signed int v33; // [sp+10h] [bp-28h]@77
|
|
2311 int v34; // [sp+10h] [bp-28h]@79
|
899
|
2312 int pItemTXTNum; // [sp+14h] [bp-24h]@75
|
706
|
2313 int v37; // [sp+14h] [bp-24h]@77
|
|
2314 signed int v38; // [sp+14h] [bp-24h]@79
|
|
2315 int v42; // [sp+20h] [bp-18h]@6
|
|
2316 int v43; // [sp+20h] [bp-18h]@73
|
|
2317 char pContainer[128]; // [sp+24h] [bp-14h]@12
|
|
2318
|
|
2319 uTextureID_MAGNIF_B = pIcons_LOD->LoadTexture("MAGNIF-B", TEXTURE_16BIT_PALETTE);
|
|
2320 //if ( !pParty->uAlignment || pParty->uAlignment == 1 || pParty->uAlignment == 2 )
|
|
2321 uTextureID_BACKDOLL = pIcons_LOD->LoadTexture("BACKDOLL", TEXTURE_16BIT_PALETTE);
|
910
|
2322 uTextureID_right_panel_loop = uTextureID_right_panel;
|
706
|
2323 v30 = 0;
|
|
2324 uTextureID_BACKHAND = pIcons_LOD->LoadTexture("BACKHAND", TEXTURE_16BIT_PALETTE);
|
910
|
2325 uTextureID_detaliz_close_button = uExitCancelTextureId;
|
706
|
2326 do
|
|
2327 {
|
|
2328 v42 = v30 + 1;
|
|
2329 if ( sub_43EE77_ProbablyIfUnderwaterSuitIsEquipped(v30 + 1) )
|
|
2330 {
|
|
2331 v0 = v30;
|
|
2332 pRace = pPlayers[v30 + 1]->GetRace();
|
|
2333 pSex = pPlayers[v30 + 1]->GetSexByVoice();
|
|
2334 if ( pRace && pRace != 1 && pRace != 2 )//race == 3
|
|
2335 v3 = (pSex != 0) + 3;
|
|
2336 else
|
|
2337 v3 = (pSex != 0) + 1;
|
|
2338 wsprintfA(pContainer, "pc23v%dBod", v3);
|
|
2339 papredoll_dbods[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);//Body texture
|
|
2340 wsprintfA(pContainer, "pc23v%dlad", v3);
|
|
2341 papredoll_dlads[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Hand
|
|
2342 wsprintfA(pContainer, "pc23v%dlau", v3);
|
|
2343 papredoll_dlaus[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Hand2
|
|
2344 wsprintfA(pContainer, "pc23v%drh", v3);
|
|
2345 papredoll_drhs[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Right Hand
|
|
2346 wsprintfA(pContainer, "pc23v%dlh", v3);
|
|
2347 papredoll_dlhs[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);// Left Fist
|
|
2348 wsprintfA(pContainer, "pc23v%dlhu", v3);
|
|
2349 papredoll_dlhus[v0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); // Left Fist 2
|
|
2350 pPlayer = pPlayers[v0 + 1];
|
|
2351 v5 = pPlayer->uFace;
|
|
2352 if ( v5 == 12 || v5 == 13 )
|
|
2353 papredoll_dbrds[(char)v5] = 0;
|
|
2354 papredoll_flying_feet[pPlayer->uFace] = 0;
|
|
2355 IsPlayerWearingWatersuit[v30 + 1] = 1;
|
|
2356 }
|
|
2357 else
|
|
2358 {
|
|
2359 v6 = v30;
|
|
2360 papredoll_dbods[v30] = pIcons_LOD->LoadTexture(dbod_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
|
|
2361 papredoll_dlads[v30] = pIcons_LOD->LoadTexture(dlad_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
|
|
2362 papredoll_dlaus[v30] = pIcons_LOD->LoadTexture(dlau_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
|
|
2363 papredoll_drhs[v30] = pIcons_LOD->LoadTexture(drh_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
|
|
2364 papredoll_dlhs[v30] = pIcons_LOD->LoadTexture(dlh_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
|
|
2365 v7 = pIcons_LOD->LoadTexture(dlhu_texnames_by_face[pPlayers[v30 + 1]->uFace], TEXTURE_16BIT_PALETTE);
|
|
2366 pPlayer2 = pPlayers[v30 + 1];
|
|
2367 papredoll_dlhus[v30] = v7;
|
|
2368 v9 = (char *)&pPlayer2->uFace;
|
|
2369 v10 = *v9;
|
|
2370 if ( *v9 == 12 || v10 == 13 )
|
|
2371 {
|
|
2372 wsprintfA(pContainer, "pc%02dbrd", v10 + 1);
|
|
2373 v9 = (char *)&pPlayers[v6 + 1]->uFace;
|
|
2374 papredoll_dbrds[*v9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2375 }
|
|
2376 wsprintfA(pContainer, "item281pc%02d", *v9 + 1);
|
|
2377 papredoll_flying_feet[pPlayers[v6 + 1]->uFace] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2378 IsPlayerWearingWatersuit[v30 + 1] = 0;
|
|
2379 }
|
|
2380 ++v30;
|
|
2381 }
|
|
2382 while ( v42 < 4 );
|
|
2383 uTextureID_ar_up_up = pIcons_LOD->LoadTexture("ar_up_up", TEXTURE_16BIT_PALETTE);
|
|
2384 uTextureID_ar_up_dn = pIcons_LOD->LoadTexture("ar_up_dn", TEXTURE_16BIT_PALETTE);
|
|
2385 uTextureID_ar_dn_up = pIcons_LOD->LoadTexture("ar_dn_up", TEXTURE_16BIT_PALETTE);
|
|
2386 uTextureID_ar_dn_dn = pIcons_LOD->LoadTexture("ar_dn_dn", TEXTURE_16BIT_PALETTE);
|
|
2387 papredoll_dbrds[9] = pIcons_LOD->LoadTexture("ib-cd1-d", TEXTURE_16BIT_PALETTE);
|
|
2388 papredoll_dbrds[7] = pIcons_LOD->LoadTexture("ib-cd2-d", TEXTURE_16BIT_PALETTE);
|
|
2389 papredoll_dbrds[5] = pIcons_LOD->LoadTexture("ib-cd3-d", TEXTURE_16BIT_PALETTE);
|
|
2390 papredoll_dbrds[3] = pIcons_LOD->LoadTexture("ib-cd4-d", TEXTURE_16BIT_PALETTE);
|
|
2391 papredoll_dbrds[1] = pIcons_LOD->LoadTexture("ib-cd5-d", TEXTURE_16BIT_PALETTE);
|
899
|
2392 for ( v11 = 0; v11 < 54; ++v11 )// test equipment
|
706
|
2393 {
|
899
|
2394 party_has_equipment[v11] = 0;
|
706
|
2395 if ( pParty->pPickedItem.uItemID != v11 + 66 )
|
|
2396 {
|
899
|
2397 for ( uint i = 0; i < 4; ++i)
|
706
|
2398 {
|
899
|
2399 if ( Player_has_item(v11 + 66, &pParty->pPlayers[i], 0) )
|
|
2400 party_has_equipment[v11] = 1;
|
706
|
2401 }
|
|
2402 }
|
|
2403 }
|
|
2404 memset(byte_5111F6, 0, 16);
|
|
2405 for (uint i = 0; i < 4; ++i)
|
|
2406 {
|
|
2407 auto player = pParty->pPlayers + i;
|
|
2408
|
899
|
2409 if (Player_has_item(ITEM_ARTICACT_GOVERNONS_ARMOR, player, 1)) byte_5111F6[0] = 1;
|
|
2410 if (Player_has_item(ITEM_ARTIFACT_YORUBA, player, 1)) byte_5111F6[1] = 1;
|
|
2411 if (Player_has_item(ITEM_RELIC_HARECS_LEATHER, player, 1)) byte_5111F6[2] = 1;
|
|
2412 if (Player_has_item(ITEM_ARTIFACT_LEAGUE_BOOTS, player, 1)) byte_5111F6[3] = 1;
|
|
2413 if (Player_has_item(ITEM_RELIC_TALEDONS_HELM, player, 1)) byte_5111F6[4] = 1;
|
|
2414 if (Player_has_item(ITEM_RELIC_SCHOLARS_CAP, player, 1)) byte_5111F6[5] = 1;
|
|
2415 if (Player_has_item(ITEM_RELIC_PHYNAXIAN_CROWN, player, 1)) byte_5111F6[6] = 1;
|
|
2416 if (Player_has_item(ITEM_ARTIFACT_MINDS_EYE, player, 1)) byte_5111F6[7] = 1;
|
|
2417 if (Player_has_item(ITEM_RARE_SHADOWS_MASK, player, 1)) byte_5111F6[8] = 1;
|
|
2418 if (Player_has_item(ITEM_RILIC_TITANS_BELT, player, 1)) byte_5111F6[9] = 1;
|
|
2419 if (Player_has_item(ITEM_ARTIFACT_HEROS_BELT, player, 1)) byte_5111F6[10] = 1;
|
|
2420 if (Player_has_item(ITEM_RELIC_TWILIGHT, player, 1)) byte_5111F6[11] = 1;
|
|
2421 if (Player_has_item(ITEM_ARTIFACT_CLOAK_OF_THE_SHEEP, player, 1)) byte_5111F6[12] = 1;
|
|
2422 if (Player_has_item(ITEM_RARE_SUN_CLOAK, player, 1)) byte_5111F6[13] = 1;
|
|
2423 if (Player_has_item(ITEM_RARE_MOON_CLOAK, player, 1)) byte_5111F6[14] = 1;
|
|
2424 if (Player_has_item(ITEM_RARE_VAMPIRES_CAPE, player, 1)) byte_5111F6[15] = 1;
|
|
2425 if (Player_has_item(ITEM_ELVEN_CHAINMAIL, player, 1)) byte_5111F6[16] = 1;
|
706
|
2426 }
|
|
2427 for (uint i = 0; i < 2; ++i)
|
|
2428 {
|
899
|
2429 for ( uint j = 0; j < 5; ++j )//Belt
|
706
|
2430 {
|
899
|
2431 GetItemTextureFilename(pContainer, j + 100, i + 1, 0);
|
|
2432 paperdoll_belt_texture[i][j] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
706
|
2433 }
|
899
|
2434 GetItemTextureFilename(pContainer, 535, i + 1, 0);
|
|
2435 paperdoll_belt_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2436 for ( uint j = 0; j < 11; ++j )//Helm
|
706
|
2437 {
|
899
|
2438 GetItemTextureFilename(pContainer, j + 89, i + 1, 0);
|
|
2439 paperdoll_helm_texture[i][j] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
706
|
2440 }
|
899
|
2441 GetItemTextureFilename(pContainer, 521, i + 1, 0);
|
|
2442 paperdoll_helm_texture[i][11] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2443 GetItemTextureFilename(pContainer, 522, i + 1, 0);
|
|
2444 paperdoll_helm_texture[i][12] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2445 GetItemTextureFilename(pContainer, 523, i + 1, 0);
|
|
2446 paperdoll_helm_texture[i][13] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2447 GetItemTextureFilename(pContainer, 532, i + 1, 0);
|
|
2448 paperdoll_helm_texture[i][14] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2449 GetItemTextureFilename(pContainer, 544, i + 1, 0);
|
|
2450 paperdoll_helm_texture[i][15] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
706
|
2451 if ( _43ED6F_check_party_races(true) )
|
|
2452 papredoll_dbrds[11] = pIcons_LOD->LoadTexture("item092v3", TEXTURE_16BIT_PALETTE);
|
|
2453 }
|
|
2454 v43 = 0;
|
|
2455 for (uint i = 0; i < 4; ++i)
|
|
2456 {
|
|
2457 if ( sub_43EDB9_get_some_race_sex_relation_2(i) )
|
|
2458 {
|
899
|
2459 GetItemTextureFilename(pContainer, 524, i + 1, 0);
|
|
2460 paperdoll_belt_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);//Titans belt
|
|
2461 pItemTXTNum = 66;
|
|
2462 for ( v32 = 0; v32 < 13; ++v32 )//simple armor
|
706
|
2463 {
|
899
|
2464 GetItemTextureFilename(pContainer, pItemTXTNum, i + 1, 0);
|
|
2465 paperdoll_armor_texture[i][v32][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2466 GetItemTextureFilename(pContainer, pItemTXTNum, i + 1, 1);
|
|
2467 paperdoll_armor_texture[i][v32][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2468 GetItemTextureFilename(pContainer, pItemTXTNum, i + 1, 2);
|
|
2469 paperdoll_armor_texture[i][v32][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2470 pItemTXTNum++;
|
706
|
2471 }
|
899
|
2472 GetItemTextureFilename(pContainer, 516, i + 1, 0);//artefacts
|
|
2473 paperdoll_armor_texture[i][v32][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2474 GetItemTextureFilename(pContainer, 516, i + 1, 1);
|
|
2475 paperdoll_armor_texture[i][v32][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2476 GetItemTextureFilename(pContainer, 516, i + 1, 2);
|
|
2477 paperdoll_armor_texture[i][v32][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2478 GetItemTextureFilename(pContainer, 505, i + 1, 0);
|
|
2479 paperdoll_armor_texture[i][v32 + 1][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2480 GetItemTextureFilename(pContainer, 505, i + 1, 1);
|
|
2481 paperdoll_armor_texture[i][v32 + 1][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2482 GetItemTextureFilename(pContainer, 505, i + 1, 2);
|
|
2483 paperdoll_armor_texture[i][v32 + 1][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2484 GetItemTextureFilename(pContainer, 504, i + 1, 0);
|
|
2485 paperdoll_armor_texture[i][v32 + 2][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2486 GetItemTextureFilename(pContainer, 504, i + 1, 1);
|
|
2487 paperdoll_armor_texture[i][v32 + 2][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2488 GetItemTextureFilename(pContainer, 504, i + 1, 2);
|
|
2489 paperdoll_armor_texture[i][v32 + 2][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2490 GetItemTextureFilename(pContainer, 533, i + 1, 0);
|
|
2491 paperdoll_armor_texture[i][v32 + 3][0] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2492 GetItemTextureFilename(pContainer, 533, i + 1, 1);
|
|
2493 paperdoll_armor_texture[i][v32 + 3][1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2494 GetItemTextureFilename(pContainer, 533, i + 1, 2);
|
|
2495 paperdoll_armor_texture[i][v32 + 3][2] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2496 for ( v33 = 0; v33 < 5; ++v33 )//boots
|
706
|
2497 {
|
899
|
2498 GetItemTextureFilename(pContainer, v33 + 115, i + 1, 0);
|
|
2499 paperdoll_boots_texture[i][v33] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2500 }
|
|
2501 GetItemTextureFilename(pContainer, 512, i + 1, 0);
|
|
2502 paperdoll_boots_texture[i][v33] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2503 for ( v38 = 0; v38 < 5; ++v38 )//Cloak
|
|
2504 {
|
|
2505 GetItemTextureFilename(pContainer, v38 + 105, i + 1, 0);
|
|
2506 paperdoll_cloak_texture[i][v38] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2507 GetItemTextureFilename(pContainer, v38 + 105, i + 1, 1);
|
|
2508 paperdoll_cloak_collar_texture[i][v38] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
706
|
2509 }
|
899
|
2510 GetItemTextureFilename(pContainer, 525, i + 1, 0);
|
|
2511 paperdoll_cloak_texture[i][5] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2512 GetItemTextureFilename(pContainer, 530, i + 1, 0);
|
|
2513 paperdoll_cloak_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2514 GetItemTextureFilename(pContainer, 547, i + 1, 0);
|
|
2515 paperdoll_cloak_texture[i][7] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2516 GetItemTextureFilename(pContainer, 548, i + 1, 0);
|
|
2517 paperdoll_cloak_texture[i][8] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2518 GetItemTextureFilename(pContainer, 550, i + 1, 0);
|
|
2519 paperdoll_cloak_texture[i][9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2520 GetItemTextureFilename(pContainer, 525, i + 1, 1);
|
|
2521 paperdoll_cloak_collar_texture[i][5] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2522 GetItemTextureFilename(pContainer, 530, i + 1, 1);
|
|
2523 paperdoll_cloak_collar_texture[i][6] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2524 GetItemTextureFilename(pContainer, 547, i + 1, 1);
|
|
2525 paperdoll_cloak_collar_texture[i][7] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2526 GetItemTextureFilename(pContainer, 548, i + 1, 1);
|
|
2527 paperdoll_cloak_collar_texture[i][8] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
|
2528 GetItemTextureFilename(pContainer, 550, i + 1, 1);
|
|
2529 paperdoll_cloak_collar_texture[i][9] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE);
|
706
|
2530 }
|
|
2531 else
|
|
2532 {
|
|
2533 v26 = v43;
|
|
2534 }
|
|
2535 v43 = v26 + 40;
|
|
2536 }
|
|
2537 }
|
|
2538
|
|
2539 //----- (00419401) --------------------------------------------------------
|
|
2540 void __cdecl CharacterUI_SkillScreen_Draw()
|
|
2541 {
|
|
2542 unsigned int v0; // ecx@3
|
|
2543 GUIButton *pButton; // eax@3
|
|
2544 GUIFont *v2; // eax@8
|
|
2545 unsigned int v3; // esi@8
|
|
2546 int v4; // eax@10
|
|
2547 unsigned int v5; // esi@14
|
|
2548 int v6; // eax@17
|
|
2549 unsigned int v7; // esi@19
|
|
2550 int v8; // eax@21
|
|
2551 unsigned int v9; // esi@25
|
|
2552 int v10; // eax@27
|
|
2553 int a2; // [sp+10h] [bp-14h]@1
|
|
2554 int v12; // [sp+14h] [bp-10h]@8
|
|
2555 int v13; // [sp+14h] [bp-10h]@19
|
|
2556 int *v14; // [sp+18h] [bp-Ch]@8
|
|
2557 int *v15; // [sp+18h] [bp-Ch]@14
|
|
2558 int *v16; // [sp+18h] [bp-Ch]@19
|
|
2559 int *v17; // [sp+18h] [bp-Ch]@25
|
|
2560 Player *v18; // [sp+1Ch] [bp-8h]@8
|
|
2561 int a5; // [sp+20h] [bp-4h]@8
|
|
2562
|
|
2563 a2 = 0;
|
|
2564 if ( dword_507CC0 )
|
|
2565 sub_4196A0();
|
|
2566 v0 = uActiveCharacter;
|
|
2567 dword_507CC0 = uActiveCharacter;
|
|
2568 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext )
|
832
|
2569 {
|
|
2570 if ( pButton->msg == UIMSG_InventoryLeftClick )
|
706
|
2571 {
|
|
2572 dword_50698C = pButton->uX;
|
|
2573 dword_506988 = pButton->uY;
|
|
2574 dword_506984 = pButton->uZ;
|
|
2575 dword_506980 = pButton->uW;
|
|
2576 pButton->uW = 0;
|
|
2577 pButton->uZ = 0;
|
|
2578 pButton->uY = 0;
|
|
2579 pButton->uX = 0;
|
|
2580 v0 = uActiveCharacter;
|
|
2581 }
|
|
2582 }
|
|
2583 v12 = 0;
|
|
2584 a5 = pGUIWindow_CurrentMenu->uNumControls;
|
|
2585 v18 = &pParty->pPlayers[v0-1];
|
|
2586 v2 = pFontLucida;
|
|
2587 v14 = pWeaponSkills;
|
|
2588 v3 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
|
|
2589 do
|
|
2590 {
|
|
2591 if ( v18->pActiveSkills[*v14] & 0x3F )//crash
|
|
2592 {
|
|
2593 v4 = LOBYTE(v2->uFontHeight);
|
|
2594 v3 = v3 + v4 - 3;
|
|
2595 ++a2;
|
|
2596 ++v12;
|
832
|
2597 pGUIWindow_CurrentMenu->CreateButton(0x18u, v3, 0xCCu, v4 - 3, 3, *v14 | 0x8000, UIMSG_SkillUp, *v14, 0, "", 0, 0);
|
706
|
2598 v2 = pFontLucida;
|
|
2599 }
|
|
2600 ++v14;
|
|
2601 }
|
|
2602 while ( v14 <= &pWeaponSkills[8] );
|
|
2603 if ( !v12 )
|
|
2604 v3 = v3 + LOBYTE(v2->uFontHeight) - 3;
|
|
2605 v15 = pMagicSkills;
|
|
2606 v5 = v3 + 2 * LOBYTE(v2->uFontHeight) - 6;
|
|
2607 do
|
|
2608 {
|
|
2609 if ( v18->pActiveSkills[*v15] & 0x3F && a2 < 15 )
|
|
2610 {
|
|
2611 v6 = LOBYTE(v2->uFontHeight);
|
|
2612 v5 = v5 + v6 - 3;
|
|
2613 ++a2;
|
832
|
2614 pGUIWindow_CurrentMenu->CreateButton(0x18u, v5, 0xCCu, v6 - 3, 3, *v15 | 0x8000, UIMSG_SkillUp, *v15, 0, "", 0, 0);
|
706
|
2615 v2 = pFontLucida;
|
|
2616 }
|
|
2617 ++v15;
|
|
2618 }
|
|
2619 while ( v15 <= &pMagicSkills[8] );
|
|
2620 v13 = 0;
|
|
2621 v16 = pArmorSkills;
|
|
2622 v7 = 2 * LOBYTE(v2->uFontHeight) + 13;
|
|
2623 do
|
|
2624 {
|
|
2625 if ( v18->pActiveSkills[*v16] & 0x3F )
|
|
2626 {
|
|
2627 v8 = LOBYTE(v2->uFontHeight);
|
|
2628 v7 = v7 + v8 - 3;
|
|
2629 ++a2;
|
|
2630 ++v13;
|
832
|
2631 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v7, 0xCCu, v8 - 3, 3, *v16 | 0x8000, UIMSG_SkillUp, *v16, 0, "", 0, 0);
|
706
|
2632 v2 = pFontLucida;
|
|
2633 }
|
|
2634 ++v16;
|
|
2635 }
|
|
2636 while ( v16 <= &pArmorSkills[4] );
|
|
2637 if ( !v13 )
|
|
2638 v7 = v7 + LOBYTE(v2->uFontHeight) - 3;
|
|
2639 v17 = pMiscSkills;
|
|
2640 v9 = v7 + 2 * LOBYTE(v2->uFontHeight) - 6;
|
|
2641 do
|
|
2642 {
|
|
2643 if ( v18->pActiveSkills[*v17] & 0x3F )
|
|
2644 {
|
|
2645 v10 = LOBYTE(v2->uFontHeight);
|
|
2646 v9 = v9 + v10 - 3;
|
|
2647 ++a2;
|
832
|
2648 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v9, 0xCCu, v10 - 3, 3, *v17 | 0x8000, UIMSG_SkillUp, *v17, 0, "", 0, 0);
|
706
|
2649 v2 = pFontLucida;
|
|
2650 }
|
|
2651 ++v17;
|
|
2652 }
|
|
2653 while ( v17 <= &pMiscSkills[11] );
|
|
2654 if ( a2 )
|
|
2655 pGUIWindow_CurrentMenu->_41D08F(a2, 1, 0, a5);
|
|
2656 }
|
|
2657
|
|
2658 //----- (00418511) --------------------------------------------------------
|
|
2659 char __fastcall CharacterUI_StatsTab_Draw(unsigned int uPlayerID)
|
|
2660 {
|
|
2661 Player *pPlayer; // edi@1
|
|
2662 unsigned int v2; // eax@1
|
|
2663 unsigned int v3; // eax@1
|
|
2664 unsigned int v4; // eax@2
|
|
2665 int v5; // ST20_4@4
|
|
2666 int v6; // ST1C_4@4
|
|
2667 int v7; // ebp@4
|
|
2668 int v8; // eax@4
|
|
2669 unsigned int v9; // eax@4
|
|
2670 int v10; // ST34_4@4
|
|
2671 int v11; // ST20_4@4
|
|
2672 int v12; // ST1C_4@4
|
|
2673 int v13; // ebp@4
|
|
2674 int v14; // eax@4
|
|
2675 unsigned int v15; // eax@4
|
|
2676 int v16; // ST34_4@4
|
|
2677 int v17; // ST20_4@4
|
|
2678 int v18; // ST1C_4@4
|
|
2679 int v19; // ebp@4
|
|
2680 int v20; // eax@4
|
|
2681 unsigned int v21; // eax@4
|
|
2682 int v22; // ST34_4@4
|
|
2683 int v23; // ST20_4@4
|
|
2684 int v24; // ST1C_4@4
|
|
2685 int v25; // ebp@4
|
|
2686 int v26; // eax@4
|
|
2687 unsigned int v27; // eax@4
|
|
2688 int v28; // ST34_4@4
|
|
2689 int v29; // ST20_4@4
|
|
2690 int v30; // ST1C_4@4
|
|
2691 int v31; // ebp@4
|
|
2692 int v32; // eax@4
|
|
2693 unsigned int v33; // eax@4
|
|
2694 int v34; // ST34_4@4
|
|
2695 int v35; // ST20_4@4
|
|
2696 int v36; // ST1C_4@4
|
|
2697 int v37; // ebp@4
|
|
2698 int v38; // eax@4
|
|
2699 unsigned int v39; // eax@4
|
|
2700 int v40; // ST34_4@4
|
|
2701 int v41; // ST20_4@4
|
|
2702 int v42; // ST1C_4@4
|
|
2703 int v43; // ebp@4
|
|
2704 int v44; // eax@4
|
|
2705 unsigned int v45; // eax@4
|
|
2706 int v46; // ebp@4
|
|
2707 signed int v47; // ST20_4@6
|
|
2708 int v48; // ST1C_4@6
|
|
2709 signed int v49; // eax@6
|
|
2710 unsigned int v50; // eax@6
|
|
2711 int v51; // ST20_4@8
|
|
2712 int v52; // ST1C_4@8
|
|
2713 int v53; // eax@8
|
|
2714 unsigned int v54; // eax@8
|
|
2715 int v55; // ST34_4@8
|
|
2716 int v56; // ST20_4@8
|
|
2717 int v57; // ST1C_4@8
|
|
2718 int v58; // ebp@8
|
|
2719 int v59; // eax@8
|
|
2720 unsigned int v60; // eax@8
|
|
2721 unsigned int v61; // ebp@8
|
|
2722 unsigned int v62; // eax@8
|
|
2723 char *v63; // ST20_4@8
|
|
2724 signed int v64; // eax@8
|
|
2725 unsigned int v65; // ebp@8
|
|
2726 unsigned __int8 v66; // al@8
|
|
2727 char *v67; // eax@9
|
|
2728 unsigned int v68; // ST20_4@11
|
|
2729 unsigned int v69; // ST1C_4@11
|
|
2730 signed int v70; // ebp@11
|
|
2731 signed int v71; // eax@11
|
|
2732 unsigned int v72; // eax@11
|
|
2733 int v73; // ST20_4@13
|
|
2734 int v74; // ST1C_4@13
|
|
2735 int v75; // ebp@13
|
|
2736 int v76; // eax@13
|
|
2737 unsigned int v77; // eax@13
|
|
2738 char *v78; // ecx@14
|
|
2739 int v79; // ST20_4@16
|
|
2740 char *v80; // ST40_4@16
|
|
2741 unsigned int v81; // eax@16
|
|
2742 int v82; // ST34_4@16
|
|
2743 int v83; // eax@16
|
|
2744 int v84; // ST34_4@16
|
|
2745 char *v85; // eax@16
|
|
2746 int v86; // ST34_4@16
|
|
2747 int v87; // eax@16
|
|
2748 int v88; // ST34_4@16
|
|
2749 char *v89; // eax@16
|
|
2750 int v90; // eax@16
|
|
2751 int v91; // ST20_4@19
|
|
2752 unsigned int v92; // eax@19
|
|
2753 int v93; // eax@19
|
|
2754 int v94; // ST20_4@22
|
|
2755 unsigned int v95; // eax@22
|
|
2756 int v96; // eax@22
|
|
2757 int v97; // ST20_4@25
|
|
2758 unsigned int v98; // eax@25
|
|
2759 int v99; // eax@25
|
|
2760 int v100; // ST20_4@27
|
|
2761 unsigned int v101; // eax@27
|
|
2762 int v102; // eax@27
|
|
2763 int v103; // ST20_4@30
|
|
2764 unsigned int v104; // eax@30
|
|
2765 char *v105; // ST20_4@32
|
|
2766 unsigned int v106; // eax@32
|
|
2767 int v107; // eax@33
|
|
2768 int v108; // ST20_4@36
|
|
2769 unsigned int v109; // eax@36
|
|
2770 char *v110; // ST20_4@38
|
|
2771 unsigned int v111; // eax@38
|
|
2772 int uY; // [sp+10h] [bp-10h]@6
|
|
2773 int uYa; // [sp+10h] [bp-10h]@11
|
|
2774 int uYb; // [sp+10h] [bp-10h]@13
|
|
2775 int uYc; // [sp+10h] [bp-10h]@16
|
|
2776 int uYd; // [sp+10h] [bp-10h]@19
|
|
2777 int uYe; // [sp+10h] [bp-10h]@22
|
|
2778 int uYf; // [sp+10h] [bp-10h]@25
|
|
2779 int uYg; // [sp+10h] [bp-10h]@27
|
|
2780 int uYh; // [sp+10h] [bp-10h]@33
|
|
2781 const char *a2; // [sp+14h] [bp-Ch]@4
|
|
2782 const char *a2a; // [sp+14h] [bp-Ch]@6
|
|
2783 const char *a2b; // [sp+14h] [bp-Ch]@11
|
|
2784 const char *a2c; // [sp+14h] [bp-Ch]@16
|
|
2785 const char *a2d; // [sp+14h] [bp-Ch]@19
|
|
2786 const char *a2e; // [sp+14h] [bp-Ch]@22
|
|
2787 const char *a2f; // [sp+14h] [bp-Ch]@25
|
|
2788 const char *a2g; // [sp+14h] [bp-Ch]@27
|
|
2789 const char *a2h; // [sp+14h] [bp-Ch]@33
|
|
2790 int v131; // [sp+18h] [bp-8h]@16
|
|
2791 int v132; // [sp+18h] [bp-8h]@19
|
|
2792 int v133; // [sp+18h] [bp-8h]@22
|
|
2793 int v134; // [sp+18h] [bp-8h]@25
|
|
2794 int v135; // [sp+18h] [bp-8h]@27
|
|
2795 int v136; // [sp+18h] [bp-8h]@33
|
|
2796 int v137; // [sp+1Ch] [bp-4h]@27
|
|
2797 int v138; // [sp+1Ch] [bp-4h]@33
|
|
2798
|
|
2799 pPlayer = &pParty->pPlayers[uPlayerID-1];
|
|
2800 v2 = pIcons_LOD->LoadTexture("fr_stats", TEXTURE_16BIT_PALETTE);
|
|
2801 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0));
|
|
2802 v3 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
|
|
2803 sprintf(pTmpBuf, "\f%05d", v3);
|
809
|
2804 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->classType]);//^Pi[%s] %s
|
706
|
2805 strcat(pTmpBuf, pTmpBuf2);
|
|
2806 if ( pPlayer->uSkillPoints )
|
|
2807 v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
|
|
2808 else
|
|
2809 v4 = 0xFFFFu;
|
|
2810 sprintf(pTmpBuf2, "\f00000\r180%s: \f%05d%d\f00000\n\n\n", pGlobalTXT_LocalizationStrings[207], v4, pPlayer->uSkillPoints);//Skill points
|
|
2811 strcat(pTmpBuf, pTmpBuf2);
|
|
2812 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf, 0, 0, 0);
|
|
2813 v5 = pPlayer->GetBaseStrength();
|
|
2814 v6 = pPlayer->GetActualMight();
|
|
2815 v7 = pPlayer->GetBaseStrength();
|
|
2816 v8 = pPlayer->GetActualMight();
|
|
2817 v9 = UI_GetHealthManaStringColor(v8, v7);
|
|
2818 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144], v9, v6, v5);//Might
|
|
2819 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 53, 0, pTmpBuf, 0, 0, 0);
|
|
2820 v10 = LOBYTE(pFontArrus->uFontHeight) + 51;
|
|
2821 v11 = pPlayer->GetBaseIntelligence();
|
|
2822 v12 = pPlayer->GetActualIntelligence();
|
|
2823 v13 = pPlayer->GetBaseIntelligence();
|
|
2824 v14 = pPlayer->GetActualIntelligence();
|
|
2825 v15 = UI_GetHealthManaStringColor(v14, v13);
|
|
2826 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116], v15, v12, v11);//Intellect
|
|
2827 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
|
|
2828 v16 = LOBYTE(pFontArrus->uFontHeight) + v10 - 2;
|
|
2829 v17 = pPlayer->GetBaseWillpower();
|
|
2830 v18 = pPlayer->GetActualWillpower();
|
|
2831 v19 = pPlayer->GetBaseWillpower();
|
|
2832 v20 = pPlayer->GetActualWillpower();
|
|
2833 v21 = UI_GetHealthManaStringColor(v20, v19);
|
|
2834 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163], v21, v18, v17);//
|
|
2835 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v16, 0, pTmpBuf, 0, 0, 0);
|
|
2836 v22 = LOBYTE(pFontArrus->uFontHeight) + v16 - 2;
|
|
2837 v23 = pPlayer->GetBaseEndurance();
|
|
2838 v24 = pPlayer->GetActualEndurance();
|
|
2839 v25 = pPlayer->GetBaseEndurance();
|
|
2840 v26 = pPlayer->GetActualEndurance();
|
|
2841 v27 = UI_GetHealthManaStringColor(v26, v25);
|
|
2842 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75], v27, v24, v23);//
|
|
2843 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v22, 0, pTmpBuf, 0, 0, 0);
|
|
2844 v28 = LOBYTE(pFontArrus->uFontHeight) + v22 - 2;
|
|
2845 v29 = pPlayer->GetBaseAccuracy();
|
|
2846 v30 = pPlayer->GetActualAccuracy();
|
|
2847 v31 = pPlayer->GetBaseAccuracy();
|
|
2848 v32 = pPlayer->GetActualAccuracy();
|
|
2849 v33 = UI_GetHealthManaStringColor(v32, v31);
|
|
2850 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[1], v33, v30, v29);
|
|
2851 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v28, 0, pTmpBuf, 0, 0, 0);
|
|
2852 v34 = LOBYTE(pFontArrus->uFontHeight) + v28 - 2;
|
|
2853 v35 = pPlayer->GetBaseSpeed();
|
|
2854 v36 = pPlayer->GetActualSpeed();
|
|
2855 v37 = pPlayer->GetBaseSpeed();
|
|
2856 v38 = pPlayer->GetActualSpeed();
|
|
2857 v39 = UI_GetHealthManaStringColor(v38, v37);
|
|
2858 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[211], v39, v36, v35);
|
|
2859 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v34, 0, pTmpBuf, 0, 0, 0);
|
|
2860 v40 = LOBYTE(pFontArrus->uFontHeight) + v34 - 2;
|
|
2861 v41 = pPlayer->GetBaseLuck();
|
|
2862 v42 = pPlayer->GetActualLuck();
|
|
2863 v43 = pPlayer->GetBaseLuck();
|
|
2864 v44 = pPlayer->GetActualLuck();
|
|
2865 v45 = UI_GetHealthManaStringColor(v44, v43);
|
|
2866 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[136], v45, v42, v41);
|
|
2867 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v40, 0, pTmpBuf, 0, 0, 0);
|
|
2868 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n";
|
|
2869 v46 = v40 + 2 * LOBYTE(pFontArrus->uFontHeight) + 5;
|
|
2870 if ( pPlayer->GetMaxHealth() >= 1000 )
|
|
2871 a2 = "%s\f%05u\r388%d\f00000 / %d\n";
|
|
2872 v47 = pPlayer->GetMaxHealth();
|
|
2873 v48 = pPlayer->sHealth;
|
|
2874 v49 = pPlayer->GetMaxHealth();
|
|
2875 v50 = UI_GetHealthManaStringColor(pPlayer->sHealth, v49);
|
|
2876 sprintf(pTmpBuf, a2, pGlobalTXT_LocalizationStrings[108], v50, v48, v47);
|
|
2877 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v46, 0, pTmpBuf, 0, 0, 0);
|
|
2878 a2a = "%s\f%05u\r424%d\f00000 /\t185%d\n";
|
|
2879 uY = LOBYTE(pFontArrus->uFontHeight) + v46 - 2;
|
|
2880 if ( pPlayer->GetMaxMana() >= 1000 )
|
|
2881 a2a = "%s\f%05u\r388%d\f00000 / %d\n";
|
|
2882 v51 = pPlayer->GetMaxMana();
|
|
2883 v52 = pPlayer->sMana;
|
|
2884 v53 = pPlayer->GetMaxMana();
|
|
2885 v54 = UI_GetHealthManaStringColor(pPlayer->sMana, v53);
|
|
2886 sprintf(pTmpBuf, a2a, pGlobalTXT_LocalizationStrings[212], v54, v52, v51);
|
|
2887 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, uY, 0, pTmpBuf, 0, 0, 0);
|
|
2888 v55 = LOBYTE(pFontArrus->uFontHeight) + uY - 2;
|
|
2889 v56 = pPlayer->GetBaseAC();
|
|
2890 v57 = pPlayer->GetActualAC();
|
|
2891 v58 = pPlayer->GetBaseAC();
|
|
2892 v59 = pPlayer->GetActualAC();
|
|
2893 v60 = UI_GetHealthManaStringColor(v59, v58);
|
|
2894 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[12], v60, v57, v56);
|
|
2895 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v55, 0, pTmpBuf, 0, 0, 0);
|
|
2896 v61 = v55 + 2 * LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2897 v62 = pPlayer->GetMajorConditionIdx();
|
|
2898 v63 = aCharacterConditionNames[v62];
|
|
2899 v64 = GetConditionDrawColor(v62);
|
|
2900 sprintf(pTmpBuf, "%s: \f%05d%s\n", pGlobalTXT_LocalizationStrings[47], v64, v63);
|
|
2901 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v61, 0, pTmpBuf, 226, 0);
|
|
2902 v65 = LOBYTE(pFontArrus->uFontHeight) + v61 - 1;
|
|
2903 v66 = pPlayer->uQuickSpell;
|
|
2904 if ( v66 )
|
|
2905 v67 = pSpellStats->pInfos[v66].pShortName;
|
|
2906 else
|
|
2907 v67 = pGlobalTXT_LocalizationStrings[153];
|
|
2908 sprintf(pTmpBuf, "%s: %s", pGlobalTXT_LocalizationStrings[172], v67);
|
|
2909 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x1Au, v65, 0, pTmpBuf, 226, 0);
|
|
2910 v68 = pPlayer->GetBaseAge();
|
|
2911 v69 = pPlayer->GetActualAge();
|
|
2912 v70 = pPlayer->GetBaseAge();
|
|
2913 v71 = pPlayer->GetActualAge();
|
|
2914 v72 = UI_GetHealthManaStringColor(v71, v70);
|
|
2915 sprintf(pTmpBuf, "%s\f%05u\t100%d\f00000 / %d\n", pGlobalTXT_LocalizationStrings[5], v72, v69, v68);
|
|
2916 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, 50, 0, pTmpBuf, 0, 0, 0);
|
|
2917 a2b = "%s\f%05u\t100%d\f00000 / %d\n";
|
|
2918 uYa = LOBYTE(pFontArrus->uFontHeight) + 48;
|
|
2919 if ( pPlayer->GetBaseLevel() > 99 )
|
|
2920 a2b = format_4E2E68;
|
|
2921 v73 = pPlayer->GetBaseLevel();
|
|
2922 v74 = pPlayer->GetActualLevel();
|
|
2923 v75 = pPlayer->GetBaseLevel();
|
|
2924 v76 = pPlayer->GetActualLevel();
|
|
2925 v77 = UI_GetHealthManaStringColor(v76, v75);
|
|
2926 sprintf(pTmpBuf, a2b, pGlobalTXT_LocalizationStrings[131], v77, v74, v73);
|
|
2927 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYa, 0, pTmpBuf, 0, 0, 0);
|
|
2928 uYb = uYa + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2929 if ( (signed __int64)pPlayer->uExperience <= 9999999 )
|
|
2930 v78 = pGlobalTXT_LocalizationStrings[83];
|
|
2931 else
|
|
2932 v78 = pGlobalTXT_LocalizationStrings[17];
|
|
2933 v79 = LODWORD(pPlayer->uExperience);
|
|
2934 v80 = v78;
|
|
2935 v81 = pPlayer->GetExperienceDisplayColor();
|
|
2936 sprintf(pTmpBuf, "%s\r180\f%05d%lu\f00000\n\n", v80, v81, v79);
|
|
2937 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYb, 0, pTmpBuf, 0, 0, 0);
|
|
2938 v82 = uYb + 2 * LOBYTE(pFontArrus->uFontHeight);
|
|
2939 v83 = pPlayer->GetActualAttack(0);
|
|
2940 sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[18], v83);
|
|
2941 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v82, 0, pTmpBuf, 0, 0, 0);
|
|
2942 v84 = v82 + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2943 v85 = pPlayer->GetMeleeDamageString();
|
|
2944 sprintf(pTmpBuf, "%s\t100 %s\n", pGlobalTXT_LocalizationStrings[53], v85);
|
|
2945 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v84, 0, pTmpBuf, 0, 0, 0);
|
|
2946 v86 = v84 + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2947 v87 = pPlayer->GetRangedAttack();
|
|
2948 sprintf(pTmpBuf, "%s\t100%+d\n", pGlobalTXT_LocalizationStrings[203], v87);
|
|
2949 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v86, 0, pTmpBuf, 0, 0, 0);
|
|
2950 v88 = v86 + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2951 v89 = pPlayer->GetRangedDamageString();
|
|
2952 sprintf(pTmpBuf, "%s\t100 %s\n\n", pGlobalTXT_LocalizationStrings[53], v89);
|
|
2953 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, v88, 0, pTmpBuf, 0, 0, 0);
|
|
2954 a2c = format_4E2E10;
|
|
2955 uYc = v88 + 2 * LOBYTE(pFontArrus->uFontHeight) - 4;
|
|
2956 v131 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE);
|
|
2957 v90 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE);
|
|
2958 if ( v131 > 99 || v90 > 99 )
|
|
2959 a2c = format_4E2E68;
|
|
2960 v91 = v90;
|
|
2961 v92 = UI_GetHealthManaStringColor(v131, v90);
|
|
2962 sprintf(pTmpBuf, a2c, pGlobalTXT_LocalizationStrings[87], v92, v131, v91);
|
|
2963 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYc, 0, pTmpBuf, 0, 0, 0);
|
|
2964 a2d = format_4E2E10;
|
|
2965 uYd = uYc + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2966 v132 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR);
|
|
2967 v93 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR);
|
|
2968 if ( v132 > 99 || v93 > 99 )
|
|
2969 a2d = format_4E2E68;
|
|
2970 v94 = v93;
|
|
2971 v95 = UI_GetHealthManaStringColor(v132, v93);
|
|
2972 sprintf(pTmpBuf, a2d, pGlobalTXT_LocalizationStrings[6], v95, v132, v94);
|
|
2973 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYd, 0, pTmpBuf, 0, 0, 0);
|
|
2974 a2e = format_4E2E10;
|
|
2975 uYe = uYd + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2976 v133 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER);
|
|
2977 v96 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER);
|
|
2978 if ( v133 > 99 || v96 > 99 )
|
|
2979 a2e = format_4E2E68;
|
|
2980 v97 = v96;
|
|
2981 v98 = UI_GetHealthManaStringColor(v133, v96);
|
|
2982 sprintf(pTmpBuf, a2e, pGlobalTXT_LocalizationStrings[240], v98, v133, v97);
|
|
2983 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYe, 0, pTmpBuf, 0, 0, 0);
|
|
2984 a2f = format_4E2E10;
|
|
2985 uYf = uYe + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2986 v134 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH);
|
|
2987 v99 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH);
|
|
2988 if ( v134 > 99 )
|
|
2989 a2f = format_4E2E68;
|
|
2990 v100 = v99;
|
|
2991 v101 = UI_GetHealthManaStringColor(v134, v99);
|
|
2992 sprintf(pTmpBuf, a2f, pGlobalTXT_LocalizationStrings[70], v101, v134, v100);
|
|
2993 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYf, 0, pTmpBuf, 0, 0, 0);
|
|
2994 a2g = format_4E2E10;
|
|
2995 uYg = uYf + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
2996 v135 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND);
|
|
2997 v102 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND);
|
|
2998 v137 = v102;
|
|
2999 if ( v135 > 99 || v102 > 99 )
|
|
3000 a2g = format_4E2E68;
|
|
3001 v103 = v102;
|
|
3002 v104 = UI_GetHealthManaStringColor(v135, v102);
|
|
3003 sprintf(pTmpBuf, a2g, pGlobalTXT_LocalizationStrings[142], v104, v135, v103);
|
|
3004 if ( pPlayer->classType == PLAYER_CLASS_LICH && v137 == 200 )
|
|
3005 {
|
|
3006 v105 = pGlobalTXT_LocalizationStrings[625];
|
|
3007 v106 = UI_GetHealthManaStringColor(v135, 200);
|
|
3008 sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[142], v106, v105);
|
|
3009 }
|
|
3010 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYg, 0, pTmpBuf, 0, 0, 0);
|
|
3011 a2h = format_4E2E10;
|
|
3012 uYh = uYg + LOBYTE(pFontArrus->uFontHeight) - 2;
|
|
3013 v136 = pPlayer->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY);
|
|
3014 v107 = pPlayer->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY);
|
|
3015 v138 = v107;
|
|
3016 if ( v136 > 99 || v107 > 99 )
|
|
3017 a2h = format_4E2E68;
|
|
3018 v108 = v107;
|
|
3019 v109 = UI_GetHealthManaStringColor(v136, v107);
|
|
3020 sprintf(pTmpBuf, a2h, pGlobalTXT_LocalizationStrings[29], v109, v136, v108);
|
|
3021 if ( pPlayer->classType == PLAYER_CLASS_LICH && v138 == 200 )
|
|
3022 {
|
|
3023 v110 = pGlobalTXT_LocalizationStrings[625];
|
|
3024 v111 = UI_GetHealthManaStringColor(v136, 200);
|
|
3025 sprintf(pTmpBuf, format_4E2E00, pGlobalTXT_LocalizationStrings[29], v111, v110);
|
|
3026 }
|
|
3027 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, uYh, 0, pTmpBuf, 0, 0, 0);
|
|
3028 }
|
|
3029
|
|
3030 //----- (00419100) --------------------------------------------------------
|
|
3031 void FillAwardsData()
|
|
3032 {
|
|
3033 Player *pPlayer; // esi@1
|
|
3034
|
|
3035 pPlayer = pPlayers[uActiveCharacter];
|
|
3036 memset(&achievedAwardsIndex, 0, 4000);
|
|
3037 memset(pTmpBuf2, 0, 0x7D0u);
|
|
3038 dword_506544 = 0;
|
|
3039 dword_506548 = 0;
|
|
3040 awards_count = 0;
|
|
3041 dword_50651C = 0;
|
|
3042 dword_506528 = 0;
|
|
3043 for(int i=0; i<105; ++i)
|
|
3044 {
|
|
3045 if ( _449B57_test_bit((unsigned char*)&pPlayer->_guilds_member_bits, i) && pAwards[i].pText )
|
|
3046 achievedAwardsIndex[awards_count++] = i;
|
|
3047 }
|
|
3048 awards_count2 = awards_count;
|
|
3049 awards_count = 0;
|
|
3050 //sort awards index
|
|
3051 if ( awards_count2>0 )
|
|
3052 {
|
|
3053 for(int i=0; i<awards_count2; ++i)
|
|
3054 achievedAwardsIndex[awards_count2 + i] = rand() % 16;
|
|
3055
|
|
3056 for(int i=1; i<awards_count2-1; ++i)
|
|
3057 {
|
|
3058 for (int j = i; j < awards_count2-1; ++j )
|
|
3059 {
|
|
3060 int tmp=achievedAwardsIndex[j];
|
|
3061 if(pAwards[j].uSort < pAwards[i].uSort)
|
|
3062 {
|
|
3063 achievedAwardsIndex[j] = achievedAwardsIndex[i];
|
|
3064 achievedAwardsIndex[i] = tmp;
|
|
3065 }
|
|
3066 }
|
|
3067 }
|
|
3068 }
|
|
3069 }
|