comparison UIHouses.cpp @ 886:b6573b99ca40

SalesProcess function
author Ritor1
date Tue, 02 Apr 2013 17:33:20 +0600
parents caa86b11dcdd
children 4676774b225c 2fe7bcaa52e4
comparison
equal deleted inserted replaced
885:4004fb0bf60c 886:b6573b99ca40
4825 all_text_height += pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[400], &working_window, 0, 0); //"Buy Spells" 4825 all_text_height += pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[400], &working_window, 0, 0); //"Buy Spells"
4826 v61++; 4826 v61++;
4827 } 4827 }
4828 else 4828 else
4829 { 4829 {
4830 if( byte_4ED970_skill_learn_ability_by_class_table[pPlayers[uActiveCharacter]->classType][v23-36] && !pPlayers[uActiveCharacter]->pActiveSkills[v23-36] ) 4830 if( byte_4ED970_skill_learn_ability_by_class_table[pPlayers[uActiveCharacter]->classType][v23-36] && pPlayers[uActiveCharacter]->pActiveSkills[v23-36] )
4831 {
4832 all_text_height += pFontArrus->CalcTextHeight(pSkillNames[v23 - 36], &working_window, 0, 0);
4833 v61++;
4834 pSkillFlag = true;
4835 }
4836 if( byte_4ED970_skill_learn_ability_by_class_table[pPlayers[uActiveCharacter]->classType][v23 - 36] && !pPlayers[uActiveCharacter]->pActiveSkills[v23 - 36] )
4831 { 4837 {
4832 all_text_height += pFontArrus->CalcTextHeight(pSkillNames[v23 - 36], &working_window, 0, 0); 4838 all_text_height += pFontArrus->CalcTextHeight(pSkillNames[v23 - 36], &working_window, 0, 0);
4833 v61++; 4839 v61++;
4834 pSkillFlag = true; 4840 pSkillFlag = true;
4835 } 4841 }
4878 pTextColor = pColorYellow; 4884 pTextColor = pColorYellow;
4879 if ( pDialogueWindow->pCurrentPosActiveItem != pItemNum ) 4885 if ( pDialogueWindow->pCurrentPosActiveItem != pItemNum )
4880 pTextColor = pColorWhite; 4886 pTextColor = pColorWhite;
4881 working_window.DrawTitleText(pFontArrus, 0, v32, pTextColor, pText, 3); 4887 working_window.DrawTitleText(pFontArrus, 0, v32, pTextColor, pText, 3);
4882 } 4888 }
4883 if ( !byte_4ED970_skill_learn_ability_by_class_table[pPlayers[uActiveCharacter]->classType][v29 - 36]
4884 || pPlayers[uActiveCharacter]->pActiveSkills[v29-36] )
4885 {
4886 pButton->uW = 0;
4887 pButton->uHeight = 0;
4888 pButton->uY = 0;
4889 }
4890 else 4889 else
4891 { 4890 {
4892 pButton->uY = v58 + v26; 4891 if ( byte_4ED970_skill_learn_ability_by_class_table[pPlayers[uActiveCharacter]->classType][v29 - 36] && !pPlayers[uActiveCharacter]->pActiveSkills[v23-36] )
4893 pTextHeight = pFontArrus->CalcTextHeight(pSkillNames[v29 - 36], &working_window, 0, 0); 4892 {
4894 v32 = pButton->uY; 4893 pButton->uY = v58 + v26;
4895 pButton->uHeight = pTextHeight; 4894 pTextHeight = pFontArrus->CalcTextHeight(pSkillNames[v29 - 36], &working_window, 0, 0);
4896 v33 = v32 + pTextHeight - 1; 4895 v32 = pButton->uY;
4897 pButton->uW = v33; 4896 pButton->uHeight = pTextHeight;
4898 v26 = v33; 4897 v33 = v32 + pTextHeight - 1;
4899 pTextColor = pColorYellow; 4898 pButton->uW = v33;
4900 if ( pDialogueWindow->pCurrentPosActiveItem != pItemNum ) 4899 v26 = v33;
4901 pTextColor = pColorWhite; 4900 pTextColor = pColorYellow;
4902 working_window.DrawTitleText(pFontArrus, 0, v32, pTextColor, pSkillNames[v29 - 36], 3); 4901 if ( pDialogueWindow->pCurrentPosActiveItem != pItemNum )
4903 } 4902 pTextColor = pColorWhite;
4903 working_window.DrawTitleText(pFontArrus, 0, v32, pTextColor, pSkillNames[v29 - 36], 3);
4904 }
4905 else
4906 {
4907 pButton->uW = 0;
4908 pButton->uHeight = 0;
4909 pButton->uY = 0;
4910 }
4911 }
4904 ++pItemNum; 4912 ++pItemNum;
4905 } 4913 }
4906 while ( pItemNum < pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem ); 4914 while ( pItemNum < pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem );
4907 } 4915 }
4908 return; 4916 return;