diff UI/UIMainMenu.cpp @ 1678:6faacde46271

DrawPopupWindow
author Ritor1
date Fri, 20 Sep 2013 17:31:37 +0600
parents f1cdf8c062d4
children 03d9336e862f
line wrap: on
line diff
--- a/UI/UIMainMenu.cpp	Fri Sep 20 14:31:42 2013 +0600
+++ b/UI/UIMainMenu.cpp	Fri Sep 20 17:31:37 2013 +0600
@@ -301,4 +301,51 @@
   mm6title_texture.Release();
   cred_texture.Release();
   return MENU_MAIN;     // return MENU_Main
-}
\ No newline at end of file
+}
+/*MENU_STATE MainMenuUI_Credits_Loop()//NewTitle
+{
+  MSG Msg;
+  GUIWindow credit_window;
+  RGBTexture mm6title_texture;
+
+  if ( pMessageQueue_50CBD0->uNumMessages )
+    pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
+  ++pIcons_LOD->uTexturePacksCount;
+  if ( !pIcons_LOD->uNumPrevLoadedFiles )
+    pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
+
+  //pAudioPlayer->PlayMusicTrack(MUSIC_Credits);
+
+  mm6title_texture.Load("newtitle.pcx", 0);
+  pWindow_MainMenu->CreateButton(0, 0, 0, 0, 1, 0, UIMSG_Escape, 0, 27, "", 0);
+  pCurrentScreen = SCREEN_CREATORS;
+  SetCurrentMenuID(MENU_CREDITSPROC);
+
+  do
+  {
+    while ( PeekMessageA(&Msg, 0, 0, 0, 1) )
+    {
+      if ( Msg.message == 18 )
+        Game_DeinitializeAndTerminate(0);
+      TranslateMessage(&Msg);
+      DispatchMessageA(&Msg);
+    }
+    if ( BYTE1(dword_6BE364_game_settings_1) & 1 )
+    {
+      WaitMessage();
+    }
+    else
+    {
+      pRenderer->BeginScene();
+      pRenderer->DrawTextureRGB(0, 0, &mm6title_texture);
+      pRenderer->EndScene();
+      pRenderer->Present();
+      pCurrentScreen = SCREEN_GAME;
+      GUI_MainMenuMessageProc();
+    }
+  }
+  while ( GetCurrentMenuID() == MENU_CREDITSPROC );
+  //pAudioPlayer->_4AA258(1);
+  mm6title_texture.Release();
+  return MENU_MAIN;     // return MENU_Main
+}*/
\ No newline at end of file