Mercurial > mm7
diff CShow.h @ 1397:eb02a65e5c82
Quick Spell fixed.
Removed CShow, ThreadWard structures.
author | Nomad |
---|---|
date | Fri, 19 Jul 2013 09:42:03 +0200 |
parents | db395ce89ede |
children | 934074e7fcc1 |
line wrap: on
line diff
--- a/CShow.h Thu Jul 18 17:29:20 2013 +0200 +++ b/CShow.h Fri Jul 19 09:42:03 2013 +0200 @@ -1,5 +1,5 @@ #pragma once - +#include "VideoPlayer.h" /* 302 */ @@ -15,7 +15,28 @@ MOVIE_Outro = 0x7, }; +inline void PlayFullscreenMovie(MovieType movie, bool bShowMouseAfterPlayback = false) +{ + extern unsigned int bNoVideo; + if (bNoVideo) return; + switch (movie) + { + case MOVIE_3DOLogo: VideoPlayer::MovieLoop("3dologo", 0, 0, 1); break; + case MOVIE_NWCLogo: VideoPlayer::MovieLoop("new world logo", 0, 1, 1); break; + case MOVIE_JVC: VideoPlayer::MovieLoop("jvc", 0, 1, 1); break; + case MOVIE_Intro: VideoPlayer::MovieLoop("Intro", 0, 1, 1); break; + case MOVIE_Emerald: VideoPlayer::MovieLoop("Intro Post", 0, 1, 1); break; + case MOVIE_Death: VideoPlayer::MovieLoop("losegame", 2, 1, 1); break; + case MOVIE_Outro: VideoPlayer::MovieLoop("end_seq1", 20, 1, 1); break; + + default: + assert(false && "Invalid movie requested in " __FUNCTION__); + break; + } +} + +/* #pragma pack(push, 1) class CShow { @@ -33,4 +54,4 @@ void (__thiscall ***vdestructor_ptr)(CShow *, bool); }; -#pragma pack(pop) \ No newline at end of file +#pragma pack(pop)*/ \ No newline at end of file