Only display IMP gear cost if costs exceed the free amount (IMP_PROFILE_COST), mention the free amount

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8838 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2020-07-04 17:30:46 +00:00
parent ad59900b3d
commit 8c2c0dd71d
9 changed files with 14 additions and 11 deletions
+6 -3
View File
@@ -494,9 +494,12 @@ void IMPGearDisplay( )
}
}
CHAR16 wTemp[50];
swprintf( wTemp, szIMPGearWebSiteText[6], GetIMPGearCost( ) );
DrawTextToScreen( wTemp, LAPTOP_SCREEN_UL_X + 180, LAPTOP_SCREEN_WEB_UL_Y + 360, LAPTOP_TEXT_WIDTH, FONT14ARIAL, IMP_GEAR__COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED );
if ( gIMPGearCost > gGameExternalOptions.iIMPProfileCost )
{
CHAR16 wTemp[50];
swprintf( wTemp, szIMPGearWebSiteText[6], GetIMPGearCost(), gGameExternalOptions.iIMPProfileCost );
DrawTextToScreen( wTemp, LAPTOP_SCREEN_UL_X + 100, LAPTOP_SCREEN_WEB_UL_Y + 360, LAPTOP_TEXT_WIDTH, FONT12ARIAL, IMP_GEAR__COLOR, FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED );
}
}
void DisplayGear( UINT16 usItem, UINT16 usPosX, UINT16 usPosY, BOOLEAN fWithBackGround, UINT8 aNumber, BOOLEAN fDisplayNumber )
+1 -1
View File
@@ -11152,7 +11152,7 @@ STR16 szIMPGearWebSiteText[] =
// IMP Gear Entrance
L"I.M.P 装备", // L"I.M.P. Equipment",
L"装备价格: %d美金", //L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -11168,7 +11168,7 @@ STR16 szIMPGearWebSiteText[] = // TODO.Translate
// IMP Gear Entrance
L"I.M.P. Equipment",
L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -11166,7 +11166,7 @@ STR16 szIMPGearWebSiteText[] =
// IMP Gear Entrance
L"I.M.P. Equipment",
L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)",
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -11150,7 +11150,7 @@ STR16 szIMPGearWebSiteText[] = // TODO.Translate
// IMP Gear Entrance
L"I.M.P. Equipment",
L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -10980,7 +10980,7 @@ STR16 szIMPGearWebSiteText[] = // TODO.Translate
// IMP Gear Entrance
L"I.M.P. Equipment",
L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -11159,7 +11159,7 @@ STR16 szIMPGearWebSiteText[] = // TODO.Translate
// IMP Gear Entrance
L"I.M.P. Equipment",
L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -11172,7 +11172,7 @@ STR16 szIMPGearWebSiteText[] = // TODO.Translate
// IMP Gear Entrance
L"I.M.P. Equipment",
L"Equipment cost: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =
+1 -1
View File
@@ -11152,7 +11152,7 @@ STR16 szIMPGearWebSiteText[] =
// IMP Gear Entrance
L"I.M.P. Экипировка",
L"Цена снаряжения: %d$",
L"Additional Cost: %d$ (%d$ prepaid)", // TODO.Translate
};
STR16 szIMPGearDropDownText[] =