comparison UI/UIMainMenu.cpp @ 2061:b2a434d65344

GAME_SETTINGS_* defines introduced DEBUG_SETTINGS_* defines introduced
author Nomad
date Mon, 02 Dec 2013 15:13:49 +0200
parents 03d9336e862f
children 259df09dfb50
comparison
equal deleted inserted replaced
2060:72177f3603da 2061:b2a434d65344
268 if ( Msg.message == 18 ) 268 if ( Msg.message == 18 )
269 Game_DeinitializeAndTerminate(0); 269 Game_DeinitializeAndTerminate(0);
270 TranslateMessage(&Msg); 270 TranslateMessage(&Msg);
271 DispatchMessageA(&Msg); 271 DispatchMessageA(&Msg);
272 } 272 }
273 if ( BYTE1(dword_6BE364_game_settings_1) & 1 ) 273 if (dword_6BE364_game_settings_1 & GAME_SETTINGS_APP_INACTIVE)
274 { 274 {
275 WaitMessage(); 275 WaitMessage();
276 } 276 }
277 else 277 else
278 { 278 {
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 }*/