comparison GUI/UI/UIMainMenu.cpp @ 2552:ac16f4a3a91e

Load from MainMenu logic separated from MainMenu window
author a.parshin
date Wed, 13 May 2015 01:33:20 +0200
parents 4008b2f34be0
children f9bdfe26d03d
comparison
equal deleted inserted replaced
2551:4008b2f34be0 2552:ac16f4a3a91e
54 // ----------------------------------- 54 // -----------------------------------
55 // 004627B7 void MainMenu_Loop -- part 55 // 004627B7 void MainMenu_Loop -- part
56 POINT pt; 56 POINT pt;
57 pMouse->GetCursorPos(&pt); 57 pMouse->GetCursorPos(&pt);
58 GUIWindow *pWindow = this;//pWindow_MainMenu; 58 GUIWindow *pWindow = this;//pWindow_MainMenu;
59 if (GetCurrentMenuID() == MENU_SAVELOAD) 59 //if (GetCurrentMenuID() == MENU_SAVELOAD)
60 pWindow = pGUIWindow_CurrentMenu; 60 // pWindow = pGUIWindow_CurrentMenu;
61 61
62 62
63 if (GetCurrentMenuID() == MENU_MAIN) 63 if (GetCurrentMenuID() == MENU_MAIN)
64 { 64 {
65 Texture *pTexture = nullptr; 65 Texture *pTexture = nullptr;