comparison Game/MainMenu.cpp @ 2553:48708da03b7f

Party Creation UI logic separated from MainMenu
author a.parshin
date Wed, 13 May 2015 02:20:05 +0200
parents ac16f4a3a91e
children f9bdfe26d03d
comparison
equal deleted inserted replaced
2552:ac16f4a3a91e 2553:48708da03b7f
60 new OnButtonClick2(495, 172, 0, 0, (int)pMainMenu_BtnNew, 0); 60 new OnButtonClick2(495, 172, 0, 0, (int)pMainMenu_BtnNew, 0);
61 SetCurrentMenuID(MENU_NEWGAME); 61 SetCurrentMenuID(MENU_NEWGAME);
62 break; 62 break;
63 case UIMSG_MainMenu_ShowLoadWindow: 63 case UIMSG_MainMenu_ShowLoadWindow:
64 new OnButtonClick2(495, 227, 0, 0, (int)pMainMenu_BtnLoad, 0); 64 new OnButtonClick2(495, 227, 0, 0, (int)pMainMenu_BtnLoad, 0);
65 //SetCurrentMenuID(MENU_SAVELOAD); 65 SetCurrentMenuID(MENU_SAVELOAD);
66 MainMenuLoad_Loop();
67 break; 66 break;
68 case UIMSG_ShowCredits: 67 case UIMSG_ShowCredits:
69 new OnButtonClick2(495, 282, 0, 0, (int)pMainMenu_BtnCredits, 0); 68 new OnButtonClick2(495, 282, 0, 0, (int)pMainMenu_BtnCredits, 0);
70 SetCurrentMenuID(MENU_CREDITS); 69 SetCurrentMenuID(MENU_CREDITS);
71 break; 70 break;
72 case UIMSG_ExitToWindows: 71 case UIMSG_ExitToWindows:
73 new OnButtonClick2(495, 337, 0, 0, (int)pMainMenu_BtnExit, 0); 72 new OnButtonClick2(495, 337, 0, 0, (int)pMainMenu_BtnExit, 0);
74 SetCurrentMenuID(MENU_EXIT_GAME); 73 SetCurrentMenuID(MENU_EXIT_GAME);
75 break; 74 break;
76 case UIMSG_PlayerCreation_SelectAttribute: 75 /*case UIMSG_PlayerCreation_SelectAttribute:
77 pGUIWindow_CurrentMenu->pCurrentPosActiveItem = (pGUIWindow_CurrentMenu->pCurrentPosActiveItem - pGUIWindow_CurrentMenu->pStartingPosActiveItem) 76 pGUIWindow_CurrentMenu->pCurrentPosActiveItem = (pGUIWindow_CurrentMenu->pCurrentPosActiveItem - pGUIWindow_CurrentMenu->pStartingPosActiveItem)
78 % 7 + pGUIWindow_CurrentMenu->pStartingPosActiveItem + 7 * pParam; 77 % 7 + pGUIWindow_CurrentMenu->pStartingPosActiveItem + 7 * pParam;
79 uPlayerCreationUI_SelectedCharacter = pParam; 78 uPlayerCreationUI_SelectedCharacter = pParam;
80 pAudioPlayer->PlaySound(SOUND_SelectingANewCharacter, 0, 0, -1, 0, 0, 0, 0); 79 pAudioPlayer->PlaySound(SOUND_SelectingANewCharacter, 0, 0, -1, 0, 0, 0, 0);
81 break; 80 break;
183 pAudioPlayer->PlaySound(SOUND_ClickSkill, 0, 0, -1, 0, 0, 0, 0); 182 pAudioPlayer->PlaySound(SOUND_ClickSkill, 0, 0, -1, 0, 0, 0, 0);
184 v3 = (void *)pParam; 183 v3 = (void *)pParam;
185 uPlayerCreationUI_SelectedCharacter = pParam; 184 uPlayerCreationUI_SelectedCharacter = pParam;
186 pKeyActionMap->EnterText(0, 15, pGUIWindow_CurrentMenu); 185 pKeyActionMap->EnterText(0, 15, pGUIWindow_CurrentMenu);
187 pGUIWindow_CurrentMenu->ptr_1C = v3; 186 pGUIWindow_CurrentMenu->ptr_1C = v3;
188 break; 187 break;*/
189 case UIMSG_ChangeGameState: 188 case UIMSG_ChangeGameState:
190 uGameState = GAME_FINISHED; 189 uGameState = GAME_FINISHED;
191 break; 190 break;
192 case UIMSG_ChangeCursor: 191 case UIMSG_ChangeCursor:
193 pMouse->SetCursorBitmap("MICON2"); 192 pMouse->SetCursorBitmap("MICON2");