Mercurial > might-and-magic-trilogy
comparison mm7_5.cpp @ 10:5983336e1300
Слияние
author | Серик@ПончиК |
---|---|
date | Wed, 10 Oct 2012 22:30:37 +0600 |
parents | 540178ef9b18 |
children | 4acbadf78023 |
comparison
equal
deleted
inserted
replaced
9:fd8c1724b4eb | 10:5983336e1300 |
---|---|
3424 //v0 = pAudioPlayer; | 3424 //v0 = pAudioPlayer; |
3425 v1 = (char *)pParty->pPlayers; | 3425 v1 = (char *)pParty->pPlayers; |
3426 do | 3426 do |
3427 { | 3427 { |
3428 pMessageQueue_50CBD0->PopMessage(&v45, (int *)uClass, &v46); | 3428 pMessageQueue_50CBD0->PopMessage(&v45, (int *)uClass, &v46); |
3429 switch (v45) | |
3430 { | |
3431 case UIMSG_MainMenu_ShowPartyCreationWnd: | |
3432 { | |
3433 GUIWindow::Create(495, 172, 0, 0, WINDOW_5A, (int)pMainMenu_BtnNew, 0); | |
3434 SetCurrentMenuID(MENU_NEWGAME); | |
3435 } | |
3436 continue; | |
3437 | |
3438 case UIMSG_MainMenu_ShowLoadWindow: | |
3439 { | |
3440 GUIWindow::Create(495, 227, 0, 0, WINDOW_5A, (int)pMainMenu_BtnLoad, 0); | |
3441 SetCurrentMenuID(MENU_SAVELOAD); | |
3442 } | |
3443 continue; | |
3444 | |
3445 case UIMSG_ShowCredits: | |
3446 { | |
3447 GUIWindow::Create(495, 282, 0, 0, WINDOW_5A, (int)pMainMenu_BtnCredits, 0); | |
3448 SetCurrentMenuID(MENU_CREDITS); | |
3449 } | |
3450 continue; | |
3451 | |
3452 case UIMSG_ExitToWindows: | |
3453 { | |
3454 GUIWindow::Create(495, 337, 0, 0, WINDOW_5A, (int)pMainMenu_BtnExit, 0); | |
3455 SetCurrentMenuID(MENU_FINISHED); | |
3456 } | |
3457 continue; | |
3458 } | |
3459 | |
3429 if ( (signed int)v45 > 75 ) | 3460 if ( (signed int)v45 > 75 ) |
3430 { | 3461 { |
3431 if ( v45 > UIMSG_A3 ) | 3462 if ( v45 > UIMSG_A3 ) |
3432 { | 3463 { |
3433 if ( v45 == UIMSG_A4 ) | 3464 if ( v45 == UIMSG_A4 ) |
3884 break; | 3915 break; |
3885 case 17: | 3916 case 17: |
3886 pMouse->SetCursorBitmap("MICON2"); | 3917 pMouse->SetCursorBitmap("MICON2"); |
3887 break; | 3918 break; |
3888 default: | 3919 default: |
3889 if ( v45 == 54 ) | |
3890 { | |
3891 GUIWindow::Create(0x1EFu, 0xACu, 0, 0, (enum WindowType)90, (int)pMainMenu_BtnNew, 0); | |
3892 v2 = 1; | |
3893 goto LABEL_90; | |
3894 } | |
3895 if ( v45 == 55 ) | |
3896 { | |
3897 GUIWindow::Create(0x1EFu, 0xE3u, 0, 0, (enum WindowType)90, (int)pMainMenu_BtnLoad, 0); | |
3898 v40 = 3; | |
3899 goto LABEL_89; | |
3900 } | |
3901 if ( v45 == 56 ) | |
3902 { | |
3903 GUIWindow::Create(0x1EFu, 0x11Au, 0, 0, (enum WindowType)90, (int)pMainMenu_BtnCredits, 0); | |
3904 v40 = 2; | |
3905 goto LABEL_89; | |
3906 } | |
3907 if ( v45 == UIMSG_ExitToWindows ) | |
3908 { | |
3909 GUIWindow::Create(0x1EFu, 0x151u, 0, 0, (enum WindowType)90, (int)pMainMenu_BtnExit, 0); | |
3910 v40 = 4; | |
3911 goto LABEL_89; | |
3912 } | |
3913 if ( v45 == 58 ) | 3920 if ( v45 == 58 ) |
3914 goto LABEL_114; | 3921 goto LABEL_114; |
3915 break; | 3922 break; |
3916 } | 3923 } |
3917 } | 3924 } |
14908 for ( i = 1; i <= uNumVisibleWindows; ++i ) | 14915 for ( i = 1; i <= uNumVisibleWindows; ++i ) |
14909 { | 14916 { |
14910 //v0 = (GUIWindow *)&pWindowList_at_506F50_minus1_indexing[21 * pVisibleWindowsIdxs[i]]; | 14917 //v0 = (GUIWindow *)&pWindowList_at_506F50_minus1_indexing[21 * pVisibleWindowsIdxs[i]]; |
14911 v0 = &pWindowList[pVisibleWindowsIdxs[i] - 1]; | 14918 v0 = &pWindowList[pVisibleWindowsIdxs[i] - 1]; |
14912 v1 = v0->eWindowType; | 14919 v1 = v0->eWindowType; |
14920 | |
14921 switch (v0->eWindowType) | |
14922 { | |
14923 case WINDOW_MainMenu_Load: | |
14924 GameUI_MainMenu_DrawLoad(); | |
14925 continue; | |
14926 } | |
14927 | |
14928 | |
14913 if ( (signed int)v1 > 70 ) | 14929 if ( (signed int)v1 > 70 ) |
14914 { | 14930 { |
14915 if ( (signed int)v1 > 95 ) | 14931 if ( (signed int)v1 > 95 ) |
14916 { | 14932 { |
14917 v33 = v1 - 96; | 14933 v33 = v1 - 96; |
15266 if ( v8 ) | 15282 if ( v8 ) |
15267 { | 15283 { |
15268 v9 = v8 - 3; | 15284 v9 = v8 - 3; |
15269 if ( v9 ) | 15285 if ( v9 ) |
15270 { | 15286 { |
15271 if ( v9 == 1 ) | 15287 //if ( v9 == 1 ) |
15272 sub_4606F7(); | 15288 // sub_4606F7(); |
15273 } | 15289 } |
15274 else | 15290 else |
15275 { | 15291 { |
15276 sub_4606FE(); | 15292 sub_4606FE(); |
15277 } | 15293 } |