Mercurial > mm7
changeset 69:f12a7fd4d114
skills tab text fixed
author | zipi |
---|---|
date | Sun, 27 Jan 2013 11:39:11 +0000 |
parents | d7e3f844fc2e |
children | 2b798f781d1d |
files | mm7_1.cpp mm7_5.cpp mm7_data.cpp mm7_data.h |
diffstat | 4 files changed, 51 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- a/mm7_1.cpp Sun Jan 27 09:58:10 2013 +0000 +++ b/mm7_1.cpp Sun Jan 27 11:39:11 2013 +0000 @@ -227,7 +227,7 @@ pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, v5, a5, pTmpBuf, 0, 0, 0); v6 = pGUIWindow_CurrentMenu; v70 = 0; - v80 = dword_4E2A2C; + v80 = pWeaponSkills; do { v62 = *v80; @@ -286,7 +286,9 @@ if ( !(v87 & 0xC0) ) { sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v62], uY); - goto LABEL_28; + pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0); + v6 = pGUIWindow_CurrentMenu; + continue; } v16 = pGlobalTXT_LocalizationStrings[432]; if ( (v87 & 0x80u) == 0 ) @@ -299,13 +301,12 @@ v46 = v88; } sprintf(pTmpBuf, "%s ", pSkillNames[v62], v15, v46, v50, v54); -LABEL_28: pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, v5, v58, pTmpBuf, 0, 0, 0); v6 = pGUIWindow_CurrentMenu; } ++v80; } - while ( (signed int)v80 < (signed int)dword_4E2A50 ); + while ( v80 <= &pWeaponSkills[8]); if ( !v70 ) { v5 = v5 + LOBYTE(pFontLucida->uFontHeight) - 3; @@ -316,7 +317,7 @@ pGUIWindow_CurrentMenu->DrawText(pFontArrus, 24, uYa, a5, pTmpBuf, 0, 0, 0); v17 = pGUIWindow_CurrentMenu; v71 = 0; - v81 = _4E2A80_skills; + v81 = pMagicSkills; do { v18 = 0; @@ -336,7 +337,10 @@ } v20 = v19->field_1C; if ( SBYTE1(v20) >= 0 || (BYTE1(v20) &= 0x7Fu, v20 != v63) ) - goto LABEL_59; + { + v18 = v67++ + 1; + continue; + } ++v71; uYa = v19->uY; v21 = pPlayer->pActiveSkills[v63]; @@ -371,7 +375,10 @@ if ( !(v21 & 0xC0) ) { sprintf(pTmpBuf, "%s\r400%2d", pSkillNames[v63], v23); - goto LABEL_58; + pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0); + v17 = pGUIWindow_CurrentMenu; + v18 = v67++ + 1; + continue; } v25 = (v21 & 0x80u) != 0; v26 = pGlobalTXT_LocalizationStrings[432]; @@ -385,15 +392,15 @@ v47 = v89; } sprintf(pTmpBuf, "%s ", pSkillNames[v63], v24, v47, v51, v55); -LABEL_58: +//LABEL_58: pGUIWindow_CurrentMenu->DrawText(pFontLucida, 24, uYa, v59, pTmpBuf, 0, 0, 0); v17 = pGUIWindow_CurrentMenu; -LABEL_59: +//LABEL_59: v18 = v67++ + 1; } ++v81; } - while ( (signed int)v81 < (signed int)pAwardsTextColors ); + while ( v81 <= &pMagicSkills[8]); if ( !v71 ) v17->DrawText( pFontLucida, @@ -429,7 +436,10 @@ } v31 = v30->field_1C; if ( SBYTE1(v31) >= 0 || (BYTE1(v31) &= 0x7Fu, v31 != v64) ) - goto LABEL_89; + { + v29 = v68++ + 1; + continue; + } v27 = v30->uY; ++v72; v60 = 0; @@ -465,7 +475,10 @@ if ( !(v90 & 0xC0) ) { sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v64], uYb); - goto LABEL_88; + pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0); + v28 = pGUIWindow_CurrentMenu; + v29 = v68++ + 1; + continue; } v35 = pGlobalTXT_LocalizationStrings[432]; if ( (v90 & 0x80u) == 0 ) @@ -478,15 +491,15 @@ v48 = v91; } sprintf(pTmpBuf, "%s ", pSkillNames[v64], v34, v48, v52, v56); -LABEL_88: +//LABEL_88: pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, v27, v60, pTmpBuf, 0, 0, 0); v28 = pGUIWindow_CurrentMenu; -LABEL_89: +//LABEL_89: v29 = v68++ + 1; } ++v82; } - while ( (signed int)v82 < (signed int)dword_4E2A2C ); + while ( v82 <= &pArmorSkills[4]); if ( !v72 ) { v27 = v27 + LOBYTE(pFontLucida->uFontHeight) - 3; @@ -497,7 +510,7 @@ pGUIWindow_CurrentMenu->DrawText(pFontArrus, 248, uYc, a5, pTmpBuf, 0, 0, 0); v36 = pGUIWindow_CurrentMenu; v73 = 0; - v83 = dword_4E2A50; + v83 = pMiscSkills; do { v37 = 0; @@ -518,7 +531,11 @@ } v39 = v38->field_1C; if ( SBYTE1(v39) >= 0 || (BYTE1(v39) &= 0x7Fu, v39 != v65) ) - goto LABEL_119; + { + //goto LABEL_119; + v37 = v69++ + 1; + continue; + } ++v73; uYc = v38->uY; v40 = pPlayer->pActiveSkills[v65]; @@ -553,7 +570,10 @@ if ( !(v40 & 0xC0) ) { sprintf(pTmpBuf, "%s\r177%2d", pSkillNames[v65], v42); - goto LABEL_118; + LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0); + v36 = pGUIWindow_CurrentMenu; + v37 = v69++ + 1; + continue; } v25 = (v40 & 0x80u) != 0; v44 = pGlobalTXT_LocalizationStrings[432]; @@ -567,15 +587,13 @@ v49 = v92; } sprintf(pTmpBuf, "%s ", pSkillNames[v65], v43, v49, v53, v57); -LABEL_118: LOBYTE(v38) = pGUIWindow_CurrentMenu->DrawText(pFontLucida, 248, uYc, v61, pTmpBuf, 0, 0, 0); v36 = pGUIWindow_CurrentMenu; -LABEL_119: v37 = v69++ + 1; } ++v83; } - while ( (signed int)v83 < (signed int)_4E2A80_skills ); + while ( v83 <= &pMiscSkills[11]); if ( !v73 ) LOBYTE(v38) = v36->DrawText( pFontLucida,
--- a/mm7_5.cpp Sun Jan 27 09:58:10 2013 +0000 +++ b/mm7_5.cpp Sun Jan 27 11:39:11 2013 +0000 @@ -17836,7 +17836,7 @@ a5 = pGUIWindow_CurrentMenu->uNumControls; v18 = &pParty->pPlayers[v0-1]; //&stru_AA1058[3].pSounds[6972 * v0 + 40552]; v2 = pFontLucida; - v14 = dword_4E2A2C; + v14 = pWeaponSkills; v3 = 2 * LOBYTE(pFontLucida->uFontHeight) + 13; do { @@ -17851,10 +17851,10 @@ } ++v14; } - while ( v14 <= &dword_4E2A2C[8] ); + while ( v14 <= &pWeaponSkills[8] ); if ( !v12 ) v3 = v3 + LOBYTE(v2->uFontHeight) - 3; - v15 = _4E2A80_skills; + v15 = pMagicSkills; v5 = v3 + 2 * LOBYTE(v2->uFontHeight) - 6; do { @@ -17868,7 +17868,7 @@ } ++v15; } - while ( v15 <= &_4E2A80_skills[8] ); + while ( v15 <= &pMagicSkills[8] ); v13 = 0; v16 = pArmorSkills; v7 = 2 * LOBYTE(v2->uFontHeight) + 13; @@ -17888,7 +17888,7 @@ while ( v16 <= &pArmorSkills[4] ); if ( !v13 ) v7 = v7 + LOBYTE(v2->uFontHeight) - 3; - v17 = dword_4E2A50; + v17 = pMiscSkills; v9 = v7 + 2 * LOBYTE(v2->uFontHeight) - 6; do { @@ -17902,7 +17902,7 @@ } ++v17; } - while ( v17 <= &dword_4E2A50[11] ); + while ( v17 <= &pMiscSkills[11] ); if ( a2 ) pGUIWindow_CurrentMenu->_41D08F(a2, 1, 0, a5); } \ No newline at end of file
--- a/mm7_data.cpp Sun Jan 27 09:58:10 2013 +0000 +++ b/mm7_data.cpp Sun Jan 27 11:39:11 2013 +0000 @@ -477,9 +477,9 @@ __int16 RightClickPortraitXmax[4]; void *off_4E2A12; // weak int pArmorSkills[5]={ 9, 10, 11, 8, 30}; -int dword_4E2A2C[9]={3, 5, 2, 6, 4, 0, 1, 31, 7}; -int dword_4E2A50[12]={35, 33, 24, 21, 32, 36, 29, 25, 22, 26, 23, 34}; -int _4E2A80_skills[9]={12, 13, 14, 15, 16, 17, 18, 19, 20}; +int pWeaponSkills[9]={3, 5, 2, 6, 4, 0, 1, 31, 7}; +int pMiscSkills[12]={35, 33, 24, 21, 32, 36, 29, 25, 22, 26, 23, 34}; +int pMagicSkills[9]={12, 13, 14, 15, 16, 17, 18, 19, 20}; unsigned __int8 pAwardsTextColors[20]; unsigned int pHealthBarPos[4] = {22, 137, 251, 366}; unsigned int pManaBarPos[4] = {102, 217, 331, 447};
--- a/mm7_data.h Sun Jan 27 09:58:10 2013 +0000 +++ b/mm7_data.h Sun Jan 27 11:39:11 2013 +0000 @@ -465,9 +465,9 @@ extern __int16 RightClickPortraitXmax[4]; extern void *off_4E2A12; // weak extern int pArmorSkills[5]; -extern int dword_4E2A2C[9]; -extern int dword_4E2A50[12]; -extern int _4E2A80_skills[9]; +extern int pWeaponSkills[9]; +extern int pMiscSkills[12]; +extern int pMagicSkills[9]; extern unsigned __int8 pAwardsTextColors[20]; extern unsigned int pHealthBarPos[4]; extern unsigned int pManaBarPos[4];