comparison mm7_2.cpp @ 151:9abdd40a107b

pCurrentScreen
author Ritor1
date Tue, 12 Feb 2013 15:28:08 +0600
parents d92c78ab54fe
children 86a2637ba125
comparison
equal deleted inserted replaced
150:d92c78ab54fe 151:9abdd40a107b
4516 int v80; // [sp+ACh] [bp-8h]@12 4516 int v80; // [sp+ACh] [bp-8h]@12
4517 ItemGen *_this; // [sp+B0h] [bp-4h]@13 4517 ItemGen *_this; // [sp+B0h] [bp-4h]@13
4518 4518
4519 v0 = pPlayers[uActiveCharacter]; 4519 v0 = pPlayers[uActiveCharacter];
4520 v77 = pPlayers[uActiveCharacter]; 4520 v77 = pPlayers[uActiveCharacter];
4521 if ( pCurrentScreen == 14 ) 4521 if ( pCurrentScreen == SCREEN_E )
4522 goto LABEL_73; 4522 goto LABEL_73;
4523 if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() ) 4523 if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() )
4524 { 4524 {
4525 v56 = 0; 4525 v56 = 0;
4526 v52 = 0; 4526 v52 = 0;
12036 unsigned int pY; // [sp-18h] [bp-54h]@39 12036 unsigned int pY; // [sp-18h] [bp-54h]@39
12037 Texture *pTexture; // [sp-14h] [bp-50h]@39 12037 Texture *pTexture; // [sp-14h] [bp-50h]@39
12038 GUIButton *pButton2; // [sp+0h] [bp-3Ch]@27 12038 GUIButton *pButton2; // [sp+0h] [bp-3Ch]@27
12039 GUIWindow *pWindow; // [sp+4h] [bp-38h]@11 12039 GUIWindow *pWindow; // [sp+4h] [bp-38h]@11
12040 12040
12041 pCurrentScreen = 0; // окно Главное меню 12041 pCurrentScreen = SCREEN_GAME;
12042 if (pAsyncMouse) 12042 if (pAsyncMouse)
12043 pAsyncMouse->Resume(); 12043 pAsyncMouse->Resume();
12044 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) && pAsyncKeyboard ) 12044 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) && pAsyncKeyboard )
12045 pAsyncKeyboard->Resume(); 12045 pAsyncKeyboard->Resume();
12046 pGUIWindow2 = 0; 12046 pGUIWindow2 = 0;
12072 POINT pt; 12072 POINT pt;
12073 pMouse->GetCursorPos(&pt); 12073 pMouse->GetCursorPos(&pt);
12074 pWindow = pWindow_MainMenu; 12074 pWindow = pWindow_MainMenu;
12075 if ( GetCurrentMenuID() == MENU_SAVELOAD)//если меню загрузки 12075 if ( GetCurrentMenuID() == MENU_SAVELOAD)//если меню загрузки
12076 { 12076 {
12077 if ( pCurrentScreen != 12 )//если не окно загрузки игры 12077 if ( pCurrentScreen != SCREEN_LOADGAME )
12078 { 12078 {
12079 pTexture_PCX.Release(); 12079 pTexture_PCX.Release();
12080 pTexture_PCX.Load("lsave640.pcx", 0); 12080 pTexture_PCX.Load("lsave640.pcx", 0);
12081 pGUIWindow2 = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); 12081 pGUIWindow2 = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0);
12082 pCurrentScreen = 12; //окно загрузки игры 12082 pCurrentScreen = SCREEN_LOADGAME;
12083 GameUI_DrawLoadMenu(0);//процесс прорисовки окна Загрузка 12083 GameUI_DrawLoadMenu(0);//процесс прорисовки окна Загрузка
12084 } 12084 }
12085 pWindow = pGUIWindow_CurrentMenu; 12085 pWindow = pGUIWindow_CurrentMenu;
12086 } 12086 }
12087 12087
12112 if (GetCurrentMenuID() == MENU_LOAD)// если меню Загрузка 12112 if (GetCurrentMenuID() == MENU_LOAD)// если меню Загрузка
12113 { 12113 {
12114 pIcons_LOD->_4114F2(); 12114 pIcons_LOD->_4114F2();
12115 pGUIWindow_CurrentMenu->Release(); 12115 pGUIWindow_CurrentMenu->Release();
12116 pGUIWindow_CurrentMenu = 0; 12116 pGUIWindow_CurrentMenu = 0;
12117 pCurrentScreen = 0; 12117 pCurrentScreen = SCREEN_GAME;
12118 viewparams->bRedrawGameUI = 1; 12118 viewparams->bRedrawGameUI = 1;
12119 } 12119 }
12120 } 12120 }
12121 else 12121 else
12122 { 12122 {
12495 v36 = 273; 12495 v36 = 273;
12496 v35 = hWnd; 12496 v35 = hWnd;
12497 goto LABEL_104; 12497 goto LABEL_104;
12498 } 12498 }
12499 if ( pCurrentScreen 12499 if ( pCurrentScreen
12500 && pCurrentScreen != 21 ) 12500 && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE )
12501 return 0; 12501 return 0;
12502 } 12502 }
12503 if ( !viewparams->field_4C ) 12503 if ( !viewparams->field_4C )
12504 sub_41CD4F(wParam); 12504 sub_41CD4F(wParam);
12505 return 0; 12505 return 0;
15818 ShowNothingHereStatus(); 15818 ShowNothingHereStatus();
15819 return 1; 15819 return 1;
15820 } 15820 }
15821 if ( v5 & 0x100000 || (v6 = pIndoor->pFaceExtras[v4->uFaceExtraID].uEventID) == 0 ) 15821 if ( v5 & 0x100000 || (v6 = pIndoor->pFaceExtras[v4->uFaceExtraID].uEventID) == 0 )
15822 return 1; 15822 return 1;
15823 if ( pCurrentScreen != 19 ) 15823 if ( pCurrentScreen != SCREEN_BRANCHLESS_NPC_DIALOG )
15824 goto LABEL_13; 15824 goto LABEL_13;
15825 break; 15825 break;
15826 } 15826 }
15827 return 0; 15827 return 0;
15828 } 15828 }