Mercurial > might-and-magic-trilogy
comparison mm7_4.cpp @ 167:90a9c828c2a6
pWindow and pBtn
author | Ritor1 |
---|---|
date | Wed, 12 Dec 2012 12:52:40 +0600 |
parents | 62585ad07024 |
children | bf2956650e92 |
comparison
equal
deleted
inserted
replaced
166:87c503d426e0 | 167:90a9c828c2a6 |
---|---|
9168 result = 1; | 9168 result = 1; |
9169 } | 9169 } |
9170 else | 9170 else |
9171 { | 9171 { |
9172 pDialogueWindow->pNumPresenceButton = 0; | 9172 pDialogueWindow->pNumPresenceButton = 0; |
9173 memcpy(&v4, pGUIWindow0, sizeof(v4)); | 9173 memcpy(&v4, pPrimaryWindow, sizeof(v4)); |
9174 v4.uFrameX = 483; | 9174 v4.uFrameX = 483; |
9175 v4.uFrameWidth = 148; | 9175 v4.uFrameWidth = 148; |
9176 v4.uFrameZ = 334; | 9176 v4.uFrameZ = 334; |
9177 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// | 9177 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// |
9178 // "%s is in no condition to %s" | 9178 // "%s is in no condition to %s" |
11215 uDialogueType = 81; | 11215 uDialogueType = 81; |
11216 ptr_F8B1E8 = (char *)pNPCTopics[a4 + 99].pText; | 11216 ptr_F8B1E8 = (char *)pNPCTopics[a4 + 99].pText; |
11217 sub_4B29F2(a4); | 11217 sub_4B29F2(a4); |
11218 pDialogueWindow->Release(); | 11218 pDialogueWindow->Release(); |
11219 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15E, WINDOW_MainMenu, v1, 0); | 11219 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15E, WINDOW_MainMenu, v1, 0); |
11220 ptr_5076F4 = pDialogueWindow->CreateButton( | 11220 pBtn_ExitCancel = pDialogueWindow->CreateButton( |
11221 0x1D7, | 11221 0x1D7, |
11222 0x1BD, | 11222 0x1BD, |
11223 0xA9, | 11223 0xA9, |
11224 0x23, | 11224 0x23, |
11225 1, | 11225 1, |
11259 ptr_F8B1E8 = (char *)pNPCTopics[a4 + 168].pText; | 11259 ptr_F8B1E8 = (char *)pNPCTopics[a4 + 168].pText; |
11260 _4B254D_SkillMasteryTeacher(a4); | 11260 _4B254D_SkillMasteryTeacher(a4); |
11261 pDialogueWindow->Release(); | 11261 pDialogueWindow->Release(); |
11262 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, v1, 0); | 11262 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, v1, 0); |
11263 v2 = ""; | 11263 v2 = ""; |
11264 ptr_5076F4 = pDialogueWindow->CreateButton( | 11264 pBtn_ExitCancel = pDialogueWindow->CreateButton( |
11265 0x1D7u, | 11265 0x1D7u, |
11266 0x1BDu, | 11266 0x1BDu, |
11267 0xA9u, | 11267 0xA9u, |
11268 0x23u, | 11268 0x23u, |
11269 1, | 11269 1, |
11292 | 11292 |
11293 v0 = 0; | 11293 v0 = 0; |
11294 v1 = array_5913D8[(unsigned int)((char *)array_5913D8[6] + -(dword_591080 != 0) - 1)]; | 11294 v1 = array_5913D8[(unsigned int)((char *)array_5913D8[6] + -(dword_591080 != 0) - 1)]; |
11295 pDialogueWindow->Release(); | 11295 pDialogueWindow->Release(); |
11296 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, 0, 0); | 11296 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x15Eu, WINDOW_MainMenu, 0, 0); |
11297 ptr_5076F4 = pDialogueWindow->CreateButton( | 11297 pBtn_ExitCancel = pDialogueWindow->CreateButton( |
11298 0x1D7u, | 11298 0x1D7u, |
11299 0x1BDu, | 11299 0x1BDu, |
11300 0xA9u, | 11300 0xA9u, |
11301 0x23u, | 11301 0x23u, |
11302 1, | 11302 1, |
11367 if ( _this + 1 == uNumDialogueNPCPortraits && uHouse_ExitPic ) | 11367 if ( _this + 1 == uNumDialogueNPCPortraits && uHouse_ExitPic ) |
11368 { | 11368 { |
11369 pDialogueWindow->Release(); | 11369 pDialogueWindow->Release(); |
11370 pDialogueWindow = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); | 11370 pDialogueWindow = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); |
11371 sprintf(byte_591098, pGlobalTXT_LocalizationStrings[411], pMapStats->pInfos[uHouse_ExitPic].pName); | 11371 sprintf(byte_591098, pGlobalTXT_LocalizationStrings[411], pMapStats->pInfos[uHouse_ExitPic].pName); |
11372 ptr_5076F4 = pDialogueWindow->CreateButton( | 11372 pBtn_ExitCancel = pDialogueWindow->CreateButton( |
11373 0x236u, | 11373 0x236u, |
11374 0x1BDu, | 11374 0x1BDu, |
11375 0x4Bu, | 11375 0x4Bu, |
11376 0x21u, | 11376 0x21u, |
11377 1, | 11377 1, |
11380 0, | 11380 0, |
11381 0x4Eu, | 11381 0x4Eu, |
11382 pGlobalTXT_LocalizationStrings[34],// "Cancel" | 11382 pGlobalTXT_LocalizationStrings[34],// "Cancel" |
11383 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0), | 11383 (Texture *)(uTextureID_BUTTDESC2 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_BUTTDESC2] : 0), |
11384 0); | 11384 0); |
11385 ptr_5076FC = pDialogueWindow->CreateButton( | 11385 pBtn_YES = pDialogueWindow->CreateButton( |
11386 486u, | 11386 486u, |
11387 445u, | 11387 445u, |
11388 75u, | 11388 75u, |
11389 33u, | 11389 33u, |
11390 1, | 11390 1, |
11421 for ( i = 0; i < uNumDialogueNPCPortraits; ++i ) | 11421 for ( i = 0; i < uNumDialogueNPCPortraits; ++i ) |
11422 GUIButton::_41D0D8((GUIButton *)array_5913D8[i + 7]); | 11422 GUIButton::_41D0D8((GUIButton *)array_5913D8[i + 7]); |
11423 } | 11423 } |
11424 v4 = 1; | 11424 v4 = 1; |
11425 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, 0, 0); | 11425 pDialogueWindow = GUIWindow::Create(0, 0, 640, 0x159u, WINDOW_MainMenu, 0, 0); |
11426 ptr_5076F4 = pDialogueWindow->CreateButton( | 11426 pBtn_ExitCancel = pDialogueWindow->CreateButton( |
11427 471u, | 11427 471u, |
11428 445u, | 11428 445u, |
11429 169u, | 11429 169u, |
11430 35u, | 11430 35u, |
11431 1, | 11431 1, |
11595 | 11595 |
11596 v2 = Str; | 11596 v2 = Str; |
11597 v3 = a5; | 11597 v3 = a5; |
11598 pRenderer->DrawTextureRGB(0, 0x160u, pTexture_StatusBar); | 11598 pRenderer->DrawTextureRGB(0, 0x160u, pTexture_StatusBar); |
11599 v4 = pFontLucida->AlignText_Center(0x1C2u, v2); | 11599 v4 = pFontLucida->AlignText_Center(0x1C2u, v2); |
11600 return pGUIWindow0->DrawText(pFontLucida, v4 + 11, 357, v3, v2, 0, 0, 0); | 11600 return pPrimaryWindow->DrawText(pFontLucida, v4 + 11, 357, v3, v2, 0, 0, 0); |
11601 } | 11601 } |
11602 | 11602 |
11603 //----- (004B46F8) -------------------------------------------------------- | 11603 //----- (004B46F8) -------------------------------------------------------- |
11604 int __fastcall sub_4B46F8(int a1) | 11604 int __fastcall sub_4B46F8(int a1) |
11605 { | 11605 { |