Mercurial > might-and-magic-trilogy
comparison mm7_6.cpp @ 167:90a9c828c2a6
pWindow and pBtn
author | Ritor1 |
---|---|
date | Wed, 12 Dec 2012 12:52:40 +0600 |
parents | 87c503d426e0 |
children |
comparison
equal
deleted
inserted
replaced
166:87c503d426e0 | 167:90a9c828c2a6 |
---|---|
2420 goto LABEL_56; | 2420 goto LABEL_56; |
2421 } | 2421 } |
2422 if ( HIBYTE(v6) & 2 && !pGUIWindow_Settings ) | 2422 if ( HIBYTE(v6) & 2 && !pGUIWindow_Settings ) |
2423 { | 2423 { |
2424 pGUIWindow_Settings = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), 20 * result + 5292232, 0); | 2424 pGUIWindow_Settings = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), 20 * result + 5292232, 0); |
2425 ptr_5079EC = pGUIWindow_Settings->CreateButton( | 2425 pBtn_NPCLeft = pGUIWindow_Settings->CreateButton( |
2426 0x1D5u, | 2426 0x1D5u, |
2427 0xB2u, | 2427 0xB2u, |
2428 (uTextureID_507990 != -1 ? pIcons_LOD->pTextures[uTextureID_507990].uTextureWidth : 24), | 2428 (uTextureID_507990 != -1 ? pIcons_LOD->pTextures[uTextureID_507990].uTextureWidth : 24), |
2429 (uTextureID_507990 != -1 ? pIcons_LOD->pTextures[uTextureID_507990].uTextureHeight : 26), | 2429 (uTextureID_507990 != -1 ? pIcons_LOD->pTextures[uTextureID_507990].uTextureHeight : 26), |
2430 1, | 2430 1, |
2433 0, | 2433 0, |
2434 0, | 2434 0, |
2435 "", | 2435 "", |
2436 (Texture *)(uTextureID_507990 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507990] : 0), | 2436 (Texture *)(uTextureID_507990 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507990] : 0), |
2437 0); | 2437 0); |
2438 ptr_5079E8 = pGUIWindow_Settings->CreateButton( | 2438 pBtn_NPCRight = pGUIWindow_Settings->CreateButton( |
2439 0x272u, | 2439 0x272u, |
2440 0xB2u, | 2440 0xB2u, |
2441 (uTextureID_50798C != -1 ? pIcons_LOD->pTextures[uTextureID_50798C].uTextureWidth : 24), | 2441 (uTextureID_50798C != -1 ? pIcons_LOD->pTextures[uTextureID_50798C].uTextureWidth : 24), |
2442 (uTextureID_50798C != -1 ? pIcons_LOD->pTextures[uTextureID_50798C].uTextureHeight : 26), | 2442 (uTextureID_50798C != -1 ? pIcons_LOD->pTextures[uTextureID_50798C].uTextureHeight : 26), |
2443 1, | 2443 1, |
8845 | 8845 |
8846 //----- (0042FBDD) -------------------------------------------------------- | 8846 //----- (0042FBDD) -------------------------------------------------------- |
8847 void __cdecl sub_42FBDD() | 8847 void __cdecl sub_42FBDD() |
8848 { | 8848 { |
8849 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); | 8849 pAudioPlayer->PlaySound((SoundID)75, 0, 0, -1, 0, 0, 0, 0); |
8850 pRenderer->DrawTextureTransparent(ptr_5076FC->uX, ptr_5076FC->uY, ptr_5076FC->pTextures[0]); | 8850 pRenderer->DrawTextureTransparent(pBtn_YES->uX, pBtn_YES->uY, pBtn_YES->pTextures[0]); |
8851 pRenderer->Present(); | 8851 pRenderer->Present(); |
8852 } | 8852 } |
8853 | 8853 |
8854 //----- (0042FC15) -------------------------------------------------------- | 8854 //----- (0042FC15) -------------------------------------------------------- |
8855 void __cdecl sub_42FC15() | 8855 void __cdecl sub_42FC15() |
8856 { | 8856 { |
8857 pAudioPlayer->PlaySound((SoundID)75, -2, 0, -1, 0, 0, 0, 0); | 8857 pAudioPlayer->PlaySound((SoundID)75, -2, 0, -1, 0, 0, 0, 0); |
8858 pRenderer->DrawTextureTransparent(ptr_5076F4->uX, ptr_5076F4->uY, ptr_5076F4->pTextures[0]); | 8858 pRenderer->DrawTextureTransparent(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pBtn_ExitCancel->pTextures[0]); |
8859 pRenderer->Present(); | 8859 pRenderer->Present(); |
8860 } | 8860 } |
8861 | 8861 |
8862 //----- (0042FC4E) -------------------------------------------------------- | 8862 //----- (0042FC4E) -------------------------------------------------------- |
8863 void __cdecl ProcessInputActions() | 8863 void __cdecl ProcessInputActions() |