comparison UIPopup.cpp @ 949:c0d0656aa662

Awards
author Nomad
date Wed, 01 May 2013 20:04:24 +0200
parents 5a2dbb00c399
children 1462a5f12b65
comparison
equal deleted inserted replaced
948:5a2dbb00c399 949:c0d0656aa662
224 char* v84; 224 char* v84;
225 int v85; 225 int v85;
226 char *Str; // [sp+270h] [bp-8h]@65 226 char *Str; // [sp+270h] [bp-8h]@65
227 227
228 v1 = inspect_item; 228 v1 = inspect_item;
229 var88 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 229 var88 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
230 if (!inspect_item->uItemID) 230 if (!inspect_item->uItemID)
231 return; 231 return;
232 232
233 wHintWindow.Hint = 0; 233 wHintWindow.Hint = 0;
234 wHintWindow.uFrameWidth = 384; 234 wHintWindow.uFrameWidth = 384;
328 else 328 else
329 v16 = item_desc->pUnidentifiedName; 329 v16 = item_desc->pUnidentifiedName;
330 wHintWindow.DrawTitleText(pFontArrus, 0, 0xCu, var88, v16, 3u); 330 wHintWindow.DrawTitleText(pFontArrus, 0, 0xCu, var88, v16, 3u);
331 v17 = pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[32], &wHintWindow, 0, 0); //"Broken Item" 331 v17 = pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[32], &wHintWindow, 0, 0); //"Broken Item"
332 v18 = v17 >> 1; 332 v18 = v17 >> 1;
333 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x19u, 0x19u); 333 v19 = TargetColor(0xFFu, 0x19u, 0x19u);
334 wHintWindow.DrawTitleText(pFontArrus, 0x64u, ((signed int)wHintWindow.uFrameHeight >> 1) - v18, v19, pGlobalTXT_LocalizationStrings[32], 3); //"Broken Item" 334 wHintWindow.DrawTitleText(pFontArrus, 0x64u, ((signed int)wHintWindow.uFrameHeight >> 1) - v18, v19, pGlobalTXT_LocalizationStrings[32], 3); //"Broken Item"
335 pRenderer->ResetTextureClipRect(); 335 pRenderer->ResetTextureClipRect();
336 if ( !areWeLoadingTexture ) 336 if ( !areWeLoadingTexture )
337 { 337 {
338 v73->Release(); 338 v73->Release();
352 wHintWindow.uFrameW = wHintWindow.uFrameY + wHintWindow.uFrameHeight - 1; 352 wHintWindow.uFrameW = wHintWindow.uFrameY + wHintWindow.uFrameHeight - 1;
353 pRenderer->DrawTextureTransparent(wHintWindow.uFrameX + v78, v81 + wHintWindow.uFrameY + 30, v73); 353 pRenderer->DrawTextureTransparent(wHintWindow.uFrameX + v78, v81 + wHintWindow.uFrameY + 30, v73);
354 wHintWindow.DrawTitleText(pFontArrus, 0, 0xCu, var88, item_desc->pUnidentifiedName, 3u); 354 wHintWindow.DrawTitleText(pFontArrus, 0, 0xCu, var88, item_desc->pUnidentifiedName, 3u);
355 v17 = pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[232], &wHintWindow, 0, 0); ///"Not Identified" 355 v17 = pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[232], &wHintWindow, 0, 0); ///"Not Identified"
356 v18 = v17 >> 1; 356 v18 = v17 >> 1;
357 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0x19u, 0x19u); 357 v19 = TargetColor(0xFFu, 0x19u, 0x19u);
358 wHintWindow.DrawTitleText(pFontArrus, 0x64u, ((signed int)wHintWindow.uFrameHeight >> 1) - v18, v19, pGlobalTXT_LocalizationStrings[232], 3); 358 wHintWindow.DrawTitleText(pFontArrus, 0x64u, ((signed int)wHintWindow.uFrameHeight >> 1) - v18, v19, pGlobalTXT_LocalizationStrings[232], 3);
359 pRenderer->ResetTextureClipRect(); 359 pRenderer->ResetTextureClipRect();
360 if ( !areWeLoadingTexture ) 360 if ( !areWeLoadingTexture )
361 { 361 {
362 v73->Release(); 362 v73->Release();
726 atexit(nullsub_3); 726 atexit(nullsub_3);
727 }*/ 727 }*/
728 v106.uParentBillboardID = -1; 728 v106.uParentBillboardID = -1;
729 v3 = &pActors[v2]; 729 v3 = &pActors[v2];
730 v121 = v3; 730 v121 = v3;
731 v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 255, 0x9Bu); 731 v4 = TargetColor(0xE1u, 255, 0x9Bu);
732 //v5 = v3->sNPC_ID; 732 //v5 = v3->sNPC_ID;
733 a5 = v4; 733 a5 = v4;
734 v6 = GetNPCData(v3->sNPC_ID); 734 v6 = GetNPCData(v3->sNPC_ID);
735 v7 = v3->pMonsterInfo.uID; 735 v7 = v3->pMonsterInfo.uID;
736 //v112 = (char **)v6; 736 //v112 = (char **)v6;
952 else 952 else
953 v72 = pMonsterStats->pInfos[v121->pMonsterInfo.uID].pName; 953 v72 = pMonsterStats->pInfos[v121->pMonsterInfo.uID].pName;
954 } 954 }
955 if(!v121->sNPC_ID || (v121->sNPC_ID && !v6->uProfession)) 955 if(!v121->sNPC_ID || (v121->sNPC_ID && !v6->uProfession))
956 strncpy(pTmpBuf, v72, v77); 956 strncpy(pTmpBuf, v72, v77);
957 v39 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 957 v39 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
958 a1->DrawTitleText(pFontComic, 0, 0xCu, v39, pTmpBuf, 3u); 958 a1->DrawTitleText(pFontComic, 0, 0xCu, v39, pTmpBuf, 3u);
959 Actor::DrawHealthBar(v121, a1); 959 Actor::DrawHealthBar(v121, a1);
960 v119 = 0; 960 v119 = 0;
961 pMonsterInfoUI_Doll.uCurrentActionTime += pMiscTimer->uTimeElapsed; 961 pMonsterInfoUI_Doll.uCurrentActionTime += pMiscTimer->uTimeElapsed;
962 v115 = 0; 962 v115 = 0;
1499 v12 = uPlayerSkillType; 1499 v12 = uPlayerSkillType;
1500 v13 = GetSkillColor(pPlayer->classType, uPlayerSkillType, 4); 1500 v13 = GetSkillColor(pPlayer->classType, uPlayerSkillType, 4);
1501 sprintf(Source, "\f%05d", v13); 1501 sprintf(Source, "\f%05d", v13);
1502 strcat(a2, Source); 1502 strcat(a2, Source);
1503 strcat(a2, "%s\t%03d:\t%03d%s\t000\n\n"); 1503 strcat(a2, "%s\t%03d:\t%03d%s\t000\n\n");
1504 v14 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); 1504 v14 = TargetColor(0xFFu, 0xFFu, 0xFFu);
1505 sprintf(Source, "\f%05d", v14); 1505 sprintf(Source, "\f%05d", v14);
1506 strcat(a2, Source); 1506 strcat(a2, Source);
1507 strcat(a2, "%s: +%d"); 1507 strcat(a2, "%s: +%d");
1508 v15 = v12; 1508 v15 = v12;
1509 v16 = (int)(v35 + 5); 1509 v16 = (int)(v35 + 5);
1813 a1.uFrameWidth -= 12; 1813 a1.uFrameWidth -= 12;
1814 a1.uFrameHeight -= 12; 1814 a1.uFrameHeight -= 12;
1815 v7 = v2->pName; 1815 v7 = v2->pName;
1816 a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1; 1816 a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1;
1817 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; 1817 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1;
1818 v8 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 1818 v8 = TargetColor(0xFFu, 0xFFu, 0x9Bu);
1819 a1.DrawTitleText(pFontArrus, 0x78u, 0xCu, v8, v7, 3u); 1819 a1.DrawTitleText(pFontArrus, 0x78u, 0xCu, v8, v7, 3u);
1820 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); 1820 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0);
1821 a1.uFrameWidth = 108; 1821 a1.uFrameWidth = 108;
1822 a1.uFrameZ = a1.uFrameX + 107; 1822 a1.uFrameZ = a1.uFrameX + 107;
1823 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v1->lastOpenedSpellbookPage + 12], 3u); 1823 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v1->lastOpenedSpellbookPage + 12], 3u);
2190 pWindow.uFrameWidth -= 24; 2190 pWindow.uFrameWidth -= 24;
2191 pWindow.uFrameY += 12; 2191 pWindow.uFrameY += 12;
2192 pWindow.uFrameHeight -= 12; 2192 pWindow.uFrameHeight -= 12;
2193 pWindow.uFrameZ = pWindow.uFrameX + pWindow.uFrameWidth - 1; 2193 pWindow.uFrameZ = pWindow.uFrameX + pWindow.uFrameWidth - 1;
2194 pWindow.uFrameW = pWindow.uFrameY + pWindow.uFrameHeight - 1; 2194 pWindow.uFrameW = pWindow.uFrameY + pWindow.uFrameHeight - 1;
2195 pColor = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B); 2195 pColor = TargetColor(0xFF, 0xFF, 0x9B);
2196 sprintf(pTmpBuf, format_4E2D80, pColor, pStr);//"\f%05d%s\f00000\n" 2196 sprintf(pTmpBuf, format_4E2D80, pColor, pStr);//"\f%05d%s\f00000\n"
2197 pWindow.DrawTitleText(pFontCreate, 0, 0, 0, pTmpBuf, 3); 2197 pWindow.DrawTitleText(pFontCreate, 0, 0, 0, pTmpBuf, 3);
2198 pWindow.DrawText(pFontSmallnum, 1, pFontLucida->uFontHeight, 0, pHint, 0, 0, 0); 2198 pWindow.DrawText(pFontSmallnum, 1, pFontLucida->uFontHeight, 0, pHint, 0, 0, 0);
2199 } 2199 }
2200 break; 2200 break;