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.

@xezon
Copy link

xezon commented Nov 28, 2025

Does not compile :P

@bobtista
Copy link
Author

Does not compile :P

Fixed :)

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.

I think this review never get done :)

if( TheKeyboard && TheMessageStream )
{
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.

After taking a look at this function, I think this logic can be greatly simplified by cutting the Message middle man and do the key press detection right in this update loop, which then eliminates touching a whole bunch of files.

Copy link

Choose a reason for hiding this comment

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

I can take over this change because it takes too many revisions to review.

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