comparison mm7_5.cpp @ 910:8cd0b155bebe

Rings
author Ritor1
date Mon, 22 Apr 2013 17:34:36 +0600
parents f3ccfc765502
children 897b10712a1a
comparison
equal deleted inserted replaced
909:becbb0b11b7d 910:8cd0b155bebe
86 unsigned __int8 v35; // al@280 86 unsigned __int8 v35; // al@280
87 GUIWindow *pWindow3; // ecx@332 87 GUIWindow *pWindow3; // ecx@332
88 int v37; // eax@341 88 int v37; // eax@341
89 int v38; // eax@358 89 int v38; // eax@358
90 SHORT v39; // ax@365 90 SHORT v39; // ax@365
91 signed int v40; // eax@365 91 //signed int v40; // eax@365
92 char *v41; // eax@380 92 char *v41; // eax@380
93 int v42; // eax@396 93 int v42; // eax@396
94 POINT *pPoint; // eax@397 94 POINT *pPoint; // eax@397
95 signed int v44; // eax@398 95 signed int v44; // eax@398
96 int v45; // edx@398 96 int v45; // edx@398
1619 case UIMSG_19C: 1619 case UIMSG_19C:
1620 CloseWindowBackground(); 1620 CloseWindowBackground();
1621 pVideoPlayer->Unload(); 1621 pVideoPlayer->Unload();
1622 sub_44603D(); 1622 sub_44603D();
1623 start_event_seq_number = 0; 1623 start_event_seq_number = 0;
1624 goto LABEL_422; 1624 viewparams->bRedrawGameUI = v0;
1625 continue;
1625 case UIMSG_CycleCharacters: 1626 case UIMSG_CycleCharacters:
1626 v39 = GetAsyncKeyState(VK_SHIFT); 1627 v39 = GetAsyncKeyState(VK_SHIFT);
1627 v40 = CycleCharacter(v39); 1628 uActiveCharacter = CycleCharacter(v39);
1628 goto LABEL_421; 1629 viewparams->bRedrawGameUI = v0;
1630 continue;
1629 case UIMSG_OnTravelByFoot: 1631 case UIMSG_OnTravelByFoot:
1630 if ( pMessageQueue_50CBD0->uNumMessages ) 1632 if ( pMessageQueue_50CBD0->uNumMessages )
1631 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; 1633 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
1632 dword_50CDC8 = v0; 1634 dword_50CDC8 = v0;
1633 sub_42FBDD(); 1635 sub_42FBDD();
1723 pEventTimer->Resume(); 1725 pEventTimer->Resume();
1724 viewparams->bRedrawGameUI = 1; 1726 viewparams->bRedrawGameUI = 1;
1725 pCurrentScreen = SCREEN_GAME; 1727 pCurrentScreen = SCREEN_GAME;
1726 pGameLoadingUI_ProgressBar->Release(); 1728 pGameLoadingUI_ProgressBar->Release();
1727 } 1729 }
1728 goto LABEL_422; 1730 viewparams->bRedrawGameUI = v0;
1731 continue;
1729 case UIMSG_5B: 1732 case UIMSG_5B:
1730 goto LABEL_387; 1733 goto LABEL_387;
1731 case UIMSG_BE: 1734 case UIMSG_BE:
1732 if ( pRenderer->pRenderD3D ) 1735 if ( pRenderer->pRenderD3D )
1733 { 1736 {
1842 case UIMSG_8F: 1845 case UIMSG_8F:
1843 if ( pMessageQueue_50CBD0->uNumMessages ) 1846 if ( pMessageQueue_50CBD0->uNumMessages )
1844 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; 1847 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0;
1845 if ( unk_50C9A0 ) 1848 if ( unk_50C9A0 )
1846 { 1849 {
1847 v40 = uMessageParam; 1850 uActiveCharacter = uMessageParam;
1848 LABEL_421:
1849 uActiveCharacter = v40;
1850 LABEL_422:
1851 viewparams->bRedrawGameUI = v0; 1851 viewparams->bRedrawGameUI = v0;
1852 } 1852 }
1853 else 1853 else
1854 { 1854 {
1855 if ( pGUIWindow_Settings ) 1855 if ( pGUIWindow_Settings )
3022 case UIMSG_AA: 3022 case UIMSG_AA:
3023 GUIWindow::Create(pBtn_Down->uX, pBtn_Down->uY, 0, 0, WINDOW_5B, (int)pBtn_Down, 0); 3023 GUIWindow::Create(pBtn_Down->uX, pBtn_Down->uY, 0, 0, WINDOW_5B, (int)pBtn_Down, 0);
3024 //LABEL_709: 3024 //LABEL_709:
3025 dword_506544 = v0; 3025 dword_506544 = v0;
3026 continue; 3026 continue;
3027 case UIMSG_55: 3027 case UIMSG_ChangeDetaliz:
3028 bRingsShownInCharScreen ^= v0; 3028 bRingsShownInCharScreen ^= v0;
3029 pCharacterScreen_DetalizBtn->Release(); 3029 pCharacterScreen_DetalizBtn->Release();
3030 pCharacterScreen_DollBtn->Release(); 3030 pCharacterScreen_DollBtn->Release();
3031 if ( bRingsShownInCharScreen ) 3031 if ( bRingsShownInCharScreen )
3032 { 3032 {
3033 v128 = (uTextureID_5118C8 != -1 ? pIcons_LOD->pTextures[uTextureID_5118C8].uTextureHeight : 26); 3033 v128 = (uTextureID_detaliz_close_button != -1 ? pIcons_LOD->pTextures[uTextureID_detaliz_close_button].uTextureHeight : 26);
3034 v125 = (uTextureID_5118C8 != -1 ? pIcons_LOD->pTextures[uTextureID_5118C8].uTextureWidth : 24); 3034 v125 = (uTextureID_detaliz_close_button != -1 ? pIcons_LOD->pTextures[uTextureID_detaliz_close_button].uTextureWidth : 24);
3035 v123 = 445; 3035 v123 = 445;
3036 v121 = 470; 3036 v121 = 470;
3037 } 3037 }
3038 else 3038 else
3039 { 3039 {
3040 v128 = 30; 3040 v128 = 30;
3041 v125 = 30; 3041 v125 = 30;
3042 v123 = 300; 3042 v123 = 300;
3043 v121 = 600; 3043 v121 = 600;
3044 } 3044 }
3045 pCharacterScreen_DetalizBtn = pGUIWindow_CurrentMenu->CreateButton(v121, v123, v125, v128, v0, 0, UIMSG_MainMenu_ShowLoadWindow, 0, 0, 3045 pCharacterScreen_DetalizBtn = pGUIWindow_CurrentMenu->CreateButton(v121, v123, v125, v128, v0, 0, UIMSG_ChangeDetaliz, 0, 0,
3046 pGlobalTXT_LocalizationStrings[64],// "Detail Toggle" 3046 pGlobalTXT_LocalizationStrings[64],// "Detail Toggle"
3047 0); 3047 0);
3048 pCharacterScreen_DollBtn = pGUIWindow_CurrentMenu->CreateButton(0x1DCu, 0, 0xA4u, 0x159u, v0, 0, UIMSG_85, 0, 0, v1, 0); 3048 pCharacterScreen_DollBtn = pGUIWindow_CurrentMenu->CreateButton(0x1DCu, 0, 0xA4u, 0x159u, v0, 0, UIMSG_ClickPaperdoll, 0, 0, v1, 0);
3049 goto LABEL_422; 3049 viewparams->bRedrawGameUI = v0;
3050 case UIMSG_85: 3050 continue;
3051 case UIMSG_ClickPaperdoll:
3051 OnPaperdollLeftClick(); 3052 OnPaperdollLeftClick();
3052 continue; 3053 continue;
3053 case UIMSG_73: 3054 case UIMSG_73:
3054 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 100; 3055 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 100;
3055 sub_4196A0(); 3056 sub_4196A0();