mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user