mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
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:
@@ -731,7 +731,7 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
|
|||||||
swprintf( sString, L"$%d", iPrice );
|
swprintf( sString, L"$%d", iPrice );
|
||||||
|
|
||||||
mprintf( sX, sY, sString );
|
mprintf( sX, sY, sString );
|
||||||
sY += usFontHeight;
|
sY += usFontHeight + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( gGameExternalOptions.fMilitiaResources && !gGameExternalOptions.fMilitiaUseSectorInventory )
|
if ( gGameExternalOptions.fMilitiaResources && !gGameExternalOptions.fMilitiaUseSectorInventory )
|
||||||
@@ -744,12 +744,12 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
|
|||||||
{
|
{
|
||||||
if ( dvalue_Gun > 0.0001f )
|
if ( dvalue_Gun > 0.0001f )
|
||||||
{
|
{
|
||||||
SetFontForeground( FONT_BEIGE );
|
SetFontForeground( FONT_ORANGE );
|
||||||
SetFontBackground( FONT_BLACK );
|
SetFontBackground( FONT_BLACK );
|
||||||
|
|
||||||
swprintf( sString, L"%5.2f", dvalue_Gun );
|
swprintf( sString, L"%-5.2f", dvalue_Gun );
|
||||||
mprintf( sX, sY, sString );
|
mprintf( sX, sY, sString );
|
||||||
sY += usFontHeight;
|
sY += usFontHeight + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( dvalue_Armour > 0.0001f )
|
if ( dvalue_Armour > 0.0001f )
|
||||||
@@ -757,9 +757,9 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
|
|||||||
SetFontForeground( FONT_LTKHAKI );
|
SetFontForeground( FONT_LTKHAKI );
|
||||||
SetFontBackground( FONT_BLACK );
|
SetFontBackground( FONT_BLACK );
|
||||||
|
|
||||||
swprintf( sString, L"%5.2f", dvalue_Armour );
|
swprintf( sString, L"%-5.2f", dvalue_Armour );
|
||||||
mprintf( sX, sY, sString );
|
mprintf( sX, sY, sString );
|
||||||
sY += usFontHeight;
|
sY += usFontHeight + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( dvalue_Misc > 0.0001f )
|
if ( dvalue_Misc > 0.0001f )
|
||||||
@@ -767,9 +767,9 @@ BOOLEAN RenderItemInPoolSlot( INT32 iCurrentSlot, INT32 iFirstSlotOnPage )
|
|||||||
SetFontForeground( FONT_LTBLUE );
|
SetFontForeground( FONT_LTBLUE );
|
||||||
SetFontBackground( FONT_BLACK );
|
SetFontBackground( FONT_BLACK );
|
||||||
|
|
||||||
swprintf( sString, L"%5.2f", dvalue_Misc );
|
swprintf( sString, L"%-5.2f", dvalue_Misc );
|
||||||
mprintf( sX, sY, sString );
|
mprintf( sX, sY, sString );
|
||||||
sY += usFontHeight;
|
sY += usFontHeight + 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7853,7 +7853,7 @@ void DisplayMilitiaGroupBox()
|
|||||||
FLOAT val_gun, val_armour, val_misc;
|
FLOAT val_gun, val_armour, val_misc;
|
||||||
GetResources( val_gun, val_armour, val_misc );
|
GetResources( val_gun, val_armour, val_misc );
|
||||||
|
|
||||||
SetFontForeground( FONT_BEIGE );
|
SetFontForeground( FONT_ORANGE );
|
||||||
swprintf( sString, szSMilitiaResourceText[1] );
|
swprintf( sString, szSMilitiaResourceText[1] );
|
||||||
mprintf( x, y, sString );
|
mprintf( x, y, sString );
|
||||||
x += 5 + StringPixLength( sString, FONT12ARIAL );
|
x += 5 + StringPixLength( sString, FONT12ARIAL );
|
||||||
|
|||||||
Reference in New Issue
Block a user