comparison mm7_1.cpp @ 41:fc3016f5a07a

more skills screen fix
author zipi
date Sun, 20 Jan 2013 20:52:13 +0000
parents c3a02d80c84c
children 2bcc7b24c831
comparison
equal deleted inserted replaced
40:cae8922b867a 41:fc3016f5a07a
204 a5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); 204 a5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu);
205 v84 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xAFu, 0xFFu); 205 v84 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xAFu, 0xFFu);
206 v85 = pGUIWindow_CurrentMenu->pCurrentPosActiveItem; 206 v85 = pGUIWindow_CurrentMenu->pCurrentPosActiveItem;
207 v86 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0); 207 v86 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0, 0);
208 v79 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0); 208 v79 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, 0);
209 pPlayer = (Player *)&stru_AA1058[3].pSounds[6972 * v1 + 40552]; 209 pPlayer = &pParty->pPlayers[v1-1];//(Player *)&stru_AA1058[3].pSounds[6972 * v1 + 40552];
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 sprintf( 215 sprintf(
216 pTmpBuf, 216 pTmpBuf,
217 "%s ", 217 "%s \f%05d%s\f00000\r177%s: \f%05d%d\f00000",
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,
407 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13; 407 v27 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
408 sprintf(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 = pArmorSkills;
413 do 413 do
414 { 414 {
415 v29 = 0; 415 v29 = 0;
416 v68 = 0; 416 v68 = 0;
417 v64 = *v82; 417 v64 = *v82;