mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
New option AUTO_HIDE_PB (TRUE) enables auto hiding of the progress bar when mouse cursor is on the top map row.
AI soldiers will now avoid staying at top map row. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8723 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -786,6 +786,9 @@ UINT32 HandleTacticalUI( void )
|
||||
return( ReturnVal );
|
||||
}
|
||||
|
||||
bool bHideTopMessage = false;
|
||||
extern INT32 HEIGHT_PROGRESSBAR;
|
||||
|
||||
void SetUIMouseCursor( )
|
||||
{
|
||||
UINT32 uiCursorFlags;
|
||||
@@ -794,6 +797,28 @@ void SetUIMouseCursor( )
|
||||
BOOLEAN fUpdateNewCursor = TRUE;
|
||||
static INT32 sOldExitGridNo = NOWHERE;
|
||||
static BOOLEAN fOkForExit = FALSE;
|
||||
INT32 usGridNo;
|
||||
|
||||
// sevenfm: hide top bar
|
||||
if (gusMouseYPos <= HEIGHT_PROGRESSBAR &&
|
||||
GetMouseMapPos(&usGridNo) &&
|
||||
!TileIsOutOfBounds(usGridNo) &&
|
||||
NorthSpot(usGridNo, gsInterfaceLevel) &&
|
||||
!bHideTopMessage &&
|
||||
gTacticalStatus.fInTopMessage)
|
||||
{
|
||||
bHideTopMessage = true;
|
||||
EndTopMessage();
|
||||
}
|
||||
|
||||
// sevenfm: reveal top bar
|
||||
if (gusMouseYPos > HEIGHT_PROGRESSBAR &&
|
||||
!gfUIFullTargetFound &&
|
||||
bHideTopMessage)
|
||||
{
|
||||
gTacticalStatus.fInTopMessage = TRUE;
|
||||
bHideTopMessage = false;
|
||||
}
|
||||
|
||||
// Check if we moved from confirm mode on exit arrows
|
||||
// If not in move mode, return!
|
||||
|
||||
Reference in New Issue
Block a user