comparison mm7_5.cpp @ 46:9b4f8fe32a6e

21.01.13 StatsTab
author Ritor1
date Mon, 21 Jan 2013 14:36:40 +0600
parents 196847ece26a
children 5a08b193507f 8af333180755
comparison
equal deleted inserted replaced
45:e753d08b78ec 46:9b4f8fe32a6e
16444 pWindow.uFrameY += 12; 16444 pWindow.uFrameY += 12;
16445 pWindow.uFrameHeight -= 12; 16445 pWindow.uFrameHeight -= 12;
16446 pWindow.uFrameZ = pWindow.uFrameX + pWindow.uFrameWidth - 1; 16446 pWindow.uFrameZ = pWindow.uFrameX + pWindow.uFrameWidth - 1;
16447 pWindow.uFrameW = pWindow.uFrameY + pWindow.uFrameHeight - 1; 16447 pWindow.uFrameW = pWindow.uFrameY + pWindow.uFrameHeight - 1;
16448 pColor = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B); 16448 pColor = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B);
16449 sprintf(pTmpBuf, pStr, pColor, format_4E2D80);//sprintfex должен быть - не работает sprintfex(pTmpBuf, format_4E2D80, v25, pStr) 16449 sprintf(pTmpBuf, format_4E2D80, pColor, pStr);
16450 pWindow.DrawTitleText(pFontCreate, 0, 0, 0, pTmpBuf, 3); 16450 pWindow.DrawText(pFontCreate, 0, 0, 0, pTmpBuf, 3, 0, 0); //DrawTitleText
16451 pWindow.DrawText(pFontSmallnum, 1, LOBYTE(pFontLucida->uFontHeight), 0, pHint, 0, 0, 0); 16451 pWindow.DrawText(pFontSmallnum, 1, pFontLucida->uFontHeight, 0, pHint, 0, 0, 0);
16452 } 16452 }
16453 LABEL_132: 16453 LABEL_132:
16454 dword_507BF0_is_there_popup_onscreen = 1; 16454 dword_507BF0_is_there_popup_onscreen = 1;
16455 viewparams->bRedrawGameUI = 1; 16455 viewparams->bRedrawGameUI = 1;
16456 } 16456 }
17378 int v137; // [sp+1Ch] [bp-4h]@27 17378 int v137; // [sp+1Ch] [bp-4h]@27
17379 int v138; // [sp+1Ch] [bp-4h]@33 17379 int v138; // [sp+1Ch] [bp-4h]@33
17380 17380
17381 pPlayer = &pParty->pPlayers[uPlayerID-1];//(Player *)&stru_AA1058[3].pSounds[6972 * uPlayerID + 40552]; 17381 pPlayer = &pParty->pPlayers[uPlayerID-1];//(Player *)&stru_AA1058[3].pSounds[6972 * uPlayerID + 40552];
17382 v2 = pIcons_LOD->LoadTexture("fr_stats", TEXTURE_16BIT_PALETTE); 17382 v2 = pIcons_LOD->LoadTexture("fr_stats", TEXTURE_16BIT_PALETTE);
17383 pRenderer->DrawTextureIndexed(8u, 8u, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0)); 17383 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0));
17384 v3 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 17384 v3 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
17385 sprintf(pTmpBuf, format_4E2DC8, v3); 17385 sprintf(pTmpBuf, format_4E2DC8, v3);
17386 sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->uClass]); 17386 sprintf(pTmpBuf2, pGlobalTXT_LocalizationStrings[429], pPlayer->pName, pClassNames[pPlayer->uClass]);//^Pi[%s] %s
17387 strcat(pTmpBuf, pTmpBuf2); 17387 strcat(pTmpBuf, pTmpBuf2);
17388 if ( pPlayer->uSkillPoints ) 17388 if ( pPlayer->uSkillPoints )
17389 v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0); 17389 v4 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
17390 else 17390 else
17391 v4 = 0xFFFFu; 17391 v4 = 0xFFFFu;
17392 sprintf(pTmpBuf2, "\xC" "00000\xD" "180%s: \xC%05d%d\xC" "00000\n\n\n", pGlobalTXT_LocalizationStrings[207], v4, pPlayer->uSkillPoints); 17392 sprintf(pTmpBuf2, "\xC" "00000\xD" "180%s: \xC%05d%d\xC" "00000\n\n\n", pGlobalTXT_LocalizationStrings[207], v4, pPlayer->uSkillPoints);//Skill points
17393 strcat(pTmpBuf, pTmpBuf2); 17393 strcat(pTmpBuf, pTmpBuf2);
17394 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf, 0, 0, 0); 17394 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf, 0, 0, 0);
17395 v5 = pPlayer->GetBaseStrength(); 17395 v5 = pPlayer->GetBaseStrength();
17396 v6 = pPlayer->GetActualMight(); 17396 v6 = pPlayer->GetActualMight();
17397 v7 = pPlayer->GetBaseStrength(); 17397 v7 = pPlayer->GetBaseStrength();
17398 v8 = pPlayer->GetActualMight(); 17398 v8 = pPlayer->GetActualMight();
17399 v9 = UI_GetHealthManaStringColor(v8, v7); 17399 v9 = UI_GetHealthManaStringColor(v8, v7);
17400 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144], v9, v6, v5); 17400 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144], v9, v6, v5);//Might
17401 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 53, 0, pTmpBuf, 0, 0, 0); 17401 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 53, 0, pTmpBuf, 0, 0, 0);
17402 v10 = LOBYTE(pFontArrus->uFontHeight) + 51; 17402 v10 = LOBYTE(pFontArrus->uFontHeight) + 51;
17403 v11 = pPlayer->GetBaseIntelligence(); 17403 v11 = pPlayer->GetBaseIntelligence();
17404 v12 = pPlayer->GetActualIntelligence(); 17404 v12 = pPlayer->GetActualIntelligence();
17405 v13 = pPlayer->GetBaseIntelligence(); 17405 v13 = pPlayer->GetBaseIntelligence();
17406 v14 = pPlayer->GetActualIntelligence(); 17406 v14 = pPlayer->GetActualIntelligence();
17407 v15 = UI_GetHealthManaStringColor(v14, v13); 17407 v15 = UI_GetHealthManaStringColor(v14, v13);
17408 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116], v15, v12, v11); 17408 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116], v15, v12, v11);//Intellect
17409 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0); 17409 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v10, 0, pTmpBuf, 0, 0, 0);
17410 v16 = LOBYTE(pFontArrus->uFontHeight) + v10 - 2; 17410 v16 = LOBYTE(pFontArrus->uFontHeight) + v10 - 2;
17411 v17 = pPlayer->GetBaseWillpower(); 17411 v17 = pPlayer->GetBaseWillpower();
17412 v18 = pPlayer->GetActualWillpower(); 17412 v18 = pPlayer->GetActualWillpower();
17413 v19 = pPlayer->GetBaseWillpower(); 17413 v19 = pPlayer->GetBaseWillpower();
17414 v20 = pPlayer->GetActualWillpower(); 17414 v20 = pPlayer->GetActualWillpower();
17415 v21 = UI_GetHealthManaStringColor(v20, v19); 17415 v21 = UI_GetHealthManaStringColor(v20, v19);
17416 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163], v21, v18, v17); 17416 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163], v21, v18, v17);//
17417 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v16, 0, pTmpBuf, 0, 0, 0); 17417 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v16, 0, pTmpBuf, 0, 0, 0);
17418 v22 = LOBYTE(pFontArrus->uFontHeight) + v16 - 2; 17418 v22 = LOBYTE(pFontArrus->uFontHeight) + v16 - 2;
17419 v23 = pPlayer->GetBaseEndurance(); 17419 v23 = pPlayer->GetBaseEndurance();
17420 v24 = pPlayer->GetActualEndurance(); 17420 v24 = pPlayer->GetActualEndurance();
17421 v25 = pPlayer->GetBaseEndurance(); 17421 v25 = pPlayer->GetBaseEndurance();
17422 v26 = pPlayer->GetActualEndurance(); 17422 v26 = pPlayer->GetActualEndurance();
17423 v27 = UI_GetHealthManaStringColor(v26, v25); 17423 v27 = UI_GetHealthManaStringColor(v26, v25);
17424 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75], v27, v24, v23); 17424 sprintf(pTmpBuf, "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75], v27, v24, v23);//
17425 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v22, 0, pTmpBuf, 0, 0, 0); 17425 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, v22, 0, pTmpBuf, 0, 0, 0);
17426 v28 = LOBYTE(pFontArrus->uFontHeight) + v22 - 2; 17426 v28 = LOBYTE(pFontArrus->uFontHeight) + v22 - 2;
17427 v29 = pPlayer->GetBaseAccuracy(); 17427 v29 = pPlayer->GetBaseAccuracy();
17428 v30 = pPlayer->GetActualAccuracy(); 17428 v30 = pPlayer->GetActualAccuracy();
17429 v31 = pPlayer->GetBaseAccuracy(); 17429 v31 = pPlayer->GetBaseAccuracy();