comparison mm7_4.cpp @ 262:2d6dda2e0405

m
author Ritor1
date Mon, 18 Feb 2013 12:38:07 +0600
parents 83f85ab6079a
children 8cf4fe6b4941
comparison
equal deleted inserted replaced
261:c3bfe1eb3de7 262:2d6dda2e0405
8988 v5 = v14; 8988 v5 = v14;
8989 if ( v13 > v5 ) 8989 if ( v13 > v5 )
8990 v5 = v13; 8990 v5 = v13;
8991 if ( v4 > v5 ) 8991 if ( v4 > v5 )
8992 v5 = v4; 8992 v5 = v4;
8993 sprintf( 8993 sprintf(pTmpBuf2, "%s\n\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s",
8994 pTmpBuf2, 8994 pSpellStats->pInfos[v1].pDescription, pGlobalTXT_LocalizationStrings[431], // "Normal"
8995 "%s\n\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s\t000\n%s\t%03d:\t%03d%s", 8995 v5 + 3, v5 + 10, pSpellStats->pInfos[v1].pBasicSkillDesc, pGlobalTXT_LocalizationStrings[433], // "Expert"
8996 pSpellStats->pInfos[v1].pDescription, 8996 v5 + 3, v5 + 10, pSpellStats->pInfos[v1].pExpertSkillDesc, pGlobalTXT_LocalizationStrings[432], // "Master"
8997 pGlobalTXT_LocalizationStrings[431], // "Normal" 8997 v5 + 3, v5 + 10, pSpellStats->pInfos[v1].pMasterSkillDesc, pGlobalTXT_LocalizationStrings[96], // "Grand"
8998 v5 + 3, 8998 v5 + 3, v5 + 10, pSpellStats->pInfos[v1].pGrandmasterSkillDesc);
8999 v5 + 10,
9000 pSpellStats->pInfos[v1].pBasicSkillDesc,
9001 pGlobalTXT_LocalizationStrings[433], // "Expert"
9002 v5 + 3,
9003 v5 + 10,
9004 pSpellStats->pInfos[v1].pExpertSkillDesc,
9005 pGlobalTXT_LocalizationStrings[432], // "Master"
9006 v5 + 3,
9007 v5 + 10,
9008 pSpellStats->pInfos[v1].pMasterSkillDesc,
9009 pGlobalTXT_LocalizationStrings[96], // "Grand"
9010 v5 + 3,
9011 v5 + 10,
9012 pSpellStats->pInfos[v1].pGrandmasterSkillDesc);
9013 v6 = pFontSmallnum->CalcTextHeight(pTmpBuf2, &a1, 0, 0); 8999 v6 = pFontSmallnum->CalcTextHeight(pTmpBuf2, &a1, 0, 0);
9014 a1.uFrameHeight += v6; 9000 a1.uFrameHeight += v6;
9015 if ( (signed int)a1.uFrameHeight < 150 ) 9001 if ( (signed int)a1.uFrameHeight < 150 )
9016 a1.uFrameHeight = 150; 9002 a1.uFrameHeight = 150;
9017 a1.uFrameWidth = 460; 9003 a1.uFrameWidth = 460;
9026 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); 9012 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0);
9027 a1.uFrameZ = a1.uFrameX + 107; 9013 a1.uFrameZ = a1.uFrameX + 107;
9028 a1.uFrameWidth = 108; 9014 a1.uFrameWidth = 108;
9029 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u); 9015 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u);
9030 sprintf(pTmpBuf, "%s\n%d", pGlobalTXT_LocalizationStrings[522], *(&pSpellDatas[0].uNormalLevelMana + 10 * v1)); 9016 sprintf(pTmpBuf, "%s\n%d", pGlobalTXT_LocalizationStrings[522], *(&pSpellDatas[0].uNormalLevelMana + 10 * v1));
9031 return a1.DrawTitleText( 9017 return a1.DrawTitleText(pFontComic, 0xCu, a1.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, 0, pTmpBuf, 3);
9032 pFontComic,
9033 0xCu,
9034 a1.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16,
9035 0,
9036 pTmpBuf,
9037 3u);
9038 } 9018 }
9039 9019
9040 9020
9041 //----- (004B1784) -------------------------------------------------------- 9021 //----- (004B1784) --------------------------------------------------------
9042 bool __cdecl sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() 9022 bool __cdecl sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win()
14061 if ( v66 < 1 ) 14041 if ( v66 < 1 )
14062 v66 = 1; 14042 v66 = 1;
14063 if ( v61 != (Player *)v2 ) 14043 if ( v61 != (Player *)v2 )
14064 { 14044 {
14065 memcpy(&v32, (char *)&pMapStats + 68 * (unsigned __int8)byte_4F09B0[v26 * 4], 0x44u); 14045 memcpy(&v32, (char *)&pMapStats + 68 * (unsigned __int8)byte_4F09B0[v26 * 4], 0x44u);
14066 sprintf( 14046 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[404],
14067 pTmpBuf,
14068 pGlobalTXT_LocalizationStrings[404],
14069 v66, 14047 v66,
14070 *(int *)&v32, 14048 *(int *)&v32,
14071 v33, 14049 v33,
14072 v34, 14050 v34,
14073 v35, 14051 v35,