void PlayVideo(BinkPlayerWidget player, string video, PlayingVideo pv, Action onComplete = null) { if (!modData.DefaultFileSystem.Exists(video)) { ConfirmationDialogs.ButtonPrompt( title: "Video not installed", text: "The game videos can be installed from the\n\"Manage Content\" menu in the mod chooser.", cancelText: "Back", onCancel: () => { }); } else { StopVideo(player); playingVideo = pv; player.Load(video); // video playback runs asynchronously player.PlayThen(() => { StopVideo(player); if (onComplete != null) { onComplete(); } }); // Mute other distracting sounds MuteSounds(); } }