comparison UI/UIPopup.cpp @ 2192:c13ae8d8471f

PLAYER_SKILL_BLASTER
author Ritor1
date Thu, 30 Jan 2014 20:13:23 +0600
parents 385040580292
children 70b63fe6587c
comparison
equal deleted inserted replaced
2191:48a28fe1f32f 2192:c13ae8d8471f
1276 spell_info_window.uFrameW = spell_info_window.uFrameHeight + spell_info_window.uFrameY - 1; 1276 spell_info_window.uFrameW = spell_info_window.uFrameHeight + spell_info_window.uFrameY - 1;
1277 spell_info_window.DrawTitleText(pFontArrus, 0x78u, 0xCu, Color16(0xFFu, 0xFFu, 0x9Bu), spell->pName, 3); 1277 spell_info_window.DrawTitleText(pFontArrus, 0x78u, 0xCu, Color16(0xFFu, 0xFFu, 0x9Bu), spell->pName, 3);
1278 spell_info_window.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2.data(), 0, 0, 0); 1278 spell_info_window.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2.data(), 0, 0, 0);
1279 spell_info_window.uFrameWidth = 108; 1279 spell_info_window.uFrameWidth = 108;
1280 spell_info_window.uFrameZ = spell_info_window.uFrameX + 107; 1280 spell_info_window.uFrameZ = spell_info_window.uFrameX + 107;
1281 spell_info_window.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[pPlayers[uActiveCharacter]->lastOpenedSpellbookPage + 12], 3); 1281 int skill_level = SkillToMastery(pPlayers[uActiveCharacter]->pActiveSkills[pPlayers[uActiveCharacter]->lastOpenedSpellbookPage + 12]);
1282 spell_info_window.DrawTitleText(pFontComic, 12, 75, 0, pSkillNames[pPlayers[uActiveCharacter]->lastOpenedSpellbookPage + 12], 3);
1282 sprintf( pTmpBuf.data(), "%s\n%d", pGlobalTXT_LocalizationStrings[LOCSTR_SP_COST], 1283 sprintf( pTmpBuf.data(), "%s\n%d", pGlobalTXT_LocalizationStrings[LOCSTR_SP_COST],
1283 pSpellDatas[spell_index + 11 * pPlayers[uActiveCharacter]->lastOpenedSpellbookPage + 1].mana_per_skill[pPlayers[uActiveCharacter]->pActiveSkills[pPlayers[uActiveCharacter]->lastOpenedSpellbookPage + PLAYER_SKILL_FIRE]]); 1284 pSpellDatas[spell_index + 11 * pPlayers[uActiveCharacter]->lastOpenedSpellbookPage + 1].mana_per_skill[skill_level - 1]);
1284 spell_info_window.DrawTitleText(pFontComic, 0xCu, spell_info_window.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, 0, pTmpBuf.data(), 3); 1285 spell_info_window.DrawTitleText(pFontComic, 12, spell_info_window.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, 0, pTmpBuf.data(), 3);
1285 dword_507B00_spell_info_to_draw_in_popup = 0; 1286 dword_507B00_spell_info_to_draw_in_popup = 0;
1286 } 1287 }
1287 // 507B00: using guessed type int dword_507B00_spell_info_to_draw_in_popup; 1288 // 507B00: using guessed type int dword_507B00_spell_info_to_draw_in_popup;
1288 1289
1289 //----- (00416D62) -------------------------------------------------------- 1290 //----- (00416D62) --------------------------------------------------------