Slightly altered militia resource display

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8274 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-07-16 22:13:53 +00:00
parent 57ec4e7fa1
commit 6acbd72c89
2 changed files with 9 additions and 9 deletions
@@ -731,7 +731,7 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
swprintf( sString, L"$%d", iPrice );
mprintf( sX, sY, sString );
sY += usFontHeight;
sY += usFontHeight + 2;
}
if ( gGameExternalOptions.fMilitiaResources && !gGameExternalOptions.fMilitiaUseSectorInventory )
@@ -744,12 +744,12 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
{
if ( dvalue_Gun > 0.0001f )
{
SetFontForeground( FONT_BEIGE );
SetFontForeground( FONT_ORANGE );
SetFontBackground( FONT_BLACK );
swprintf( sString, L"%5.2f", dvalue_Gun );
swprintf( sString, L"%-5.2f", dvalue_Gun );
mprintf( sX, sY, sString );
sY += usFontHeight;
sY += usFontHeight + 2;
}
if ( dvalue_Armour > 0.0001f )
@@ -757,9 +757,9 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
SetFontForeground( FONT_LTKHAKI );
SetFontBackground( FONT_BLACK );
swprintf( sString, L"%5.2f", dvalue_Armour );
swprintf( sString, L"%-5.2f", dvalue_Armour );
mprintf( sX, sY, sString );
sY += usFontHeight;
sY += usFontHeight + 2;
}
if ( dvalue_Misc > 0.0001f )
@@ -767,9 +767,9 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
SetFontForeground( FONT_LTBLUE );
SetFontBackground( FONT_BLACK );
swprintf( sString, L"%5.2f", dvalue_Misc );
swprintf( sString, L"%-5.2f", dvalue_Misc );
mprintf( sX, sY, sString );
sY += usFontHeight;
sY += usFontHeight + 2;
}
}
}
+1 -1
View File
@@ -7853,7 +7853,7 @@ void DisplayMilitiaGroupBox()
FLOAT val_gun, val_armour, val_misc;
GetResources( val_gun, val_armour, val_misc );
SetFontForeground( FONT_BEIGE );
SetFontForeground( FONT_ORANGE );
swprintf( sString, szSMilitiaResourceText[1] );
mprintf( x, y, sString );
x += 5 + StringPixLength( sString, FONT12ARIAL );