mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
*********************************************************
* 2006/05/01 * * Little Alien * * Developed in VS 2003 * ********************************************************* Source: - Added militia control in tactical (can be turned on/off in ja2.ini file) - Aiming/readying gun: show in red points needed for readying gun Data: - Added new ja2.ini git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@46 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
#include "Cursor Control.h"
|
||||
#endif
|
||||
|
||||
//aim
|
||||
extern UINT8 gubShowActionPointsInRed;
|
||||
UINT8 gpShadesFromWhiteToRed[] = {FONT_MCOLOR_WHITE, FONT_MCOLOR_DKWHITE, FONT_MCOLOR_DKGRAY, FONT_MCOLOR_DKRED, FONT_MCOLOR_RED };
|
||||
//aim
|
||||
|
||||
#define NUM_MOUSE_LEVELS 2
|
||||
|
||||
@@ -1451,6 +1455,16 @@ void DrawMouseText( )
|
||||
SetFontBackground( FONT_MCOLOR_BLACK );
|
||||
SetFontForeground( FONT_MCOLOR_WHITE );
|
||||
SetFontShadow( DEFAULT_SHADOW );
|
||||
|
||||
//aim
|
||||
if ( gubShowActionPointsInRed )
|
||||
{
|
||||
SetFontForeground( gpShadesFromWhiteToRed[ gubShowActionPointsInRed - 1 ] );
|
||||
gubShowActionPointsInRed = 0;
|
||||
}
|
||||
else
|
||||
SetFontForeground( FONT_MCOLOR_WHITE );
|
||||
//aim
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1460,6 +1474,14 @@ void DrawMouseText( )
|
||||
|
||||
if ( gfUIDisplayActionPointsBlack )
|
||||
{
|
||||
//aim
|
||||
if ( gubShowActionPointsInRed )
|
||||
{
|
||||
SetFontForeground( gpShadesFromWhiteToRed[ gubShowActionPointsInRed - 1 ] );
|
||||
gubShowActionPointsInRed = 0;
|
||||
}
|
||||
else
|
||||
//aim
|
||||
SetFontForeground( FONT_MCOLOR_WHITE );
|
||||
SetFontShadow( DEFAULT_SHADOW );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user