comparison mm7_5.cpp @ 69:f12a7fd4d114

skills tab text fixed
author zipi
date Sun, 27 Jan 2013 11:39:11 +0000
parents 6c2cefdaea3e
children 0a7860ded5c2
comparison
equal deleted inserted replaced
68:d7e3f844fc2e 69:f12a7fd4d114
17834 } 17834 }
17835 v12 = 0; 17835 v12 = 0;
17836 a5 = pGUIWindow_CurrentMenu->uNumControls; 17836 a5 = pGUIWindow_CurrentMenu->uNumControls;
17837 v18 = &pParty->pPlayers[v0-1]; //&stru_AA1058[3].pSounds[6972 * v0 + 40552]; 17837 v18 = &pParty->pPlayers[v0-1]; //&stru_AA1058[3].pSounds[6972 * v0 + 40552];
17838 v2 = pFontLucida; 17838 v2 = pFontLucida;
17839 v14 = dword_4E2A2C; 17839 v14 = pWeaponSkills;
17840 v3 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13; 17840 v3 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13;
17841 do 17841 do
17842 { 17842 {
17843 if ( v18->pActiveSkills[*v14] & 0x3F )//crash 17843 if ( v18->pActiveSkills[*v14] & 0x3F )//crash
17844 { 17844 {
17849 pGUIWindow_CurrentMenu->CreateButton(0x18u, v3, 0xCCu, v4 - 3, 3, *v14 | 0x8000, 0x79u, *v14, 0, "", 0, 0); 17849 pGUIWindow_CurrentMenu->CreateButton(0x18u, v3, 0xCCu, v4 - 3, 3, *v14 | 0x8000, 0x79u, *v14, 0, "", 0, 0);
17850 v2 = pFontLucida; 17850 v2 = pFontLucida;
17851 } 17851 }
17852 ++v14; 17852 ++v14;
17853 } 17853 }
17854 while ( v14 <= &dword_4E2A2C[8] ); 17854 while ( v14 <= &pWeaponSkills[8] );
17855 if ( !v12 ) 17855 if ( !v12 )
17856 v3 = v3 + LOBYTE(v2->uFontHeight) - 3; 17856 v3 = v3 + LOBYTE(v2->uFontHeight) - 3;
17857 v15 = _4E2A80_skills; 17857 v15 = pMagicSkills;
17858 v5 = v3 + 2 * LOBYTE(v2->uFontHeight) - 6; 17858 v5 = v3 + 2 * LOBYTE(v2->uFontHeight) - 6;
17859 do 17859 do
17860 { 17860 {
17861 if ( v18->pActiveSkills[*v15] & 0x3F && a2 < 15 ) 17861 if ( v18->pActiveSkills[*v15] & 0x3F && a2 < 15 )
17862 { 17862 {
17866 pGUIWindow_CurrentMenu->CreateButton(0x18u, v5, 0xCCu, v6 - 3, 3, *v15 | 0x8000, 0x79u, *v15, 0, "", 0, 0); 17866 pGUIWindow_CurrentMenu->CreateButton(0x18u, v5, 0xCCu, v6 - 3, 3, *v15 | 0x8000, 0x79u, *v15, 0, "", 0, 0);
17867 v2 = pFontLucida; 17867 v2 = pFontLucida;
17868 } 17868 }
17869 ++v15; 17869 ++v15;
17870 } 17870 }
17871 while ( v15 <= &_4E2A80_skills[8] ); 17871 while ( v15 <= &pMagicSkills[8] );
17872 v13 = 0; 17872 v13 = 0;
17873 v16 = pArmorSkills; 17873 v16 = pArmorSkills;
17874 v7 = 2 * LOBYTE(v2->uFontHeight) + 13; 17874 v7 = 2 * LOBYTE(v2->uFontHeight) + 13;
17875 do 17875 do
17876 { 17876 {
17886 ++v16; 17886 ++v16;
17887 } 17887 }
17888 while ( v16 <= &pArmorSkills[4] ); 17888 while ( v16 <= &pArmorSkills[4] );
17889 if ( !v13 ) 17889 if ( !v13 )
17890 v7 = v7 + LOBYTE(v2->uFontHeight) - 3; 17890 v7 = v7 + LOBYTE(v2->uFontHeight) - 3;
17891 v17 = dword_4E2A50; 17891 v17 = pMiscSkills;
17892 v9 = v7 + 2 * LOBYTE(v2->uFontHeight) - 6; 17892 v9 = v7 + 2 * LOBYTE(v2->uFontHeight) - 6;
17893 do 17893 do
17894 { 17894 {
17895 if ( v18->pActiveSkills[*v17] & 0x3F ) 17895 if ( v18->pActiveSkills[*v17] & 0x3F )
17896 { 17896 {
17900 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v9, 0xCCu, v10 - 3, 3, *v17 | 0x8000, 0x79u, *v17, 0, "", 0, 0); 17900 pGUIWindow_CurrentMenu->CreateButton(0xF6u, v9, 0xCCu, v10 - 3, 3, *v17 | 0x8000, 0x79u, *v17, 0, "", 0, 0);
17901 v2 = pFontLucida; 17901 v2 = pFontLucida;
17902 } 17902 }
17903 ++v17; 17903 ++v17;
17904 } 17904 }
17905 while ( v17 <= &dword_4E2A50[11] ); 17905 while ( v17 <= &pMiscSkills[11] );
17906 if ( a2 ) 17906 if ( a2 )
17907 pGUIWindow_CurrentMenu->_41D08F(a2, 1, 0, a5); 17907 pGUIWindow_CurrentMenu->_41D08F(a2, 1, 0, a5);
17908 } 17908 }