mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- Bugfix: Enhanced IMP Creation
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2963 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "GameSettings.h"
|
#include "GameSettings.h"
|
||||||
#include "IMP Disability Trait.h" // Added this one - SANDRO
|
#include "IMP Disability Trait.h" // Added this one - SANDRO
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define STARTING_LEVEL_BOX_POS_X ( 51 )
|
#define STARTING_LEVEL_BOX_POS_X ( 51 )
|
||||||
@@ -255,8 +256,8 @@ void RenderIMPAttributeSelection( void )
|
|||||||
// don't blit bonus if reviewing
|
// don't blit bonus if reviewing
|
||||||
if( fReviewStats != TRUE )
|
if( fReviewStats != TRUE )
|
||||||
{
|
{
|
||||||
|
// Bonus points remaining
|
||||||
DisplayWrappedString( LAPTOP_SCREEN_UL_X + 355, LAPTOP_SCREEN_WEB_UL_Y + 51, ( 640 ), 2, FONT12ARIAL, FONT_WHITE, sgAttributeSelectionText[2],FONT_BLACK,FALSE,0);
|
DisplayWrappedString( LAPTOP_SCREEN_UL_X + 355, LAPTOP_SCREEN_WEB_UL_Y + 51, ( 640 ), 2, FONT12ARIAL, FONT_WHITE, sgAttributeSelectionText[2],FONT_BLACK,FALSE,0);
|
||||||
DisplayWrappedString( LAPTOP_SCREEN_UL_X + 59, LAPTOP_SCREEN_WEB_UL_Y + 36, ( 240 ), 2, FONT10ARIAL, 142, sgAttributeSelectionText[0],FONT_BLACK,FALSE,0);
|
|
||||||
|
|
||||||
// this show us the exact maximum attribute based on ini option
|
// this show us the exact maximum attribute based on ini option
|
||||||
CHAR16 sMaxPntsString[64];
|
CHAR16 sMaxPntsString[64];
|
||||||
@@ -265,14 +266,10 @@ void RenderIMPAttributeSelection( void )
|
|||||||
if (iMaxPointsToShow > 100 )
|
if (iMaxPointsToShow > 100 )
|
||||||
iMaxPointsToShow = 100;
|
iMaxPointsToShow = 100;
|
||||||
|
|
||||||
swprintf(sMaxPntsString, L"%d", iMaxPointsToShow);
|
swprintf(sMaxPntsString, L"%s %d%s", sgAttributeSelectionText[0], iMaxPointsToShow, L".");
|
||||||
|
|
||||||
// set font color
|
// Explanatory text
|
||||||
SetFontForeground( 142 );
|
DisplayWrappedString( LAPTOP_SCREEN_UL_X + 59, LAPTOP_SCREEN_WEB_UL_Y + 36, ( 240 ), 2, FONT10ARIAL, 142, sMaxPntsString,FONT_BLACK,FALSE,0);
|
||||||
SetFontBackground( FONT_BLACK );
|
|
||||||
SetFont( FONT10ARIAL );
|
|
||||||
// print string
|
|
||||||
mprintf( LAPTOP_SCREEN_UL_X + 88 ,LAPTOP_SCREEN_WEB_UL_Y + 58, sMaxPntsString );
|
|
||||||
|
|
||||||
InvalidateRegion( LAPTOP_SCREEN_UL_X + 65, LAPTOP_SCREEN_WEB_UL_Y + 51, LAPTOP_SCREEN_UL_X + 85, LAPTOP_SCREEN_WEB_UL_Y + 71 );
|
InvalidateRegion( LAPTOP_SCREEN_UL_X + 65, LAPTOP_SCREEN_WEB_UL_Y + 51, LAPTOP_SCREEN_UL_X + 85, LAPTOP_SCREEN_WEB_UL_Y + 71 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user