Skip to content

Conversation

@bobtista
Copy link

-Closes #1896

Adds the ability to skip campaign Bink videos by pressing ESC, matching the behavior of other movies in the game.

Changes:

  • Added isVideoPlaying() and skipVideo() methods to SinglePlayerLoadScreen
  • Updated video playback loops to check for skip requests and exit early when ESC is pressed
  • Updated ESC key handler in WindowXlat to detect campaign videos and trigger skip

Tested with Zero Hour USA Solo Play intro video.

@xezon xezon added Enhancement Is new feature or request Minor Severity: Minor < Major < Critical < Blocker Input Gen Relates to Generals ZH Relates to Zero Hour labels Nov 24, 2025
@bobtista bobtista force-pushed the bobtista/campaign-bink-video-skip-esc branch from 1748b1b to 8548221 Compare November 25, 2025 16:31
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The edits between Generals and Zero Hour need to be properly synced.

{
TheKeyboard->UPDATE();
TheKeyboard->createStreamMessages();

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still has one excess edit here.

virtual void update( Int percent ); ///< Update the state of the slider bars
virtual void processProgress(Int playerId, Int percentage) = 0;
virtual void setProgressRange( Int min, Int max ) = 0;
virtual Bool skipVideo( void ) { return FALSE; }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is not pure virtual unlike Generals.

Please double check that Generals and GeneralsMD have identical edits.

@xezon
Copy link

xezon commented Nov 28, 2025

Does not compile :P

@bobtista
Copy link
Author

Does not compile :P

Fixed :)


// process event through window system
if( TheWindowManager )
{
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This edit look different to Generals MD. Please make a pass and eliminate all differences in edits between the games. Both games must be touched identically.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok they both use the braces for the conditional. I found an include that differed, fixed that, and otherwise I just see a newline that's added in one file for formatting where it wouldn't be required in the other file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Is new feature or request Gen Relates to Generals Input Minor Severity: Minor < Major < Critical < Blocker ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Use ESC key to skip campaign (Bink) videos

2 participants