rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/PokemonHackSourceCode/ @ 289  →  /PokemonHackSourceCode/ @ 290
/PokemonHackSourceCode/PokemonMemHack/MemPmSkillPage.cpp
@@ -152,10 +152,53 @@
void CMemPmSkillPage::SetSkillDesc(UINT uID)
{
static WORD wCurSkill = -1;
SkillListEntry * pSkill;
CString szDesc, szTemp;
 
if(uID == -1 && wCurSkill < SKILL_COUNT)
{
SetDlgItemText(IDC_SKILL_DESC, cfg.pSkillDescList[wCurSkill].rgszText[cfg.dwLang]);
pSkill = g_MemRom.GetSkillListEntry(wCurSkill);
szDesc.Format(_T("%s\n"),cfg.pSkillDescList[wCurSkill].rgszText[cfg.dwLang]);
if(pSkill)
{
// type
if(pSkill->bType < dwTypesCount)
szTemp.Format(_T("ÊôÐÔ£º%s"), szTypes[pSkill->bType]);
else
szTemp.Format(_T("ÊôÐÔ£º£¿£¿£¿(0x%02x)"), pSkill->bType);
szDesc = szDesc + szTemp;
 
// power
if(pSkill->bPower > 1)
szTemp.Format(_T("ÍþÁ¦£º%lu"), pSkill->bPower);
else
szTemp.Format(_T("ÍþÁ¦£º"));
szDesc = szDesc + _T(" ") + szTemp;
 
// acc
if(pSkill->bAccuracy > 0)
szTemp.Format(_T("ÃüÖУº%lu%%"), pSkill->bAccuracy);
else
szTemp.Format(_T("ÃüÖУº±ØÖÐ"));
szDesc = szDesc + _T(" ") + szTemp;
 
// pp
szTemp.Format(_T("£Ð£Ð£º%lu"), pSkill->bPP);
szDesc = szDesc + _T(" ") + szTemp;
 
// priority
szTemp.Format(_T("ÓÅÏÈ£º%li"), (LONG)(pSkill->nPriority));
szDesc = szDesc + _T(" ") + szTemp;
 
// effect ratio
if(pSkill->bPower > 1)
szTemp.Format(_T("Ч¹û¼¸ÂÊ£º%lu%%"), pSkill->bEffectRatio);
else
szTemp.Format(_T("Ч¹û¼¸ÂÊ£º±ØÈ»·¢¶¯"));
szDesc = szDesc + _T(" ") + szTemp;
 
}
SetDlgItemText(IDC_SKILL_DESC, szDesc);
}
else
{
@@ -189,7 +232,48 @@
if(wSkill != wCurSkill && wSkill < SKILL_COUNT)
{
wCurSkill = wSkill;
SetDlgItemText(IDC_SKILL_DESC, cfg.pSkillDescList[wCurSkill].rgszText[cfg.dwLang]);
pSkill = g_MemRom.GetSkillListEntry(wCurSkill);
szDesc.Format(_T("%s\n"),cfg.pSkillDescList[wCurSkill].rgszText[cfg.dwLang]);
if(pSkill)
{
// type
if(pSkill->bType < dwTypesCount)
szTemp.Format(_T("ÊôÐÔ£º%s"), szTypes[pSkill->bType]);
else
szTemp.Format(_T("ÊôÐÔ£º£¿£¿£¿(0x%02x)"), pSkill->bType);
szDesc = szDesc + szTemp;
 
// power
if(pSkill->bPower > 1)
szTemp.Format(_T("ÍþÁ¦£º%lu"), pSkill->bPower);
else
szTemp.Format(_T("ÍþÁ¦£º-"));
szDesc = szDesc + _T(" ") + szTemp;
 
// acc
if(pSkill->bAccuracy > 0)
szTemp.Format(_T("ÃüÖУº%lu%%"), pSkill->bAccuracy);
else
szTemp.Format(_T("ÃüÖУº±ØÖÐ"));
szDesc = szDesc + _T(" ") + szTemp;
 
// pp
szTemp.Format(_T("£Ð£Ð£º%lu"), pSkill->bPP);
szDesc = szDesc + _T(" ") + szTemp;
 
// priority
szTemp.Format(_T("ÓÅÏÈ£º%li"), (LONG)(pSkill->nPriority));
szDesc = szDesc + _T(" ") + szTemp;
 
// effect ratio
if(pSkill->bPower > 1)
szTemp.Format(_T("Ч¹û¼¸ÂÊ£º%lu%%"), pSkill->bEffectRatio);
else
szTemp.Format(_T("Ч¹û¼¸ÂÊ£º±ØÈ»·¢¶¯"));
szDesc = szDesc + _T(" ") + szTemp;
 
}
SetDlgItemText(IDC_SKILL_DESC, szDesc);
}
}
}