comparison mm7_1.cpp @ 83:2d5d13376e91

Merge
author Nomad
date Mon, 29 Oct 2012 00:49:33 +0200
parents f9a33f75bae3 a84fb3752681
children f76e4ea4a224
comparison
equal deleted inserted replaced
82:f9a33f75bae3 83:2d5d13376e91
210 v3 = pIcons_LOD->LoadTexture("fr_skill", TEXTURE_16BIT_PALETTE); 210 v3 = pIcons_LOD->LoadTexture("fr_skill", TEXTURE_16BIT_PALETTE);
211 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0)); 211 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0));
212 v4 = v79; 212 v4 = v79;
213 if ( !pPlayer->uSkillPoints ) 213 if ( !pPlayer->uSkillPoints )
214 v4 = 65535; 214 v4 = 65535;
215 sprintfex( 215 sprintf(
216 pTmpBuf, 216 pTmpBuf,
217 "%s ", 217 "%s ",
218 pGlobalTXT_LocalizationStrings[206], // Skills for 218 pGlobalTXT_LocalizationStrings[206], // Skills for
219 a5, 219 a5,
220 pPlayer->pName, 220 pPlayer->pName,
221 pGlobalTXT_LocalizationStrings[207], // Skill Points 221 pGlobalTXT_LocalizationStrings[207], // Skill Points
222 v4, 222 v4,
223 pPlayer->uSkillPoints); 223 pPlayer->uSkillPoints);
224 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0); 224 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, 18, 0, pTmpBuf, 0, 0, 0);
225 v5 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;// Weapons, Level 225 v5 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;// Weapons, Level
226 sprintfex(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[242], pGlobalTXT_LocalizationStrings[131]); 226 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[242], pGlobalTXT_LocalizationStrings[131]);
227 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, v5, a5, pTmpBuf, 0, 0, 0); 227 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, v5, a5, pTmpBuf, 0, 0, 0);
228 v6 = pGUIWindow_CurrentMenu; 228 v6 = pGUIWindow_CurrentMenu;
229 v70 = 0; 229 v70 = 0;
230 v80 = dword_4E2A2C; 230 v80 = dword_4E2A2C;
231 do 231 do
283 } 283 }
284 else 284 else
285 { 285 {
286 if ( !(v87 & 0xC0) ) 286 if ( !(v87 & 0xC0) )
287 { 287 {
288 sprintfex(pTmpBuf, "%s\r400%2d", pSkillNames[v62], uY); 288 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v62], uY);
289 goto LABEL_28; 289 goto LABEL_28;
290 } 290 }
291 v16 = pGlobalTXT_LocalizationStrings[432]; 291 v16 = pGlobalTXT_LocalizationStrings[432];
292 if ( (v87 & 0x80u) == 0 ) 292 if ( (v87 & 0x80u) == 0 )
293 v16 = pGlobalTXT_LocalizationStrings[433]; 293 v16 = pGlobalTXT_LocalizationStrings[433];
296 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 296 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
297 v54 = uY; 297 v54 = uY;
298 v50 = v58; 298 v50 = v58;
299 v46 = v88; 299 v46 = v88;
300 } 300 }
301 sprintfex(pTmpBuf, "%s ", pSkillNames[v62], v15, v46, v50, v54); 301 sprintf(pTmpBuf, "%s ", pSkillNames[v62], v15, v46, v50, v54);
302 LABEL_28: 302 LABEL_28:
303 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0); 303 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0);
304 v6 = pGUIWindow_CurrentMenu; 304 v6 = pGUIWindow_CurrentMenu;
305 } 305 }
306 ++v80; 306 ++v80;
310 { 310 {
311 v5 = v5 + LOBYTE(pFontLucida->uFontHeight) - 3; 311 v5 = v5 + LOBYTE(pFontLucida->uFontHeight) - 3;
312 v6->DrawText(pFontLucida, 24, v5, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0); 312 v6->DrawText(pFontLucida, 24, v5, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
313 } 313 }
314 uYa = v5 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10; 314 uYa = v5 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
315 sprintfex(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[138], pGlobalTXT_LocalizationStrings[131]); 315 sprintf(pTmpBuf, "%s\r400%s", pGlobalTXT_LocalizationStrings[138], pGlobalTXT_LocalizationStrings[131]);
316 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, uYa, a5, pTmpBuf, 0, 0, 0); 316 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, uYa, a5, pTmpBuf, 0, 0, 0);
317 v17 = pGUIWindow_CurrentMenu; 317 v17 = pGUIWindow_CurrentMenu;
318 v71 = 0; 318 v71 = 0;
319 v81 = _4E2A80_skills; 319 v81 = _4E2A80_skills;
320 do 320 do
368 } 368 }
369 else 369 else
370 { 370 {
371 if ( !(v21 & 0xC0) ) 371 if ( !(v21 & 0xC0) )
372 { 372 {
373 sprintfex(pTmpBuf, "%s\r400%2d", pSkillNames[v63], v23); 373 sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v63], v23);
374 goto LABEL_58; 374 goto LABEL_58;
375 } 375 }
376 v25 = (v21 & 0x80u) != 0; 376 v25 = (v21 & 0x80u) != 0;
377 v26 = pGlobalTXT_LocalizationStrings[432]; 377 v26 = pGlobalTXT_LocalizationStrings[432];
378 if ( !v25 ) 378 if ( !v25 )
382 v24 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 382 v24 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
383 v55 = v23; 383 v55 = v23;
384 v51 = v59; 384 v51 = v59;
385 v47 = v89; 385 v47 = v89;
386 } 386 }
387 sprintfex(pTmpBuf, "%s ", pSkillNames[v63], v24, v47, v51, v55); 387 sprintf(pTmpBuf, "%s ", pSkillNames[v63], v24, v47, v51, v55);
388 LABEL_58: 388 LABEL_58:
389 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0); 389 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0);
390 v17 = pGUIWindow_CurrentMenu; 390 v17 = pGUIWindow_CurrentMenu;
391 LABEL_59: 391 LABEL_59:
392 v18 = v67++ + 1; 392 v18 = v67++ + 1;
403 pGlobalTXT_LocalizationStrings[153], 403 pGlobalTXT_LocalizationStrings[153],
404 0, 404 0,
405 0, 405 0,
406 0); 406 0);
407 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13; 407 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
408 sprintfex(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[11], pGlobalTXT_LocalizationStrings[131]); 408 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[11], pGlobalTXT_LocalizationStrings[131]);
409 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, v27, a5, pTmpBuf, 0, 0, 0); 409 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, v27, a5, pTmpBuf, 0, 0, 0);
410 v28 = pGUIWindow_CurrentMenu; 410 v28 = pGUIWindow_CurrentMenu;
411 v72 = 0; 411 v72 = 0;
412 v82 = dword_4E2A18; 412 v82 = dword_4E2A18;
413 do 413 do
462 } 462 }
463 else 463 else
464 { 464 {
465 if ( !(v90 & 0xC0) ) 465 if ( !(v90 & 0xC0) )
466 { 466 {
467 sprintfex(pTmpBuf, "%s\r177%2d", pSkillNames[v64], uYb); 467 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v64], uYb);
468 goto LABEL_88; 468 goto LABEL_88;
469 } 469 }
470 v35 = pGlobalTXT_LocalizationStrings[432]; 470 v35 = pGlobalTXT_LocalizationStrings[432];
471 if ( (v90 & 0x80u) == 0 ) 471 if ( (v90 & 0x80u) == 0 )
472 v35 = pGlobalTXT_LocalizationStrings[433]; 472 v35 = pGlobalTXT_LocalizationStrings[433];
475 v34 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 475 v34 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
476 v56 = uYb; 476 v56 = uYb;
477 v52 = v60; 477 v52 = v60;
478 v48 = v91; 478 v48 = v91;
479 } 479 }
480 sprintfex(pTmpBuf, "%s ", pSkillNames[v64], v34, v48, v52, v56); 480 sprintf(pTmpBuf, "%s ", pSkillNames[v64], v34, v48, v52, v56);
481 LABEL_88: 481 LABEL_88:
482 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0); 482 pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0);
483 v28 = pGUIWindow_CurrentMenu; 483 v28 = pGUIWindow_CurrentMenu;
484 LABEL_89: 484 LABEL_89:
485 v29 = v68++ + 1; 485 v29 = v68++ + 1;
491 { 491 {
492 v27 = v27 + LOBYTE(pFontLucida->uFontHeight) - 3; 492 v27 = v27 + LOBYTE(pFontLucida->uFontHeight) - 3;
493 v28->DrawText(pFontLucida, 248, v27, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0); 493 v28->DrawText(pFontLucida, 248, v27, 0, pGlobalTXT_LocalizationStrings[153], 0, 0, 0);
494 } 494 }
495 uYc = v27 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10; 495 uYc = v27 + 2 * LOBYTE(pFontLucida->uFontHeight) - 10;
496 sprintfex(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[143], pGlobalTXT_LocalizationStrings[131]); 496 sprintf(pTmpBuf, "%s\r177%s", pGlobalTXT_LocalizationStrings[143], pGlobalTXT_LocalizationStrings[131]);
497 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, uYc, a5, pTmpBuf, 0, 0, 0); 497 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, uYc, a5, pTmpBuf, 0, 0, 0);
498 v36 = pGUIWindow_CurrentMenu; 498 v36 = pGUIWindow_CurrentMenu;
499 v73 = 0; 499 v73 = 0;
500 v83 = dword_4E2A50; 500 v83 = dword_4E2A50;
501 do 501 do
550 } 550 }
551 else 551 else
552 { 552 {
553 if ( !(v40 & 0xC0) ) 553 if ( !(v40 & 0xC0) )
554 { 554 {
555 sprintfex(pTmpBuf, "%s\r177%2d", pSkillNames[v65], v42); 555 sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v65], v42);
556 goto LABEL_118; 556 goto LABEL_118;
557 } 557 }
558 v25 = (v40 & 0x80u) != 0; 558 v25 = (v40 & 0x80u) != 0;
559 v44 = pGlobalTXT_LocalizationStrings[432]; 559 v44 = pGlobalTXT_LocalizationStrings[432];
560 if ( !v25 ) 560 if ( !v25 )
564 v43 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 564 v43 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
565 v57 = v42; 565 v57 = v42;
566 v53 = v61; 566 v53 = v61;
567 v49 = v92; 567 v49 = v92;
568 } 568 }
569 sprintfex(pTmpBuf, "%s ", pSkillNames[v65], v43, v49, v53, v57); 569 sprintf(pTmpBuf, "%s ", pSkillNames[v65], v43, v49, v53, v57);
570 LABEL_118: 570 LABEL_118:
571 LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0); 571 LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0);
572 v36 = pGUIWindow_CurrentMenu; 572 v36 = pGUIWindow_CurrentMenu;
573 LABEL_119: 573 LABEL_119:
574 v37 = v69++ + 1; 574 v37 = v69++ + 1;
617 617
618 v1 = uPlayerID; 618 v1 = uPlayerID;
619 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 619 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
620 v3 = pIcons_LOD->LoadTexture("fr_award", TEXTURE_16BIT_PALETTE); 620 v3 = pIcons_LOD->LoadTexture("fr_award", TEXTURE_16BIT_PALETTE);
621 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0)); 621 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0));
622 sprintfex(pTmpBuf, "%s ", pGlobalTXT_LocalizationStrings[23], v2);// TODO check args 622 sprintf(pTmpBuf, "%s ", pGlobalTXT_LocalizationStrings[23], v2);// TODO check args
623 sprintfex( 623 sprintf(
624 Source, 624 Source,
625 pGlobalTXT_LocalizationStrings[429], 625 pGlobalTXT_LocalizationStrings[429],
626 &stru_AA1058[3].pSounds[6972 * v1 + 40720], 626 &stru_AA1058[3].pSounds[6972 * v1 + 40720],
627 pClassNames[stru_AA1058[3].pSounds[6972 * v1 + 40737]]); 627 pClassNames[stru_AA1058[3].pSounds[6972 * v1 + 40737]]);
628 strcat(pTmpBuf, Source); 628 strcat(pTmpBuf, Source);
678 v6 = (char *)dword_723E80_award_related[v20 / 4]; 678 v6 = (char *)dword_723E80_award_related[v20 / 4];
679 if ( v5 != 1 ) 679 if ( v5 != 1 )
680 break; 680 break;
681 v17 = pParty->uFine; 681 v17 = pParty->uFine;
682 LABEL_42: 682 LABEL_42:
683 sprintfex(pTmpBuf, v6, v17); 683 sprintf(pTmpBuf, v6, v17);
684 v6 = pTmpBuf; 684 v6 = pTmpBuf;
685 LABEL_43: 685 LABEL_43:
686 v14 = dword_723E84[v20 / 4]; 686 v14 = dword_723E84[v20 / 4];
687 ++dword_506520; 687 ++dword_506520;
688 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat( 688 v15 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(
1022 v0, 1022 v0,
1023 pGlobalTXT_LocalizationStrings[131], 1023 pGlobalTXT_LocalizationStrings[131],
1024 60, 1024 60,
1025 v0); 1025 v0);
1026 v3 = pPlayer->GetActualLevel(); 1026 v3 = pPlayer->GetActualLevel();
1027 sprintfex(pTmpBuf, "%lu", v3); 1027 sprintf(pTmpBuf, "%lu", v3);
1028 v4 = pPlayer->GetBaseLevel(); 1028 v4 = pPlayer->GetBaseLevel();
1029 if ( pPlayer->GetActualLevel() <= v4 ) 1029 if ( pPlayer->GetActualLevel() <= v4 )
1030 v5 = pPlayer->GetExperienceDisplayColor(); 1030 v5 = pPlayer->GetExperienceDisplayColor();
1031 else 1031 else
1032 v5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, v0); 1032 v5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, v0);
1050 v7, 1050 v7,
1051 v0, 1051 v0,
1052 pGlobalTXT_LocalizationStrings[107], 1052 pGlobalTXT_LocalizationStrings[107],
1053 60, 1053 60,
1054 v0); 1054 v0);
1055 sprintfex(pTmpBuf, "%d", pPlayer->sHealth); 1055 sprintf(pTmpBuf, "%d", pPlayer->sHealth);
1056 v8 = pPlayer->GetMaxHealth(); 1056 v8 = pPlayer->GetMaxHealth();
1057 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8); 1057 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8);
1058 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0); 1058 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0);
1059 v10 = v45 + v7; 1059 v10 = v45 + v7;
1060 if ( v43 == v0 ) 1060 if ( v43 == v0 )
1064 v10, 1064 v10,
1065 v0, 1065 v0,
1066 pGlobalTXT_LocalizationStrings[209], 1066 pGlobalTXT_LocalizationStrings[209],
1067 60, 1067 60,
1068 v0); 1068 v0);
1069 sprintfex(pTmpBuf, "%d", pPlayer->sMana); 1069 sprintf(pTmpBuf, "%d", pPlayer->sMana);
1070 v11 = pPlayer->GetMaxMana(); 1070 v11 = pPlayer->GetMaxMana();
1071 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11); 1071 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11);
1072 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0); 1072 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0);
1073 v13 = v45 + v10; 1073 v13 = v45 + v10;
1074 if ( v43 == v0 ) 1074 if ( v43 == v0 )
1079 v0, 1079 v0,
1080 pGlobalTXT_LocalizationStrings[0], 1080 pGlobalTXT_LocalizationStrings[0],
1081 60, 1081 60,
1082 v0); 1082 v0);
1083 v14 = pPlayer->GetActualAC(); 1083 v14 = pPlayer->GetActualAC();
1084 sprintfex(pTmpBuf, "%d", v14); 1084 sprintf(pTmpBuf, "%d", v14);
1085 v15 = v0; 1085 v15 = v0;
1086 v16 = pPlayer->GetBaseAC(); 1086 v16 = pPlayer->GetBaseAC();
1087 v17 = pPlayer->GetActualAC(); 1087 v17 = pPlayer->GetActualAC();
1088 v18 = UI_GetHealthManaStringColor(v17, v16); 1088 v18 = UI_GetHealthManaStringColor(v17, v16);
1089 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15); 1089 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15);
1097 0, 1097 0,
1098 pGlobalTXT_LocalizationStrings[18], 1098 pGlobalTXT_LocalizationStrings[18],
1099 60, 1099 60,
1100 0); 1100 0);
1101 v20 = pPlayer->GetActualAttack(0); 1101 v20 = pPlayer->GetActualAttack(0);
1102 sprintfex(pTmpBuf, "%+d", v20); 1102 sprintf(pTmpBuf, "%+d", v20);
1103 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0); 1103 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0);
1104 v21 = v45 + v19; 1104 v21 = v45 + v19;
1105 if ( !v43 ) 1105 if ( !v43 )
1106 pGUIWindow_CurrentMenu->DrawTextInRect( 1106 pGUIWindow_CurrentMenu->DrawTextInRect(
1107 pFontArrus, 1107 pFontArrus,
1122 0, 1122 0,
1123 pGlobalTXT_LocalizationStrings[203], 1123 pGlobalTXT_LocalizationStrings[203],
1124 60, 1124 60,
1125 0); 1125 0);
1126 v24 = pPlayer->GetRangedAttack(); 1126 v24 = pPlayer->GetRangedAttack();
1127 sprintfex(pTmpBuf, "%+d", v24); 1127 sprintf(pTmpBuf, "%+d", v24);
1128 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0); 1128 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0);
1129 v25 = v45 + v23; 1129 v25 = v45 + v23;
1130 if ( !v43 ) 1130 if ( !v43 )
1131 pGUIWindow_CurrentMenu->DrawTextInRect( 1131 pGUIWindow_CurrentMenu->DrawTextInRect(
1132 pFontArrus, 1132 pFontArrus,
1157 ++v28; 1157 ++v28;
1158 v29 += 2; 1158 v29 += 2;
1159 --v30; 1159 --v30;
1160 } 1160 }
1161 while ( v30 ); 1161 while ( v30 );
1162 sprintfex(pTmpBuf, "%lu", v28); 1162 sprintf(pTmpBuf, "%lu", v28);
1163 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0); 1163 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0);
1164 v31 = v45 + v27; 1164 v31 = v45 + v27;
1165 if ( !v43 ) 1165 if ( !v43 )
1166 pGUIWindow_CurrentMenu->DrawTextInRect( 1166 pGUIWindow_CurrentMenu->DrawTextInRect(
1167 pFontArrus, 1167 pFontArrus,
1169 v31, 1169 v31,
1170 0, 1170 0,
1171 pGlobalTXT_LocalizationStrings[168], 1171 pGlobalTXT_LocalizationStrings[168],
1172 60, 1172 60,
1173 0); 1173 0);
1174 sprintfex(pTmpBuf, "%lu", pPlayer->uSkillPoints); 1174 sprintf(pTmpBuf, "%lu", pPlayer->uSkillPoints);
1175 pGUIWindow_CurrentMenu->DrawTextInRect( 1175 pGUIWindow_CurrentMenu->DrawTextInRect(
1176 pFontArrus, 1176 pFontArrus,
1177 v44, 1177 v44,
1178 v31, 1178 v31,
1179 pPlayer->uSkillPoints != 0 ? v46 : 0, 1179 pPlayer->uSkillPoints != 0 ? v46 : 0,
1223 else 1223 else
1224 { 1224 {
1225 v39 = v46; 1225 v39 = v46;
1226 } 1226 }
1227 v40 = GetReputationString(v38); 1227 v40 = GetReputationString(v38);
1228 sprintfex(pTmpBuf, "%s: ", pGlobalTXT_LocalizationStrings[180], v39, v40); 1228 sprintf(pTmpBuf, "%s: ", pGlobalTXT_LocalizationStrings[180], v39, v40);
1229 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0); 1229 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0);
1230 v41 = pParty->GetPartyFame(); 1230 v41 = pParty->GetPartyFame();
1231 sprintfex(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame 1231 sprintf(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame
1232 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0); 1232 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0);
1233 } 1233 }
1234 1234
1235 //----- (0041ABFD) -------------------------------------------------------- 1235 //----- (0041ABFD) --------------------------------------------------------
1236 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx) 1236 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx)
2378 if ( (unsigned int)v8 / 0x18 ) 2378 if ( (unsigned int)v8 / 0x18 )
2379 { 2379 {
2380 v10 = pGlobalTXT_LocalizationStrings[57]; // Days 2380 v10 = pGlobalTXT_LocalizationStrings[57]; // Days
2381 if ( v19 <= 1 ) 2381 if ( v19 <= 1 )
2382 v10 = pGlobalTXT_LocalizationStrings[56]; // Day 2382 v10 = pGlobalTXT_LocalizationStrings[56]; // Day
2383 sprintfex(pTmpBuf2, "%d %s ", v19, v10); 2383 sprintf(pTmpBuf2, "%d %s ", v19, v10);
2384 strcat(pTmpBuf, pTmpBuf2); 2384 strcat(pTmpBuf, pTmpBuf2);
2385 } 2385 }
2386 if ( v9 ) 2386 if ( v9 )
2387 { 2387 {
2388 if ( v9 <= 1 ) 2388 if ( v9 <= 1 )
2389 v11 = pGlobalTXT_LocalizationStrings[109];// Hour 2389 v11 = pGlobalTXT_LocalizationStrings[109];// Hour
2390 else 2390 else
2391 v11 = pGlobalTXT_LocalizationStrings[110];// Hours 2391 v11 = pGlobalTXT_LocalizationStrings[110];// Hours
2392 sprintfex(pTmpBuf2, "%d %s ", v9, v11); 2392 sprintf(pTmpBuf2, "%d %s ", v9, v11);
2393 strcat(pTmpBuf, pTmpBuf2); 2393 strcat(pTmpBuf, pTmpBuf2);
2394 } 2394 }
2395 if ( v17 && !v19 ) 2395 if ( v17 && !v19 )
2396 { 2396 {
2397 if ( v17 <= 1 ) 2397 if ( v17 <= 1 )
2398 v12 = pGlobalTXT_LocalizationStrings[437];// Minute 2398 v12 = pGlobalTXT_LocalizationStrings[437];// Minute
2399 else 2399 else
2400 v12 = pGlobalTXT_LocalizationStrings[436];// Minutes 2400 v12 = pGlobalTXT_LocalizationStrings[436];// Minutes
2401 sprintfex(pTmpBuf2, "%d %s ", v17, v12); 2401 sprintf(pTmpBuf2, "%d %s ", v17, v12);
2402 strcat(pTmpBuf, pTmpBuf2); 2402 strcat(pTmpBuf, pTmpBuf2);
2403 } 2403 }
2404 if ( v18 && !v9 ) 2404 if ( v18 && !v9 )
2405 { 2405 {
2406 if ( v18 <= 1 ) 2406 if ( v18 <= 1 )
2407 v13 = pGlobalTXT_LocalizationStrings[439];// Second 2407 v13 = pGlobalTXT_LocalizationStrings[439];// Second
2408 else 2408 else
2409 v13 = pGlobalTXT_LocalizationStrings[438];// Seconds 2409 v13 = pGlobalTXT_LocalizationStrings[438];// Seconds
2410 sprintfex(pTmpBuf2, "%d %s ", v18, v13); 2410 sprintf(pTmpBuf2, "%d %s ", v18, v13);
2411 strcat(pTmpBuf, pTmpBuf2); 2411 strcat(pTmpBuf, pTmpBuf2);
2412 } 2412 }
2413 return a1->DrawText(a2, 32, uY, 0, pTmpBuf, 0, 0, 0); 2413 return a1->DrawText(a2, 32, uY, 0, pTmpBuf, 0, 0, 0);
2414 } 2414 }
2415 2415
2644 v18 = v17 >> 1; 2644 v18 = v17 >> 1;
2645 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x19u, 0x19u); 2645 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x19u, 0x19u);
2646 v79.DrawText2(pFontArrus, 0x64u, ((signed int)v79.uFrameHeight >> 1) - v18, v19, v52, v57); 2646 v79.DrawText2(pFontArrus, 0x64u, ((signed int)v79.uFrameHeight >> 1) - v18, v19, v52, v57);
2647 goto LABEL_116; 2647 goto LABEL_116;
2648 } 2648 }
2649 sprintfex(a1, pGlobalTXT_LocalizationStrings[463], *((int *)v3 + 2)); 2649 sprintf(a1, pGlobalTXT_LocalizationStrings[463], *((int *)v3 + 2));
2650 strcpy(Dest, ""); 2650 strcpy(Dest, "");
2651 strcpy(v64, ""); 2651 strcpy(v64, "");
2652 v20 = v3[28]; 2652 v20 = v3[28];
2653 if ( (unsigned __int8)v20 <= 1u ) 2653 if ( (unsigned __int8)v20 <= 1u )
2654 { 2654 {
2666 { 2666 {
2667 if ( (unsigned __int8)v20 <= 0xBu ) 2667 if ( (unsigned __int8)v20 <= 0xBu )
2668 { 2668 {
2669 v21 = v3[30]; 2669 v21 = v3[30];
2670 if ( v21 ) 2670 if ( v21 )
2671 sprintfex( 2671 sprintf(
2672 Dest, 2672 Dest,
2673 "%s: +%d", 2673 "%s: +%d",
2674 pGlobalTXT_LocalizationStrings[11], 2674 pGlobalTXT_LocalizationStrings[11],
2675 (unsigned __int8)v21 + (unsigned __int8)v3[32]); 2675 (unsigned __int8)v21 + (unsigned __int8)v3[32]);
2676 } 2676 }
2681 v53 = (unsigned __int8)v3[30]; 2681 v53 = (unsigned __int8)v3[30];
2682 v48 = pGlobalTXT_LocalizationStrings[53]; 2682 v48 = pGlobalTXT_LocalizationStrings[53];
2683 v45 = (unsigned __int8)v3[32]; 2683 v45 = (unsigned __int8)v3[32];
2684 v43 = pGlobalTXT_LocalizationStrings[203]; 2684 v43 = pGlobalTXT_LocalizationStrings[203];
2685 } 2685 }
2686 sprintfex(Dest, "%s: +%d %s: %dd%d", v43, v45, v48, v53, v58); 2686 sprintf(Dest, "%s: +%d %s: %dd%d", v43, v45, v48, v53, v58);
2687 v22 = v3[32]; 2687 v22 = v3[32];
2688 if ( v22 ) 2688 if ( v22 )
2689 { 2689 {
2690 sprintfex(Source, " +%d", (unsigned __int8)v22); 2690 sprintf(Source, " +%d", (unsigned __int8)v22);
2691 strcat(Dest, Source); 2691 strcat(Dest, Source);
2692 } 2692 }
2693 LABEL_50: 2693 LABEL_50:
2694 if ( v77 ) 2694 if ( v77 )
2695 goto LABEL_65; 2695 goto LABEL_65;
2782 v79.DrawText2(pFontArrus, 0, 0xCu, var88, v36, 3u); 2782 v79.DrawText2(pFontArrus, 0, 0xCu, var88, v36, 3u);
2783 v79.uFrameWidth += 24; 2783 v79.uFrameWidth += 24;
2784 v79.uFrameX -= 12; 2784 v79.uFrameX -= 12;
2785 if ( v77 ) 2785 if ( v77 )
2786 { 2786 {
2787 sprintfex(pTmpBuf, "%s: %lu", pGlobalTXT_LocalizationStrings[465], v77); 2787 sprintf(pTmpBuf, "%s: %lu", pGlobalTXT_LocalizationStrings[465], v77);
2788 v40 = v82; 2788 v40 = v82;
2789 v61 = 0; 2789 v61 = 0;
2790 v56 = 0; 2790 v56 = 0;
2791 v51 = 0; 2791 v51 = 0;
2792 v47 = pTmpBuf; 2792 v47 = pTmpBuf;
2801 sub_493F79((stru351 *)&v67, _this->uExpireTime - pParty->uTimePlayed); 2801 sub_493F79((stru351 *)&v67, _this->uExpireTime - pParty->uTimePlayed);
2802 strcpy(pTmpBuf, "Duration:"); 2802 strcpy(pTmpBuf, "Duration:");
2803 Str = (char *)(v72 - 1168); 2803 Str = (char *)(v72 - 1168);
2804 if ( v72 != 1168 ) 2804 if ( v72 != 1168 )
2805 { 2805 {
2806 sprintfex(v65, " %d:yr", v72 - 1168); 2806 sprintf(v65, " %d:yr", v72 - 1168);
2807 strcat(pTmpBuf, v65); 2807 strcat(pTmpBuf, v65);
2808 } 2808 }
2809 if ( (((v71 || Str) && ((sprintfex(v65, " %d:mo", v71), strcat(pTmpBuf, v65), v71) || Str) || v70) 2809 if ( (((v71 || Str) && ((sprintf(v65, " %d:mo", v71), strcat(pTmpBuf, v65), v71) || Str) || v70)
2810 && ((sprintfex(v65, " %d:dy", v70), strcat(pTmpBuf, v65), v71) || Str || v70) 2810 && ((sprintf(v65, " %d:dy", v70), strcat(pTmpBuf, v65), v71) || Str || v70)
2811 || v69) 2811 || v69)
2812 && ((sprintfex(v65, " %d:hr", v69), strcat(pTmpBuf, v65), v71) || Str || v70 || v69) 2812 && ((sprintf(v65, " %d:hr", v69), strcat(pTmpBuf, v65), v71) || Str || v70 || v69)
2813 || v68 ) 2813 || v68 )
2814 { 2814 {
2815 sprintfex(v65, " %d:mn", v68); 2815 sprintf(v65, " %d:mn", v68);
2816 strcat(pTmpBuf, v65); 2816 strcat(pTmpBuf, v65);
2817 } 2817 }
2818 v79.DrawText(v82, 100, v79.uFrameHeight - 2 * LOBYTE(v82->uFontHeight), 0, pTmpBuf, 0, 0, 0); 2818 v79.DrawText(v82, 100, v79.uFrameHeight - 2 * LOBYTE(v82->uFontHeight), 0, pTmpBuf, 0, 0, 0);
2819 } 2819 }
2820 v37 = _this->GetValue(); 2820 v37 = _this->GetValue();
2821 sprintfex(pTmpBuf, "%s: %lu", pGlobalTXT_LocalizationStrings[465], v37); 2821 sprintf(pTmpBuf, "%s: %lu", pGlobalTXT_LocalizationStrings[465], v37);
2822 v79.DrawText(v82, 100, v79.uFrameHeight - LOBYTE(v82->uFontHeight), 0, pTmpBuf, 0, 0, 0); 2822 v79.DrawText(v82, 100, v79.uFrameHeight - LOBYTE(v82->uFontHeight), 0, pTmpBuf, 0, 0, 0);
2823 v38 = _this->uAttributes; 2823 v38 = _this->uAttributes;
2824 if ( BYTE1(v38) & 1 ) 2824 if ( BYTE1(v38) & 1 )
2825 { 2825 {
2826 v61 = 0; 2826 v61 = 0;
2860 LABEL_56: 2860 LABEL_56:
2861 v59 = v24; 2861 v59 = v24;
2862 v54 = pGlobalTXT_LocalizationStrings[449]; 2862 v54 = pGlobalTXT_LocalizationStrings[449];
2863 v49 = "%s: %d"; 2863 v49 = "%s: %d";
2864 LABEL_64: 2864 LABEL_64:
2865 sprintfex(v64, v49, v54, v59); 2865 sprintf(v64, v49, v54, v59);
2866 goto LABEL_65; 2866 goto LABEL_65;
2867 } 2867 }
2868 v25 = _this->_bonus_type; 2868 v25 = _this->_bonus_type;
2869 if ( v25 ) 2869 if ( v25 )
2870 { 2870 {
2890 v60 = _this->_bonus_strength; 2890 v60 = _this->_bonus_strength;
2891 v55 = *((int *)&pItemsTable->pEnchantments[23].pName + 7 * v26); 2891 v55 = *((int *)&pItemsTable->pEnchantments[23].pName + 7 * v26);
2892 v50 = pGlobalTXT_LocalizationStrings[210]; 2892 v50 = pGlobalTXT_LocalizationStrings[210];
2893 v46 = "%s: %s"; 2893 v46 = "%s: %s";
2894 } 2894 }
2895 sprintfex(v64, v46, v50, v55, v60); 2895 sprintf(v64, v46, v50, v55, v60);
2896 goto LABEL_65; 2896 goto LABEL_65;
2897 } 2897 }
2898 } 2898 }
2899 // 4E455C: using guessed type int dword_4E455C; 2899 // 4E455C: using guessed type int dword_4E455C;
2900 // 506128: using guessed type int areWeLoadingTexture; 2900 // 506128: using guessed type int areWeLoadingTexture;
3281 if ( v121->uNPC_ID ) 3281 if ( v121->uNPC_ID )
3282 { 3282 {
3283 v37 = v112[6]; 3283 v37 = v112[6];
3284 if ( v37 ) 3284 if ( v37 )
3285 { 3285 {
3286 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[429], *v112, aNPCProfessionNames[(signed int)v37]); 3286 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], *v112, aNPCProfessionNames[(signed int)v37]);
3287 goto LABEL_59; 3287 goto LABEL_59;
3288 } 3288 }
3289 v77 = 2000; 3289 v77 = 2000;
3290 v72 = *v112; 3290 v72 = *v112;
3291 } 3291 }
3538 } 3538 }
3539 v56 = pFontSmallnum; 3539 v56 = pFontSmallnum;
3540 a4 = (char *)v106.uViewportY; 3540 a4 = (char *)v106.uViewportY;
3541 if ( v119 ) 3541 if ( v119 )
3542 { 3542 {
3543 sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[108], 0, v121->pMonsterInfo.uHP); 3543 sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[108], 0, v121->pMonsterInfo.uHP);
3544 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3544 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3545 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; 3545 a4 = &a4[LOBYTE(v56->uFontHeight) - 3];
3546 v79 = v121->pMonsterInfo.uAC; 3546 v79 = v121->pMonsterInfo.uAC;
3547 v75 = 0; 3547 v75 = 0;
3548 v70 = pGlobalTXT_LocalizationStrings[12]; 3548 v70 = pGlobalTXT_LocalizationStrings[12];
3549 v67 = "%s"; 3549 v67 = "%s";
3550 } 3550 }
3551 else 3551 else
3552 { 3552 {
3553 sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[108], 0, pGlobalTXT_LocalizationStrings[630]); 3553 sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[108], 0, pGlobalTXT_LocalizationStrings[630]);
3554 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3554 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3555 v79 = (unsigned int)pGlobalTXT_LocalizationStrings[630]; 3555 v79 = (unsigned int)pGlobalTXT_LocalizationStrings[630];
3556 v75 = 0; 3556 v75 = 0;
3557 v70 = pGlobalTXT_LocalizationStrings[12]; 3557 v70 = pGlobalTXT_LocalizationStrings[12];
3558 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; 3558 a4 = &a4[LOBYTE(v56->uFontHeight) - 3];
3559 v67 = "%s"; 3559 v67 = "%s";
3560 } 3560 }
3561 sprintfex(pTmpBuf, v67, v70, v75, v79); 3561 sprintf(pTmpBuf, v67, v70, v75, v79);
3562 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3562 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3563 a4 = &a4[LOBYTE(v56->uFontHeight) - 6] + LOBYTE(v56->uFontHeight); 3563 a4 = &a4[LOBYTE(v56->uFontHeight) - 6] + LOBYTE(v56->uFontHeight);
3564 v95 = pGlobalTXT_LocalizationStrings[87]; 3564 v95 = pGlobalTXT_LocalizationStrings[87];
3565 v96 = pGlobalTXT_LocalizationStrings[6]; 3565 v96 = pGlobalTXT_LocalizationStrings[6];
3566 v97 = pGlobalTXT_LocalizationStrings[240]; 3566 v97 = pGlobalTXT_LocalizationStrings[240];
3572 v103 = pGlobalTXT_LocalizationStrings[29]; 3572 v103 = pGlobalTXT_LocalizationStrings[29];
3573 v104 = pGlobalTXT_LocalizationStrings[133]; 3573 v104 = pGlobalTXT_LocalizationStrings[133];
3574 v105 = pGlobalTXT_LocalizationStrings[54]; 3574 v105 = pGlobalTXT_LocalizationStrings[54];
3575 if ( v116 ) 3575 if ( v116 )
3576 { 3576 {
3577 sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[18], 0, (&v95)[4 * v121->pMonsterInfo.uAttack1Type]); 3577 sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[18], 0, (&v95)[4 * v121->pMonsterInfo.uAttack1Type]);
3578 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3578 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3579 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; 3579 a4 = &a4[LOBYTE(v56->uFontHeight) - 3];
3580 v57 = v121->pMonsterInfo.uAttack1DamageBonus; 3580 v57 = v121->pMonsterInfo.uAttack1DamageBonus;
3581 if ( v57 ) 3581 if ( v57 )
3582 sprintfex( 3582 sprintf(
3583 pTmpBuf, 3583 pTmpBuf,
3584 "%s", 3584 "%s",
3585 pGlobalTXT_LocalizationStrings[53], 3585 pGlobalTXT_LocalizationStrings[53],
3586 0, 3586 0,
3587 v121->pMonsterInfo.uAttack1DamageDiceRolls, 3587 v121->pMonsterInfo.uAttack1DamageDiceRolls,
3588 v121->pMonsterInfo.uAttack1DamageDiceSides, 3588 v121->pMonsterInfo.uAttack1DamageDiceSides,
3589 v57); 3589 v57);
3590 else 3590 else
3591 sprintfex( 3591 sprintf(
3592 pTmpBuf, 3592 pTmpBuf,
3593 "%s", 3593 "%s",
3594 pGlobalTXT_LocalizationStrings[53], 3594 pGlobalTXT_LocalizationStrings[53],
3595 0, 3595 0,
3596 v121->pMonsterInfo.uAttack1DamageDiceRolls, 3596 v121->pMonsterInfo.uAttack1DamageDiceRolls,
3597 v121->pMonsterInfo.uAttack1DamageDiceSides); 3597 v121->pMonsterInfo.uAttack1DamageDiceSides);
3598 } 3598 }
3599 else 3599 else
3600 { 3600 {
3601 sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[18], 0, pGlobalTXT_LocalizationStrings[630]); 3601 sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[18], 0, pGlobalTXT_LocalizationStrings[630]);
3602 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3602 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3603 a4 = &a4[LOBYTE(v56->uFontHeight) - 3]; 3603 a4 = &a4[LOBYTE(v56->uFontHeight) - 3];
3604 sprintfex(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[53], 0, pGlobalTXT_LocalizationStrings[630]); 3604 sprintf(pTmpBuf, "%s", pGlobalTXT_LocalizationStrings[53], 0, pGlobalTXT_LocalizationStrings[630]);
3605 } 3605 }
3606 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3606 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3607 v58 = LOBYTE(v56->uFontHeight); 3607 v58 = LOBYTE(v56->uFontHeight);
3608 a4 = &a4[v58 - 6] + v58; 3608 a4 = &a4[v58 - 6] + v58;
3609 if ( !i ) 3609 if ( !i )
3619 v114 = v121->pMonsterInfo.uSpell1ID; 3619 v114 = v121->pMonsterInfo.uSpell1ID;
3620 if ( v114 && v121->pMonsterInfo.uSpell2ID ) 3620 if ( v114 && v121->pMonsterInfo.uSpell2ID )
3621 v120 = (SpellBuff *)pGlobalTXT_LocalizationStrings[629]; 3621 v120 = (SpellBuff *)pGlobalTXT_LocalizationStrings[629];
3622 if ( v114 ) 3622 if ( v114 )
3623 { 3623 {
3624 sprintfex(pTmpBuf, "%s", v120, 0, pSpellStats->pInfos[v114].pShortName); 3624 sprintf(pTmpBuf, "%s", v120, 0, pSpellStats->pInfos[v114].pShortName);
3625 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3625 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3626 v58 = LOBYTE(v56->uFontHeight); 3626 v58 = LOBYTE(v56->uFontHeight);
3627 a4 = &a4[v58 - 3]; 3627 a4 = &a4[v58 - 3];
3628 v59 = v121; 3628 v59 = v121;
3629 } 3629 }
3630 v60 = v59->pMonsterInfo.uSpell2ID; 3630 v60 = v59->pMonsterInfo.uSpell2ID;
3631 if ( v60 ) 3631 if ( v60 )
3632 { 3632 {
3633 __debugbreak(); 3633 __debugbreak();
3634 const char *fmt = "\xC\x25\x30\x35\x75\x9\x30\x36\x30\x25\x73\n"; 3634 const char *fmt = "\xC\x25\x30\x35\x75\x9\x30\x36\x30\x25\x73\n";
3635 sprintfex(pTmpBuf, fmt, 0, pSpellStats->pInfos[v60].pShortName); 3635 sprintf(pTmpBuf, fmt, 0, pSpellStats->pInfos[v60].pShortName);
3636 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3636 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3637 v58 = LOBYTE(v56->uFontHeight); 3637 v58 = LOBYTE(v56->uFontHeight);
3638 a4 = &a4[v58 - 3]; 3638 a4 = &a4[v58 - 3];
3639 v59 = v121; 3639 v59 = v121;
3640 } 3640 }
3643 v80 = pGlobalTXT_LocalizationStrings[153]; 3643 v80 = pGlobalTXT_LocalizationStrings[153];
3644 v76 = 0; 3644 v76 = 0;
3645 v71 = pGlobalTXT_LocalizationStrings[628]; 3645 v71 = pGlobalTXT_LocalizationStrings[628];
3646 v68 = "%s"; 3646 v68 = "%s";
3647 LABEL_144: 3647 LABEL_144:
3648 sprintfex(pTmpBuf, v68, v71, v76, v80); 3648 sprintf(pTmpBuf, v68, v71, v76, v80);
3649 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0); 3649 a1->DrawText(v56, 150, (int)a4, a5, pTmpBuf, 0, 0, 0);
3650 v58 = LOBYTE(v56->uFontHeight); 3650 v58 = LOBYTE(v56->uFontHeight);
3651 a4 = &a4[v58 - 3]; 3651 a4 = &a4[v58 - 3];
3652 } 3652 }
3653 a4 = &a4[v58 - 3]; 3653 a4 = &a4[v58 - 3];
3689 if ( v62 ) 3689 if ( v62 )
3690 v81 = pGlobalTXT_LocalizationStrings[627]; 3690 v81 = pGlobalTXT_LocalizationStrings[627];
3691 else 3691 else
3692 v81 = pGlobalTXT_LocalizationStrings[153]; 3692 v81 = pGlobalTXT_LocalizationStrings[153];
3693 } 3693 }
3694 sprintfex(pTmpBuf, "%s", (&v85)[v124], 0, v81); 3694 sprintf(pTmpBuf, "%s", (&v85)[v124], 0, v81);
3695 a1->DrawText(v56, 170, (int)a4, a5, pTmpBuf, 0, 0, 0); 3695 a1->DrawText(v56, 170, (int)a4, a5, pTmpBuf, 0, 0, 0);
3696 v63 = LOBYTE(v56->uFontHeight); 3696 v63 = LOBYTE(v56->uFontHeight);
3697 v124 += 4; 3697 v124 += 4;
3698 result = &a4[v63 - 3]; 3698 result = &a4[v63 - 3];
3699 a4 = result; 3699 a4 = result;
3703 else 3703 else
3704 { 3704 {
3705 i = 0; 3705 i = 0;
3706 do 3706 do
3707 { 3707 {
3708 sprintfex(pTmpBuf, "%s", (&v85)[4 * i], 0, pGlobalTXT_LocalizationStrings[630]); 3708 sprintf(pTmpBuf, "%s", (&v85)[4 * i], 0, pGlobalTXT_LocalizationStrings[630]);
3709 a1->DrawText(v56, 170, (int)a4, a5, pTmpBuf, 0, 0, 0); 3709 a1->DrawText(v56, 170, (int)a4, a5, pTmpBuf, 0, 0, 0);
3710 v65 = LOBYTE(v56->uFontHeight); 3710 v65 = LOBYTE(v56->uFontHeight);
3711 ++i; 3711 ++i;
3712 result = &a4[v65 - 3]; 3712 result = &a4[v65 - 3];
3713 a4 = result; 3713 a4 = result;
3714 } 3714 }
3715 while ( i < 10 ); 3715 while ( i < 10 );
3716 } 3716 }
3717 if ( (signed __int64)pParty->pPartyBuffs[3].uExpireTime > 0 ) 3717 if ( (signed __int64)pParty->pPartyBuffs[3].uExpireTime > 0 )
3718 { 3718 {
3719 sprintfex(pTmpBuf, "%s: %d", pGlobalTXT_LocalizationStrings[650], v121->sCurrentHP); 3719 sprintf(pTmpBuf, "%s: %d", pGlobalTXT_LocalizationStrings[650], v121->sCurrentHP);
3720 pFontSmallnum->GetLineWidth(pTmpBuf); 3720 pFontSmallnum->GetLineWidth(pTmpBuf);
3721 result = a1->DrawText2( 3721 result = a1->DrawText2(
3722 pFontSmallnum, 3722 pFontSmallnum,
3723 0, 3723 0,
3724 a1->uFrameHeight - LOBYTE(pFontSmallnum->uFontHeight) - 12, 3724 a1->uFrameHeight - LOBYTE(pFontSmallnum->uFontHeight) - 12,
3737 if ( pTexture_RestUI_CurrentSkyFrame ) 3737 if ( pTexture_RestUI_CurrentSkyFrame )
3738 pTexture_RestUI_CurrentSkyFrame->Release(); 3738 pTexture_RestUI_CurrentSkyFrame->Release();
3739 if ( pTexture_RestUI_CurrentHourglassFrame ) 3739 if ( pTexture_RestUI_CurrentHourglassFrame )
3740 pTexture_RestUI_CurrentHourglassFrame->Release(); 3740 pTexture_RestUI_CurrentHourglassFrame->Release();
3741 pIcons_LOD->_40F9C5(); 3741 pIcons_LOD->_40F9C5();
3742 sprintfex(pTmpBuf, "TERRA%03d", pParty->uCurrentMinute / 6 + 10 * pParty->uCurrentHour); 3742 sprintf(pTmpBuf, "TERRA%03d", pParty->uCurrentMinute / 6 + 10 * pParty->uCurrentHour);
3743 pTexture_RestUI_CurrentSkyFrame = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE)]; 3743 pTexture_RestUI_CurrentSkyFrame = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE)];
3744 } 3744 }
3745 3745
3746 //----- (0041F5BE) -------------------------------------------------------- 3746 //----- (0041F5BE) --------------------------------------------------------
3747 void __cdecl Sleep6Hours() 3747 void __cdecl Sleep6Hours()
3983 if ( (unsigned __int8)(v4) >= 0x78u ) 3983 if ( (unsigned __int8)(v4) >= 0x78u )
3984 { 3984 {
3985 v4 = 1; 3985 v4 = 1;
3986 byte_4E2BC8 = 1; 3986 byte_4E2BC8 = 1;
3987 } 3987 }
3988 sprintfex(pTmpBuf, "hglas%03d", (unsigned __int8)v4); 3988 sprintf(pTmpBuf, "hglas%03d", (unsigned __int8)v4);
3989 pTexture_RestUI_CurrentHourglassFrame = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE)]; 3989 pTexture_RestUI_CurrentHourglassFrame = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE)];
3990 pRenderer->DrawTextureIndexed(0x10Bu, 0x9Fu, pTexture_RestUI_CurrentHourglassFrame); 3990 pRenderer->DrawTextureIndexed(0x10Bu, 0x9Fu, pTexture_RestUI_CurrentHourglassFrame);
3991 memset(&Dst, 0, 0xBCu); 3991 memset(&Dst, 0, 0xBCu);
3992 Dst.uX = 24; 3992 Dst.uX = 24;
3993 Dst.uY = 154; 3993 Dst.uY = 154;
3996 Dst.uZ = 194; 3996 Dst.uZ = 194;
3997 Dst.uW = 190; 3997 Dst.uW = 190;
3998 Dst.pParent = pButton_RestUI_WaitUntilDawn->pParent; 3998 Dst.pParent = pButton_RestUI_WaitUntilDawn->pParent;
3999 Dst.DrawLabel(pGlobalTXT_LocalizationStrings[183], pFontCreate, a5, *(int **)a9); 3999 Dst.DrawLabel(pGlobalTXT_LocalizationStrings[183], pFontCreate, a5, *(int **)a9);
4000 Dst.pParent = 0; 4000 Dst.pParent = 0;
4001 sprintfex(pTmpBuf, "\r408%d", uRestUI_FoodRequiredToRest); 4001 sprintf(pTmpBuf, "\r408%d", uRestUI_FoodRequiredToRest);
4002 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 0, 164, a5, pTmpBuf, 0, 0, *(unsigned int *)a9); 4002 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 0, 164, a5, pTmpBuf, 0, 0, *(unsigned int *)a9);
4003 pButton_RestUI_WaitUntilDawn->DrawLabel( 4003 pButton_RestUI_WaitUntilDawn->DrawLabel(
4004 pGlobalTXT_LocalizationStrings[237], 4004 pGlobalTXT_LocalizationStrings[237],
4005 pFontCreate, 4005 pFontCreate,
4006 a5, 4006 a5,
4017 Dst.uW = 228; 4017 Dst.uW = 228;
4018 Dst.pParent = pButton_RestUI_WaitUntilDawn->pParent; 4018 Dst.pParent = pButton_RestUI_WaitUntilDawn->pParent;
4019 Dst.DrawLabel(pGlobalTXT_LocalizationStrings[236], pFontCreate, a5, *(int **)a9); 4019 Dst.DrawLabel(pGlobalTXT_LocalizationStrings[236], pFontCreate, a5, *(int **)a9);
4020 Dst.pParent = 0; 4020 Dst.pParent = 0;
4021 v5 = pParty->uCurrentHour >= 0xC && pParty->uCurrentHour < 0x18; 4021 v5 = pParty->uCurrentHour >= 0xC && pParty->uCurrentHour < 0x18;
4022 sprintfex(pTmpBuf, "%d:%02d %s", v10, pParty->uCurrentMinute, aAMPMNames[v5]); 4022 sprintf(pTmpBuf, "%d:%02d %s", v10, pParty->uCurrentMinute, aAMPMNames[v5]);
4023 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 368, 168, a5, pTmpBuf, 0, 0, *(unsigned int *)a9); 4023 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 368, 168, a5, pTmpBuf, 0, 0, *(unsigned int *)a9);
4024 sprintfex(pTmpBuf, "%s\r190%d", pGlobalTXT_LocalizationStrings[56], pParty->uDaysPlayed + 1); 4024 sprintf(pTmpBuf, "%s\r190%d", pGlobalTXT_LocalizationStrings[56], pParty->uDaysPlayed + 1);
4025 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 350, 190, a5, pTmpBuf, 0, 0, *(unsigned int *)a9); 4025 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 350, 190, a5, pTmpBuf, 0, 0, *(unsigned int *)a9);
4026 sprintfex(pTmpBuf, "%s\r190%d", pGlobalTXT_LocalizationStrings[146], pParty->uCurrentMonth + 1); 4026 sprintf(pTmpBuf, "%s\r190%d", pGlobalTXT_LocalizationStrings[146], pParty->uCurrentMonth + 1);
4027 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 350, 222, a5, pTmpBuf, 0, 0, *(unsigned int *)a9); 4027 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 350, 222, a5, pTmpBuf, 0, 0, *(unsigned int *)a9);
4028 sprintfex(pTmpBuf, "%s\r190%d", pGlobalTXT_LocalizationStrings[245], pParty->uCurrentYear); 4028 sprintf(pTmpBuf, "%s\r190%d", pGlobalTXT_LocalizationStrings[245], pParty->uCurrentYear);
4029 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 350, 254, a5, pTmpBuf, 0, 0, *(unsigned int *)a9); 4029 pGUIWindow_CurrentMenu->DrawText(pFontCreate, 350, 254, a5, pTmpBuf, 0, 0, *(unsigned int *)a9);
4030 if ( dword_506F14 ) 4030 if ( dword_506F14 )
4031 Sleep6Hours(); 4031 Sleep6Hours();
4032 } 4032 }
4033 else 4033 else
4690 v4 = pChests[v3].uChestBitmapID; 4690 v4 = pChests[v3].uChestBitmapID;
4691 v20 = pChestSmthn1ByType[v4]; 4691 v20 = pChestSmthn1ByType[v4];
4692 v18 = pChestSmthn2ByType[v4]; 4692 v18 = pChestSmthn2ByType[v4];
4693 v21 = pChestWidthsByType[v4]; 4693 v21 = pChestWidthsByType[v4];
4694 v19 = pChestHeightsByType[v4]; 4694 v19 = pChestHeightsByType[v4];
4695 sprintfex(pTmpBuf, "chest%02d", pChestList->pChests[pChests[v3].uChestBitmapID].uTextureID); 4695 sprintf(pTmpBuf, "chest%02d", pChestList->pChests[pChests[v3].uChestBitmapID].uTextureID);
4696 v5 = pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE); 4696 v5 = pIcons_LOD->LoadTexture(pTmpBuf, TEXTURE_16BIT_PALETTE);
4697 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v5 != -1 ? (int)&pIcons_LOD->pTextures[v5] : 0)); 4697 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v5 != -1 ? (int)&pIcons_LOD->pTextures[v5] : 0));
4698 v23 = 0; 4698 v23 = 0;
4699 if ( v21 * v19 > 0 ) 4699 if ( v21 * v19 > 0 )
4700 { 4700 {
4841 v4 = uNumGold; 4841 v4 = uNumGold;
4842 if ( _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal ) 4842 if ( _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal )
4843 { 4843 {
4844 if ( _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal == 1 ) 4844 if ( _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal == 1 )
4845 { 4845 {
4846 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[467], uNumGold);// You found %lu gold! 4846 sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[467], uNumGold);// You found %lu gold!
4847 } 4847 }
4848 else 4848 else
4849 { 4849 {
4850 if ( _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal == 2 ) 4850 if ( _1_dont_share_with_followers___2_the_same_but_without_a_message__else_normal == 2 )
4851 pTmpBuf2[0] = 0; 4851 pTmpBuf2[0] = 0;
4910 if ( v3 ) 4910 if ( v3 )
4911 { 4911 {
4912 v3 = (signed int)(v4 * v3 / 100) / 100; 4912 v3 = (signed int)(v4 * v3 / 100) / 100;
4913 if ( v3 < 1 ) 4913 if ( v3 < 1 )
4914 v3 = 1; 4914 v3 = 1;
4915 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[466], v4, v3);// You found %lu gold (followers take %lu)! 4915 sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[466], v4, v3);// You found %lu gold (followers take %lu)!
4916 } 4916 }
4917 else 4917 else
4918 { 4918 {
4919 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[467], v4);// You found %lu gold! 4919 sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[467], v4);// You found %lu gold!
4920 } 4920 }
4921 v2 = 0; 4921 v2 = 0;
4922 } 4922 }
4923 pParty->uNumGold += v4 - v3; 4923 pParty->uNumGold += v4 - v3;
4924 pUIAnim_Gold->uAnimTime = v2; 4924 pUIAnim_Gold->uAnimTime = v2;
5064 v26 = v22; 5064 v26 = v22;
5065 goto LABEL_87; 5065 goto LABEL_87;
5066 } 5066 }
5067 v31 = pLayingItems[v30].stru_24.GetDisplayName(); 5067 v31 = pLayingItems[v30].stru_24.GetDisplayName();
5068 v28 = pTmpBuf; 5068 v28 = pTmpBuf;
5069 sprintfex(pTmpBuf, pGlobalTXT_LocalizationStrings[470], v31);// "Get %s" 5069 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[470], v31);// "Get %s"
5070 } 5070 }
5071 else 5071 else
5072 { 5072 {
5073 if ( (v18 & 7) != OBJECT_Actor ) 5073 if ( (v18 & 7) != OBJECT_Actor )
5074 { 5074 {
5330 else 5330 else
5331 { 5331 {
5332 v41 = v7; 5332 v41 = v7;
5333 v39 = pGlobalTXT_LocalizationStrings[468];// "Clicking here will spend %d Skill Points" 5333 v39 = pGlobalTXT_LocalizationStrings[468];// "Clicking here will spend %d Skill Points"
5334 } 5334 }
5335 sprintfex(Str1, v39, v41); 5335 sprintf(Str1, v39, v41);
5336 v13 = Str1; 5336 v13 = Str1;
5337 goto _set_status_and_ret; 5337 goto _set_status_and_ret;
5338 } 5338 }
5339 } 5339 }
5340 } 5340 }
5848 party_finds_gold(v22->uAdditionalValue, 0); 5848 party_finds_gold(v22->uAdditionalValue, 0);
5849 viewparams->bRedrawGameUI = 1; 5849 viewparams->bRedrawGameUI = 1;
5850 } 5850 }
5851 else 5851 else
5852 { 5852 {
5853 sprintfex(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], pItemsTable->pItems[v23].pUnidentifiedName); 5853 sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[471], pItemsTable->pItems[v23].pUnidentifiedName);
5854 ShowStatusBarString(pTmpBuf2, 2u); 5854 ShowStatusBarString(pTmpBuf2, 2u);
5855 if ( v22->uItemID == 506 ) 5855 if ( v22->uItemID == 506 )
5856 _449B7E_toggle_bit(pParty->_award_bits, 184, 1u); 5856 _449B7E_toggle_bit(pParty->_award_bits, 184, 1u);
5857 if ( v22->uItemID == 455 ) 5857 if ( v22->uItemID == 455 )
5858 _449B7E_toggle_bit(pParty->_award_bits, 185, 1u); 5858 _449B7E_toggle_bit(pParty->_award_bits, 185, 1u);