Dynamic Dialogue update: pressing 'ESC' in tactical also fast forwards the dialogue boxes.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7298 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2014-06-28 10:15:02 +00:00
parent 3a9cb5ecc3
commit a83f38a36e
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -372,7 +372,7 @@ void DelayBoxDestruction( UINT32 aVal )
}
}
void DelayBoxDestructionBy( UINT32 aVal )
void DelayBoxDestructionBy( INT32 aVal )
{
// now find this box in the list
for ( UINT8 i = 0; i < MYBOX_NUMBER; ++i )
@@ -497,7 +497,7 @@ IMPDialogueChooseBox::Display( )
if ( !IsDisplayed( ) )
return;
// we draw a line that shwos us how much time we have for the decision
// we draw a line that shows us how much time we have for the decision
UINT32 totaltime = max( 0, musEndTime - musCreationTime );
if ( totaltime )
+1 -1
View File
@@ -124,7 +124,7 @@ BOOLEAN RemoveDDBox( UINT8 aID );
void RefreshBoxes( );
void DelayBoxDestruction( UINT32 aVal );
void DelayBoxDestructionBy( UINT32 aVal );
void DelayBoxDestructionBy( INT32 aVal );
class IMPDialogueChooseBox : public WidgetBase
+5
View File
@@ -120,6 +120,7 @@
#include "DisplayCover.h" // added by Sevenfm
#include "InterfaceItemImages.h" // added by Sevenfm
#include "DynamicDialogueWidget.h" // added by Flugente for DelayBoxDestructionBy(...)
//forward declarations of common classes to eliminate includes
class OBJECTTYPE;
@@ -1720,6 +1721,10 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
DeleteTalkingMenu();
EndMeanwhile();
}
// Flugente: speed up dynamic dialogue boxes
// Note that this will behave oddly on the morning of January 1st 1970 :-)
DelayBoxDestructionBy( - gGameExternalOptions.usDynamicDialogueTimeOffset );
}
#endif