- New Feature: Added option to disable the automatic cursor swap (between exchanging positions and other actions eg. talking). (by tazpn)

o if enabled in the option screen, the cursor will not change periodically to the exchange position.
o if enabled, you can manually exchange positions by pressing 'x'
o see here: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=290487#Post290487

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4643 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2011-09-09 06:50:17 +00:00
parent 9b566f502c
commit 1687c148f9
12 changed files with 44 additions and 9 deletions
+20 -9
View File
@@ -586,10 +586,13 @@ UINT32 HandleTacticalUI( void )
}
}
if ( ( GetJA2Clock( ) - guiUIInterfaceSwapCursorsTime ) > 1000 )
if ( !gGameSettings.fOptions[TOPTION_DISABLE_CURSOR_SWAP] )
{
gfOKForExchangeCursor = !gfOKForExchangeCursor;
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
if ( ( GetJA2Clock( ) - guiUIInterfaceSwapCursorsTime ) > 1000 )
{
gfOKForExchangeCursor = !gfOKForExchangeCursor;
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
}
}
// OK, do a check for on an int tile...
@@ -6553,13 +6556,21 @@ BOOLEAN ValidQuickExchangePosition( )
}
}
if ( fOldOnValidGuy != fOnValidGuy )
if ( gGameSettings.fOptions[TOPTION_DISABLE_CURSOR_SWAP] )
{
// Update timer....
// ATE: Adjust clock for automatic swapping so that the 'feel' is there....
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
// Default it!
gfOKForExchangeCursor = TRUE;
gfOKForExchangeCursor = FALSE;
fOnValidGuy = FALSE;
}
else
{
if ( fOldOnValidGuy != fOnValidGuy )
{
// Update timer....
// ATE: Adjust clock for automatic swapping so that the 'feel' is there....
guiUIInterfaceSwapCursorsTime = GetJA2Clock( );
// Default it!
gfOKForExchangeCursor = TRUE;
}
}
// Update old value.....