comparison mm7_2.cpp @ 169:d1dde383af89

Merge
author Nomad
date Thu, 14 Feb 2013 14:03:17 +0200
parents ee11772d0ad2 572d821561f3
children 91fa025e6ca6 27573ee0d434
comparison
equal deleted inserted replaced
168:ee11772d0ad2 169:d1dde383af89
4398 if ( uNumDialogueNPCPortraits > 0 ) 4398 if ( uNumDialogueNPCPortraits > 0 )
4399 { 4399 {
4400 v3 = byte_591180; 4400 v3 = byte_591180;
4401 do 4401 do
4402 { 4402 {
4403 array_5913D8[v2 + 7] = (NPCData *)ptr_507BC0->CreateButton( 4403 array_5913D8[v2 + 7] = (NPCData *)ptr_507BC0->CreateButton(*(&pNPCPortraits_x + v2 + 6 * v1 - 6), *(&pNPCPortraits_y + v2 + 6 * v1 - 6),
4404 *(&_4E5E50_transui_x + v2 + 6 * v1 - 6), 4404 0x3Fu, 0x49u, 1, 0, 0x19Au, v2, 0, v3, 0, 0, 0);
4405 *(&_4E5EE0_transui_y + v2 + 6 * v1 - 6),
4406 0x3Fu,
4407 0x49u,
4408 1,
4409 0,
4410 0x19Au,
4411 v2,
4412 0,
4413 v3,
4414 0,
4415 0,
4416 0);
4417 v1 = uNumDialogueNPCPortraits; 4405 v1 = uNumDialogueNPCPortraits;
4418 ++v2; 4406 ++v2;
4419 v3 += 100; 4407 v3 += 100;
4420 } 4408 }
4421 while ( (signed int)v2 < uNumDialogueNPCPortraits ); 4409 while ( (signed int)v2 < uNumDialogueNPCPortraits );
4516 int v80; // [sp+ACh] [bp-8h]@12 4504 int v80; // [sp+ACh] [bp-8h]@12
4517 ItemGen *_this; // [sp+B0h] [bp-4h]@13 4505 ItemGen *_this; // [sp+B0h] [bp-4h]@13
4518 4506
4519 v0 = pPlayers[uActiveCharacter]; 4507 v0 = pPlayers[uActiveCharacter];
4520 v77 = pPlayers[uActiveCharacter]; 4508 v77 = pPlayers[uActiveCharacter];
4521 if ( pCurrentScreen == 14 ) 4509 if ( pCurrentScreen == SCREEN_E )
4522 goto LABEL_73; 4510 goto LABEL_73;
4523 if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() ) 4511 if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() )
4524 { 4512 {
4525 v56 = 0; 4513 v56 = 0;
4526 v52 = 0; 4514 v52 = 0;
5099 pAudioPlayer->StopChannels(-1, -1); 5087 pAudioPlayer->StopChannels(-1, -1);
5100 pRenderer->BeginScene(); 5088 pRenderer->BeginScene();
5101 pRenderer->ClearBlack(); 5089 pRenderer->ClearBlack();
5102 pRenderer->EndScene(); 5090 pRenderer->EndScene();
5103 pRenderer->Present(); 5091 pRenderer->Present();
5104 pVideoPlayer->field_40 = 0; 5092 pVideoPlayer->pResetflag = 0;
5105 _449B57_test_bit(pParty->_award_bits, 99); 5093 _449B57_test_bit(pParty->_award_bits, 99);
5106 _this.Load("winbg.pcx", 2); 5094 _this.Load("winbg.pcx", 2);
5107 pRenderer->BeginScene(); 5095 pRenderer->BeginScene();
5108 pRenderer->DrawTextureRGB(0, 0, &_this); 5096 pRenderer->DrawTextureRGB(0, 0, &_this);
5109 pRenderer->EndScene(); 5097 pRenderer->EndScene();
11437 v1 = 255; 11425 v1 = 255;
11438 a4 = a1; 11426 a4 = a1;
11439 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0xFF); 11427 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0xFF);
11440 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B); 11428 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B);
11441 pRenderer->BeginScene(); 11429 pRenderer->BeginScene();
11442 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LOAD ) 11430 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LOADINGPROC )
11443 { 11431 {
11444 pRenderer->DrawTextureIndexed(8, 8, uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0); 11432 pRenderer->DrawTextureIndexed(8, 8, uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0);
11445 if ( a4 ) 11433 if ( a4 )
11446 { 11434 {
11447 v2 = uTextureID_save_up; 11435 v2 = uTextureID_save_up;
11540 else 11528 else
11541 { 11529 {
11542 if ( pGUIWindow_CurrentMenu->field_40 == 3 ) 11530 if ( pGUIWindow_CurrentMenu->field_40 == 3 )
11543 pGUIWindow_CurrentMenu->field_40 = 0; 11531 pGUIWindow_CurrentMenu->field_40 = 0;
11544 } 11532 }
11545 if (GetCurrentMenuID() == MENU_LOAD) 11533 if (GetCurrentMenuID() == MENU_LOADINGPROC)
11546 { 11534 {
11547 //v18 = pGlobalTXT_LocalizationStrings[135]; 11535 //v18 = pGlobalTXT_LocalizationStrings[135];
11548 v19 = pFontSmallnum->AlignText_Center(0xBA, pGlobalTXT_LocalizationStrings[135]);//"Загрузка" 11536 v19 = pFontSmallnum->AlignText_Center(0xBA, pGlobalTXT_LocalizationStrings[135]);//"Загрузка"
11549 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v19 + 25, 220, 0, pGlobalTXT_LocalizationStrings[135], 0, 0, 0); 11537 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v19 + 25, 220, 0, pGlobalTXT_LocalizationStrings[135], 0, 0, 0);
11550 v20 = (const char *)(pSavegameHeader + uLoadGameUI_SelectedSlot); 11538 v20 = (const char *)(pSavegameHeader + uLoadGameUI_SelectedSlot);
12036 unsigned int pY; // [sp-18h] [bp-54h]@39 12024 unsigned int pY; // [sp-18h] [bp-54h]@39
12037 Texture *pTexture; // [sp-14h] [bp-50h]@39 12025 Texture *pTexture; // [sp-14h] [bp-50h]@39
12038 GUIButton *pButton2; // [sp+0h] [bp-3Ch]@27 12026 GUIButton *pButton2; // [sp+0h] [bp-3Ch]@27
12039 GUIWindow *pWindow; // [sp+4h] [bp-38h]@11 12027 GUIWindow *pWindow; // [sp+4h] [bp-38h]@11
12040 12028
12041 pCurrentScreen = 0; // окно Главное меню 12029 pCurrentScreen = SCREEN_GAME;
12042 if (pAsyncMouse) 12030 if (pAsyncMouse)
12043 pAsyncMouse->Resume(); 12031 pAsyncMouse->Resume();
12044 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) && pAsyncKeyboard ) 12032 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) && pAsyncKeyboard )
12045 pAsyncKeyboard->Resume(); 12033 pAsyncKeyboard->Resume();
12046 pGUIWindow2 = 0; 12034 pGUIWindow2 = 0;
12047 pAudioPlayer->StopChannels(-1, -1); 12035 pAudioPlayer->StopChannels(-1, -1);
12048 pMouse->RemoveHoldingItem(); 12036 pMouse->RemoveHoldingItem();
12049 ++pIcons_LOD->uTexturePacksCount; 12037 ++pIcons_LOD->uTexturePacksCount;
12050 if ( !pIcons_LOD->uNumPrevLoadedFiles ) 12038 if ( !pIcons_LOD->uNumPrevLoadedFiles )
12051 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; 12039 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
12052 pWindow_MainMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); // создание окна 12040 pWindow_MainMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0);
12053 auto pNew = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE); // создание кнопок 12041 auto pNew = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE);
12054 pMainMenu_BtnNew = pWindow_MainMenu->CreateButton(495, 172, pNew->uTextureWidth, pNew->uTextureHeight, 1, 0, 12042 pMainMenu_BtnNew = pWindow_MainMenu->CreateButton(495, 172, pNew->uTextureWidth, pNew->uTextureHeight, 1, 0,
12055 UIMSG_MainMenu_ShowPartyCreationWnd, 0, 78, "", pNew, 0); 12043 UIMSG_MainMenu_ShowPartyCreationWnd, 0, 78, "", pNew, 0);
12056 auto pLoad = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE); 12044 auto pLoad = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE);
12057 pMainMenu_BtnLoad = pWindow_MainMenu->CreateButton(495, 227, pLoad->uTextureWidth, pLoad->uTextureHeight, 1, 0, 12045 pMainMenu_BtnLoad = pWindow_MainMenu->CreateButton(495, 227, pLoad->uTextureWidth, pLoad->uTextureHeight, 1, 0,
12058 UIMSG_MainMenu_ShowLoadWindow, 1, 76, "", pLoad, 0); 12046 UIMSG_MainMenu_ShowLoadWindow, 1, 76, "", pLoad, 0);
12070 while (GetCurrentMenuID() == MENU_MAIN || GetCurrentMenuID() == MENU_SAVELOAD) 12058 while (GetCurrentMenuID() == MENU_MAIN || GetCurrentMenuID() == MENU_SAVELOAD)
12071 { 12059 {
12072 POINT pt; 12060 POINT pt;
12073 pMouse->GetCursorPos(&pt); 12061 pMouse->GetCursorPos(&pt);
12074 pWindow = pWindow_MainMenu; 12062 pWindow = pWindow_MainMenu;
12075 if ( GetCurrentMenuID() == MENU_SAVELOAD)//если меню загрузки 12063 if ( GetCurrentMenuID() == MENU_SAVELOAD)
12076 { 12064 {
12077 if ( pCurrentScreen != 12 )//если не окно загрузки игры 12065 if ( pCurrentScreen != SCREEN_LOADGAME )
12078 { 12066 {
12079 pTexture_PCX.Release(); 12067 pTexture_PCX.Release();
12080 pTexture_PCX.Load("lsave640.pcx", 0); 12068 pTexture_PCX.Load("lsave640.pcx", 0);
12081 pGUIWindow2 = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); 12069 pGUIWindow2 = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0);
12082 pCurrentScreen = 12; //окно загрузки игры 12070 pCurrentScreen = SCREEN_LOADGAME;
12083 GameUI_DrawLoadMenu(0);//процесс прорисовки окна Загрузка 12071 GameUI_DrawLoadMenu(0);
12084 } 12072 }
12085 pWindow = pGUIWindow_CurrentMenu; 12073 pWindow = pGUIWindow_CurrentMenu;
12086 } 12074 }
12087 12075
12088 MSG msg; 12076 MSG msg;
12089 while ( PeekMessageA(&msg, 0, 0, 0, PM_REMOVE) )//ожидание сообщения из внешнего источника 12077 while ( PeekMessageA(&msg, 0, 0, 0, PM_REMOVE) )
12090 { 12078 {
12091 if (msg.message == WM_QUIT) 12079 if (msg.message == WM_QUIT)
12092 Game_DeinitializeAndTerminate(0); 12080 Game_DeinitializeAndTerminate(0);
12093 TranslateMessage(&msg); 12081 TranslateMessage(&msg);
12094 DispatchMessageA(&msg); 12082 DispatchMessageA(&msg);
12101 { 12089 {
12102 pRenderer->BeginScene(); 12090 pRenderer->BeginScene();
12103 pRenderer->DrawTextureRGB(0, 0, &pTexture_PCX); 12091 pRenderer->DrawTextureRGB(0, 0, &pTexture_PCX);
12104 if (pAsyncMouse) 12092 if (pAsyncMouse)
12105 pAsyncMouse->_46B736_consume_click_lists(1); 12093 pAsyncMouse->_46B736_consume_click_lists(1);
12106 GUI_MainMenuMessageProc();//процедура проверки сообщений поступающих из внешних устройств для всей группы вступительных окон 12094 GUI_MainMenuMessageProc();
12107 GUI_UpdateWindows(); 12095 GUI_UpdateWindows();
12108 if (pAsyncMouse) 12096 if (pAsyncMouse)
12109 pAsyncMouse->_46B736_consume_click_lists(1); 12097 pAsyncMouse->_46B736_consume_click_lists(1);
12110 if (GetCurrentMenuID() != MENU_MAIN)// если не Главное меню 12098 if (GetCurrentMenuID() != MENU_MAIN)
12111 { 12099 {
12112 if (GetCurrentMenuID() == MENU_LOAD)// если меню Загрузка 12100 if (GetCurrentMenuID() == MENU_LOADINGPROC)
12113 { 12101 {
12114 pIcons_LOD->_4114F2(); 12102 pIcons_LOD->_4114F2();
12115 pGUIWindow_CurrentMenu->Release(); 12103 pGUIWindow_CurrentMenu->Release();
12116 pGUIWindow_CurrentMenu = 0; 12104 pGUIWindow_CurrentMenu = 0;
12117 pCurrentScreen = 0; 12105 pCurrentScreen = SCREEN_GAME;
12118 viewparams->bRedrawGameUI = 1; 12106 viewparams->bRedrawGameUI = 1;
12119 } 12107 }
12120 } 12108 }
12121 else 12109 else
12122 { 12110 {
12495 v36 = 273; 12483 v36 = 273;
12496 v35 = hWnd; 12484 v35 = hWnd;
12497 goto LABEL_104; 12485 goto LABEL_104;
12498 } 12486 }
12499 if ( pCurrentScreen 12487 if ( pCurrentScreen
12500 && pCurrentScreen != 21 ) 12488 && pCurrentScreen != SCREEN_PRESS_ESCAPE_MESSAGE )
12501 return 0; 12489 return 0;
12502 } 12490 }
12503 if ( !viewparams->field_4C ) 12491 if ( !viewparams->field_4C )
12504 sub_41CD4F(wParam); 12492 sub_41CD4F(wParam);
12505 return 0; 12493 return 0;
13483 return false; 13471 return false;
13484 } 13472 }
13485 13473
13486 13474
13487 pParty = new Party; 13475 pParty = new Party;
13476 memset(&pParty->pHirelings, 0, sizeof(pParty->pHirelings));
13488 pParty->uWalkSpeed = GetPrivateProfileIntW(L"debug", L"walkspeed", 384, pMM6IniFile); 13477 pParty->uWalkSpeed = GetPrivateProfileIntW(L"debug", L"walkspeed", 384, pMM6IniFile);
13489 pParty->uDefaultEyelevel = GetPrivateProfileIntW(L"party", L"eyelevel", 160, pMM6IniFile); 13478 pParty->uDefaultEyelevel = GetPrivateProfileIntW(L"party", L"eyelevel", 160, pMM6IniFile);
13490 pParty->sEyelevel = pParty->uDefaultEyelevel; 13479 pParty->sEyelevel = pParty->uDefaultEyelevel;
13491 pParty->uDefaultPartyHeight = GetPrivateProfileIntW(L"party", L"height", 192, pMM6IniFile); 13480 pParty->uDefaultPartyHeight = GetPrivateProfileIntW(L"party", L"height", 192, pMM6IniFile);
13492 pParty->uPartyHeight = pParty->uDefaultPartyHeight; 13481 pParty->uPartyHeight = pParty->uDefaultPartyHeight;
13976 FinalInitialization(); 13965 FinalInitialization();
13977 13966
13978 Log::Warning(L"MM: entering main loop"); 13967 Log::Warning(L"MM: entering main loop");
13979 while ( 1 ) 13968 while ( 1 )
13980 { 13969 {
13981 MainMenu_Loop(); // прорисовка Главного меню и тут же прорисовка меню Загрузка 13970 MainMenu_Loop();
13982 uGameState = 0; 13971 uGameState = 0;
13983 //LABEL_21: 13972 //LABEL_21:
13984 while ( 1 ) 13973 while ( 1 )
13985 { 13974 {
13986 switch (uGameState) 13975 switch (uGameState)
13987 { 13976 {
13988 case GAME_FINISHED: // выход из игры 13977 case GAME_FINISHED:
13989 pGame->Deinitialize(); 13978 pGame->Deinitialize();
13990 return true; // выход из функции MM_Main в Win_Main 13979 return true;
13991 } 13980 }
13992 if (GetCurrentMenuID() == MENU_FINISHED) // меню Выход 13981 if (GetCurrentMenuID() == MENU_FINISHED)
13993 { 13982 {
13994 uGameState = GAME_FINISHED; 13983 uGameState = GAME_FINISHED;
13995 continue; // в начало цикла 13984 continue;
13996 } 13985 }
13997 if (GetCurrentMenuID() == MENU_NEWGAME) // меню Новая игра 13986 if (GetCurrentMenuID() == MENU_NEWGAME)
13998 { 13987 {
13999 if ( pAudioPlayer->hAILRedbook ) 13988 if ( pAudioPlayer->hAILRedbook )
14000 AIL_redbook_stop(pAudioPlayer->hAILRedbook); // остановить музыку 13989 AIL_redbook_stop(pAudioPlayer->hAILRedbook);
14001 pParty->Reset(); // сброс группы 13990 pParty->Reset();
14002 for (uint k = 0; k < 50; ++k) 13991 for (uint k = 0; k < 50; ++k)
14003 pOtherOverlayList->pOverlays[k].Reset(); 13992 pOtherOverlayList->pOverlays[k].Reset();
14004 strcpy(pCurrentMapName, pStartingMapName); // текущая карта 13993 strcpy(pCurrentMapName, pStartingMapName);
14005 pParty->CreateDefaultParty(0); // создать группу по умолчанию 13994 pParty->CreateDefaultParty(0);
14006 PlayerCreationUI_Initialize(); 13995 PlayerCreationUI_Initialize();
14007 if ( PlayerCreationUI_Loop() ) //процесс создания группы 13996 if ( PlayerCreationUI_Loop() )
14008 { 13997 {
14009 DeleteCCharFont(); 13998 DeleteCCharFont();
14010 break;// выход из цикла 13999 break;
14011 } 14000 }
14012 DeleteCCharFont(); 14001 DeleteCCharFont();
14013 bFlashQuestBook = true; 14002 bFlashQuestBook = true;
14014 pGame->pCShow->PlayMovie(MOVIE_Emerald, 0); //заставка 14003 pGame->pCShow->PlayMovie(MOVIE_Emerald, 0);
14015 Autosave(); //автосохранение 14004 Autosave();
14016 //goto LABEL_48; 14005 pGame->Loop();
14017 pGame->Loop(); // процесс игры 14006 if ( uGameState == GAME_STATE_NEWGAME_OUT_GAMEMENU )
14018 break; // выход из цикла 14007 {
14019 } 14008 SetCurrentMenuID(MENU_NEWGAME);
14020 if (GetCurrentMenuID() == MENU_CREDITS) // меню Создатели 14009 uGameState = 0;
14010 continue;
14011 }
14012 break;
14013 }
14014 if (GetCurrentMenuID() == MENU_CREDITS)
14021 { 14015 {
14022 if ( pAudioPlayer->hAILRedbook ) 14016 if ( pAudioPlayer->hAILRedbook )
14023 AIL_redbook_stop(pAudioPlayer->hAILRedbook);// отключить звук 14017 AIL_redbook_stop(pAudioPlayer->hAILRedbook);
14024 extern MENU_STATE __cdecl CreditsMenu__Loop(); 14018 extern MENU_STATE __cdecl CreditsMenu__Loop();
14025 CreditsMenu__Loop(); // процесс воспроизведения окна Создатели 14019 CreditsMenu__Loop();
14026 break; 14020 break;
14027 } 14021 }
14028 if (GetCurrentMenuID() == MENU_5 || GetCurrentMenuID() == MENU_LOAD) //??? неизвестно что это 14022 if (GetCurrentMenuID() == MENU_5 || GetCurrentMenuID() == MENU_LOADINGPROC)
14029 { 14023 {
14030 uGameState = 0; 14024 uGameState = 0;
14031 } 14025 }
14032 else 14026 else
14033 __debugbreak(); 14027 __debugbreak();
14059 pAsyncMouse->Resume(); 14053 pAsyncMouse->Resume();
14060 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) && pAsyncKeyboard ) 14054 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) && pAsyncKeyboard )
14061 pAsyncKeyboard->Resume(); 14055 pAsyncKeyboard->Resume();
14062 }*/ 14056 }*/
14063 //LABEL_48: 14057 //LABEL_48:
14064 pGame->Loop(); //game 14058 pGame->Loop();
14065 LABEL_49: 14059 LABEL_49:
14066 if ( uGameState == 3 ) 14060 if ( uGameState == 3 )
14067 __debugbreak(); 14061 __debugbreak();
14068 /*{ 14062 /*{
14069 v12 = 5; 14063 v12 = 5;
14070 SetCurrentMenuID((MENU_STATE)v12); 14064 SetCurrentMenuID((MENU_STATE)v12);
14071 //goto LABEL_21; 14065 //goto LABEL_21;
14072 uGameState = 0; 14066 uGameState = 0;
14073 continue; 14067 continue;
14074 }*/ 14068 }*/
14075 if ( uGameState == GAME_STATE_NEWGAME_OUT_GAMEMENU )//press NewGame button out GameMenu window 14069 if ( uGameState == GAME_STATE_NEWGAME_OUT_GAMEMENU )
14076 { 14070 {
14077 SetCurrentMenuID(MENU_NEWGAME); 14071 SetCurrentMenuID(MENU_NEWGAME);
14078 uGameState = 0; 14072 uGameState = 0;
14079 continue; 14073 continue;
14080 } 14074 }
14372 case MENU_CREDITS: return L"MENU_CREDITS"; 14366 case MENU_CREDITS: return L"MENU_CREDITS";
14373 case MENU_SAVELOAD: return L"MENU_SAVELOAD"; 14367 case MENU_SAVELOAD: return L"MENU_SAVELOAD";
14374 case MENU_FINISHED: return L"MENU_FINISHED"; 14368 case MENU_FINISHED: return L"MENU_FINISHED";
14375 case MENU_5: return L"MENU_5"; 14369 case MENU_5: return L"MENU_5";
14376 case MENU_CREATEPARTY: return L"MENU_CREATEPARTY"; 14370 case MENU_CREATEPARTY: return L"MENU_CREATEPARTY";
14377 case MENU_7: return L"MENU_7"; 14371 case MENU_NAMEPANELESC: return L"MENU_NAMEPANELESC";
14378 case MENU_Credits: return L"MENU_Credits"; 14372 case MENU_CREDITSPROC: return L"MENU_CREDITSPROC";
14379 case MENU_LOAD: return L"MENU_LOAD"; 14373 case MENU_LOADINGPROC: return L"MENU_LOADINGPROC";
14380 case MENU_10: return L"MENU_10"; 14374 case MENU_10: return L"MENU_10";
14375 case MENU_CREDITSCLOSE: return L"MENU_CREDITSCLOSE";
14381 default: return L"unk"; 14376 default: return L"unk";
14382 }; 14377 };
14383 }; 14378 };
14384 void SetCurrentMenuID(MENU_STATE uMenu) 14379 void SetCurrentMenuID(MENU_STATE uMenu)
14385 { 14380 {
14989 pGUIWindow_ScrollWindow = 0; 14984 pGUIWindow_ScrollWindow = 0;
14990 } 14985 }
14991 } 14986 }
14992 14987
14993 //----- (00467FB6) -------------------------------------------------------- 14988 //----- (00467FB6) --------------------------------------------------------
14994 char __cdecl sub_467FB6() 14989 char __cdecl CreateScrollWindow()
14995 { 14990 {
14996 unsigned int v0; // eax@1 14991 unsigned int v0; // eax@1
14997 char *v1; // ST18_4@3 14992 char *v1; // ST18_4@3
14998 unsigned int v2; // eax@3 14993 unsigned int v2; // eax@3
14999 GUIWindow a1; // [sp+Ch] [bp-54h]@1 14994 GUIWindow a1; // [sp+Ch] [bp-54h]@1
15819 ShowNothingHereStatus(); 15814 ShowNothingHereStatus();
15820 return 1; 15815 return 1;
15821 } 15816 }
15822 if ( v5 & 0x100000 || (v6 = pIndoor->pFaceExtras[v4->uFaceExtraID].uEventID) == 0 ) 15817 if ( v5 & 0x100000 || (v6 = pIndoor->pFaceExtras[v4->uFaceExtraID].uEventID) == 0 )
15823 return 1; 15818 return 1;
15824 if ( pCurrentScreen != 19 ) 15819 if ( pCurrentScreen != SCREEN_BRANCHLESS_NPC_DIALOG )
15825 goto LABEL_13; 15820 goto LABEL_13;
15826 break; 15821 break;
15827 } 15822 }
15828 return 0; 15823 return 0;
15829 } 15824 }
16343 { 16338 {
16344 pAudioPlayer->StopChannels(-1, -1); 16339 pAudioPlayer->StopChannels(-1, -1);
16345 UI_CreateTravelDialogue(); 16340 UI_CreateTravelDialogue();
16346 } 16341 }
16347 } 16342 }
16348 //UpdateActors_ODM();Ritor1: it's temporarily 16343 UpdateActors_ODM();
16349 _46CC4B_check_event_triggers(); 16344 _46CC4B_check_event_triggers();
16350 } 16345 }
16351 16346
16352 16347
16353 16348