comparison UI/UIMainMenu.cpp @ 1678:6faacde46271

DrawPopupWindow
author Ritor1
date Fri, 20 Sep 2013 17:31:37 +0600
parents f1cdf8c062d4
children 03d9336e862f
comparison
equal deleted inserted replaced
1677:a699ecd7aeb3 1678:6faacde46271
300 pIcons_LOD->RemoveTexturesPackFromTextureList(); 300 pIcons_LOD->RemoveTexturesPackFromTextureList();
301 mm6title_texture.Release(); 301 mm6title_texture.Release();
302 cred_texture.Release(); 302 cred_texture.Release();
303 return MENU_MAIN; // return MENU_Main 303 return MENU_MAIN; // return MENU_Main
304 } 304 }
305 /*MENU_STATE MainMenuUI_Credits_Loop()//NewTitle
306 {
307 MSG Msg;
308 GUIWindow credit_window;
309 RGBTexture mm6title_texture;
310
311 if ( pMessageQueue_50CBD0->uNumMessages )
312 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
313 ++pIcons_LOD->uTexturePacksCount;
314 if ( !pIcons_LOD->uNumPrevLoadedFiles )
315 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
316
317 //pAudioPlayer->PlayMusicTrack(MUSIC_Credits);
318
319 mm6title_texture.Load("newtitle.pcx", 0);
320 pWindow_MainMenu->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_Escape, 0, 27, "", 0);
321 pCurrentScreen = SCREEN_CREATORS;
322 SetCurrentMenuID(MENU_CREDITSPROC);
323
324 do
325 {
326 while ( PeekMessageA(&Msg, 0, 0, 0, 1) )
327 {
328 if ( Msg.message == 18 )
329 Game_DeinitializeAndTerminate(0);
330 TranslateMessage(&Msg);
331 DispatchMessageA(&Msg);
332 }
333 if ( BYTE1(dword_6BE364_game_settings_1) & 1 )
334 {
335 WaitMessage();
336 }
337 else
338 {
339 pRenderer->BeginScene();
340 pRenderer->DrawTextureRGB(0, 0, &mm6title_texture);
341 pRenderer->EndScene();
342 pRenderer->Present();
343 pCurrentScreen = SCREEN_GAME;
344 GUI_MainMenuMessageProc();
345 }
346 }
347 while ( GetCurrentMenuID() == MENU_CREDITSPROC );
348 //pAudioPlayer->_4AA258(1);
349 mm6title_texture.Release();
350 return MENU_MAIN; // return MENU_Main
351 }*/