comparison VideoPlayer.cpp @ 3:bf31c505f4d3

13.01.13(MainMenuMessageProc())
author Ritor1
date Sun, 13 Jan 2013 17:41:47 +0600
parents 9c0607679772
children 8e33efd39355
comparison
equal deleted inserted replaced
2:89240115d392 3:bf31c505f4d3
332 332
333 333
334 334
335 335
336 //----- (004BE70E) -------------------------------------------------------- 336 //----- (004BE70E) --------------------------------------------------------
337 void __fastcall VideoPlayer::MovieLoop(const char *pMovieName, int a2, int ScreenSizeFlag, int a4) 337 void __fastcall VideoPlayer::MovieLoop(const char *pMovieName, int a2, int ScreenSizeFlag, int uGameState)
338 { 338 {
339 int v4; // ebp@1 339 int v4; // ebp@1
340 const char *pName; // edi@1 340 const char *pName; // edi@1
341 MSG Msg; // [sp+Ch] [bp-1Ch]@12 341 MSG Msg; // [sp+Ch] [bp-1Ch]@12
342 342
407 if (Msg.message == WM_PAINT) 407 if (Msg.message == WM_PAINT)
408 break; 408 break;
409 TranslateMessage(&Msg); 409 TranslateMessage(&Msg);
410 DispatchMessageW(&Msg); 410 DispatchMessageW(&Msg);
411 } 411 }
412 GUI_MainMenuMessageProc(); 412 GUI_MainMenuMessageProc();// проверка внешних сообщений
413 if ( !pVideoPlayer->pSmackerMovie ) 413 if ( !pVideoPlayer->pSmackerMovie )
414 break; 414 break;
415 if ( !SmackWait(pVideoPlayer->pSmackerMovie) && !pVideoPlayer->bStopBeforeSchedule ) 415 if ( !SmackWait(pVideoPlayer->pSmackerMovie) && !pVideoPlayer->bStopBeforeSchedule )
416 pVideoPlayer->SmackDrawFrame(pVideoPlayer->hWindow, v4, ScreenSizeFlag); 416 pVideoPlayer->SmackDrawFrame(pVideoPlayer->hWindow, v4, ScreenSizeFlag);
417 } 417 }
418 } 418 }
419 } 419 }
420 } 420 }
421 if ( a4 == 1 ) 421 if ( uGameState == GAME_FINISHED )
422 pCurrentScreen = 0; 422 pCurrentScreen = 0;//MainMenuScreen
423 pVideoPlayer->bPlayingMovie = 0; 423 pVideoPlayer->bPlayingMovie = 0;
424 ShowCursor(1); 424 ShowCursor(1);
425 if ( pCurrentScreen == 16 )//окно видео ролика 425 if ( pCurrentScreen == 16 )//окно видео ролика
426 pCurrentScreen = 0; 426 pCurrentScreen = 0;
427 } 427 }