Mercurial > mm7
comparison mm7_5.cpp @ 982:08fd1436ef35
enums & lod
author | Nomad |
---|---|
date | Sat, 11 May 2013 13:19:55 +0200 |
parents | a079c489118d |
children | 1462a5f12b65 |
comparison
equal
deleted
inserted
replaced
981:a6ef7125f6e4 | 982:08fd1436ef35 |
---|---|
2229 ModalWindow(pFinalMessage, 196); | 2229 ModalWindow(pFinalMessage, 196); |
2230 uGameState = GAME_STATE_FINAL_WINDOW; | 2230 uGameState = GAME_STATE_FINAL_WINDOW; |
2231 continue; | 2231 continue; |
2232 case UIMSG_C4: | 2232 case UIMSG_C4: |
2233 __debugbreak; | 2233 __debugbreak; |
2234 uGameState = GAME_STATE_0; | 2234 uGameState = GAME_STATE_PLAYING; |
2235 strcpy((char *)pKeyActionMap->pPressedKeysBuffer, "2"); | 2235 strcpy((char *)pKeyActionMap->pPressedKeysBuffer, "2"); |
2236 goto LABEL_524; | 2236 goto LABEL_524; |
2237 case UIMSG_DD: | 2237 case UIMSG_DD: |
2238 LABEL_524: | 2238 LABEL_524: |
2239 sprintf(pTmpBuf, "%s", pKeyActionMap->pPressedKeysBuffer); | 2239 sprintf(pTmpBuf, "%s", pKeyActionMap->pPressedKeysBuffer); |
3339 GUIWindow::Create(495, 282, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnCredits, 0); | 3339 GUIWindow::Create(495, 282, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnCredits, 0); |
3340 SetCurrentMenuID(MENU_CREDITS); | 3340 SetCurrentMenuID(MENU_CREDITS); |
3341 break; | 3341 break; |
3342 case UIMSG_ExitToWindows: | 3342 case UIMSG_ExitToWindows: |
3343 GUIWindow::Create(495, 337, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnExit, 0); | 3343 GUIWindow::Create(495, 337, 0, 0, WINDOW_PressedButton2, (int)pMainMenu_BtnExit, 0); |
3344 SetCurrentMenuID(MENU_FINISHED); | 3344 SetCurrentMenuID(MENU_EXIT_GAME); |
3345 break; | 3345 break; |
3346 case UIMSG_PlayerCreation_SelectAttribute: | 3346 case UIMSG_PlayerCreation_SelectAttribute: |
3347 pGUIWindow_CurrentMenu->pCurrentPosActiveItem = (pGUIWindow_CurrentMenu->pCurrentPosActiveItem - pGUIWindow_CurrentMenu->pStartingPosActiveItem) | 3347 pGUIWindow_CurrentMenu->pCurrentPosActiveItem = (pGUIWindow_CurrentMenu->pCurrentPosActiveItem - pGUIWindow_CurrentMenu->pStartingPosActiveItem) |
3348 % 7 + pGUIWindow_CurrentMenu->pStartingPosActiveItem + 7 * pParam; | 3348 % 7 + pGUIWindow_CurrentMenu->pStartingPosActiveItem + 7 * pParam; |
3349 uPlayerCreationUI_SelectedCharacter = pParam; | 3349 uPlayerCreationUI_SelectedCharacter = pParam; |
3433 case UIMSG_PlayerCreationClickOK: | 3433 case UIMSG_PlayerCreationClickOK: |
3434 GUIWindow::Create(580, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnOK, 0); | 3434 GUIWindow::Create(580, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnOK, 0); |
3435 if ( PlayerCreation_ComputeAttributeBonus() || !PlayerCreation_Chose4Skills() ) | 3435 if ( PlayerCreation_ComputeAttributeBonus() || !PlayerCreation_Chose4Skills() ) |
3436 GameUI_Footer_TimeLeft = GetTickCount() + 4000; | 3436 GameUI_Footer_TimeLeft = GetTickCount() + 4000; |
3437 else | 3437 else |
3438 uGameState = GAME_STATE_6; | 3438 uGameState = GAME_STATE_STARTING_NEW_GAME; |
3439 break; | 3439 break; |
3440 case UIMSG_PlayerCreationClickReset: | 3440 case UIMSG_PlayerCreationClickReset: |
3441 GUIWindow::Create(527, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnReset, 0); | 3441 GUIWindow::Create(527, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnReset, 0); |
3442 pParty->Reset(); | 3442 pParty->Reset(); |
3443 break; | 3443 break; |