Mercurial > might-and-magic-trilogy
comparison mm7_6.cpp @ 59:5159d2e6f559
BLV render
author | Nomad |
---|---|
date | Fri, 26 Oct 2012 02:38:26 +0200 |
parents | 41cbaabde2cb |
children | 8b0c4d626477 |
comparison
equal
deleted
inserted
replaced
58:41cbaabde2cb | 59:5159d2e6f559 |
---|---|
2341 if ( v6 & 2 ) | 2341 if ( v6 & 2 ) |
2342 { | 2342 { |
2343 if ( ptr_507BD4 ) | 2343 if ( ptr_507BD4 ) |
2344 return result; | 2344 return result; |
2345 ptr_507BD4 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), (int)&pStru277[result], 0); | 2345 ptr_507BD4 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), (int)&pStru277[result], 0); |
2346 ptr_507BD4->CreateButton(0x34u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 0, 0x31u, nullstring, 0); | 2346 ptr_507BD4->CreateButton(0x34u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 0, 0x31u, "", 0); |
2347 ptr_507BD4->CreateButton(0xA5u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 1u, 0x32u, nullstring, 0); | 2347 ptr_507BD4->CreateButton(0xA5u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 1u, 0x32u, "", 0); |
2348 ptr_507BD4->CreateButton(0x118u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 2u, 0x33u, nullstring, 0); | 2348 ptr_507BD4->CreateButton(0x118u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 2u, 0x33u, "", 0); |
2349 ptr_507BD4->CreateButton(0x186u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 3u, 0x34u, nullstring, 0); | 2349 ptr_507BD4->CreateButton(0x186u, 0x1A6u, 0x23u, 0, 2, 0, 0x45u, 3u, 0x34u, "", 0); |
2350 return sub_421B2C_PlaceInInventory_or_DropPickedItem(); | 2350 return sub_421B2C_PlaceInInventory_or_DropPickedItem(); |
2351 } | 2351 } |
2352 if ( v6 & 8 ) | 2352 if ( v6 & 8 ) |
2353 { | 2353 { |
2354 if ( ptr_507BD4 ) | 2354 if ( ptr_507BD4 ) |
2355 return result; | 2355 return result; |
2356 v17 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), (int)&pStru277[result], 0); | 2356 v17 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), (int)&pStru277[result], 0); |
2357 v29 = 0; | 2357 v29 = 0; |
2358 v28 = nullstring; | 2358 v28 = ""; |
2359 v27 = 0; | 2359 v27 = 0; |
2360 v26 = 0; | 2360 v26 = 0; |
2361 v25 = 70; | 2361 v25 = 70; |
2362 LABEL_44: | 2362 LABEL_44: |
2363 v24 = 0; | 2363 v24 = 0; |
2376 { | 2376 { |
2377 if ( ptr_507BD4 ) | 2377 if ( ptr_507BD4 ) |
2378 return result; | 2378 return result; |
2379 v17 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), (int)&pStru277[result], 0); | 2379 v17 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), (int)&pStru277[result], 0); |
2380 v29 = 0; | 2380 v29 = 0; |
2381 v28 = nullstring; | 2381 v28 = ""; |
2382 v27 = 0; | 2382 v27 = 0; |
2383 v26 = 0; | 2383 v26 = 0; |
2384 v25 = 190; | 2384 v25 = 190; |
2385 goto LABEL_44; | 2385 goto LABEL_44; |
2386 } | 2386 } |
2399 if ( HIBYTE(v6) & 1 ) | 2399 if ( HIBYTE(v6) & 1 ) |
2400 { | 2400 { |
2401 if ( ptr_507BD4 ) | 2401 if ( ptr_507BD4 ) |
2402 return result; | 2402 return result; |
2403 ptr_507BD4 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), 20 * result + 5292232, 0); | 2403 ptr_507BD4 = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_HouseInterior|0x2), 20 * result + 5292232, 0); |
2404 ptr_507BD4->CreateButton(0x34u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 0, 0x31u, nullstring, 0); | 2404 ptr_507BD4->CreateButton(0x34u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 0, 0x31u, "", 0); |
2405 ptr_507BD4->CreateButton(0xA5u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 1u, 0x32u, nullstring, 0); | 2405 ptr_507BD4->CreateButton(0xA5u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 1u, 0x32u, "", 0); |
2406 ptr_507BD4->CreateButton(0x118u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 2u, 0x33u, nullstring, 0); | 2406 ptr_507BD4->CreateButton(0x118u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 2u, 0x33u, "", 0); |
2407 ptr_507BD4->CreateButton(0x186u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 3u, 0x34u, nullstring, 0); | 2407 ptr_507BD4->CreateButton(0x186u, 0x1A6u, 0x23u, 0, 2, 0, 0x8Du, 3u, 0x34u, "", 0); |
2408 v29 = 0; | 2408 v29 = 0; |
2409 v28 = nullstring; | 2409 v28 = ""; |
2410 v27 = 0; | 2410 v27 = 0; |
2411 v26 = 0; | 2411 v26 = 0; |
2412 v25 = 140; | 2412 v25 = 140; |
2413 v24 = 0; | 2413 v24 = 0; |
2414 v23 = 1; | 2414 v23 = 1; |
2430 1, | 2430 1, |
2431 0, | 2431 0, |
2432 0xBCu, | 2432 0xBCu, |
2433 0, | 2433 0, |
2434 0, | 2434 0, |
2435 nullstring, | 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 = ptr_507BD4->CreateButton( | 2438 ptr_5079E8 = ptr_507BD4->CreateButton( |
2439 0x272u, | 2439 0x272u, |
2440 0xB2u, | 2440 0xB2u, |
2443 1, | 2443 1, |
2444 0, | 2444 0, |
2445 0xBCu, | 2445 0xBCu, |
2446 1u, | 2446 1u, |
2447 0, | 2447 0, |
2448 nullstring, | 2448 "", |
2449 (Texture *)(uTextureID_50798C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50798C] : 0), | 2449 (Texture *)(uTextureID_50798C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50798C] : 0), |
2450 0); | 2450 0); |
2451 ptr_507BD4->CreateButton(0x1EBu, 0x95u, 0x40u, 0x4Au, 1, 0, 0x8Fu, 4u, 0x35u, nullstring, 0); | 2451 ptr_507BD4->CreateButton(0x1EBu, 0x95u, 0x40u, 0x4Au, 1, 0, 0x8Fu, 4u, 0x35u, "", 0); |
2452 result = (bool)ptr_507BD4->CreateButton( | 2452 result = (bool)ptr_507BD4->CreateButton( |
2453 0x231u, | 2453 0x231u, |
2454 0x95u, | 2454 0x95u, |
2455 0x40u, | 2455 0x40u, |
2456 0x4Au, | 2456 0x4Au, |
2457 1, | 2457 1, |
2458 0, | 2458 0, |
2459 0x8Fu, | 2459 0x8Fu, |
2460 5u, | 2460 5u, |
2461 0x36u, | 2461 0x36u, |
2462 nullstring, | 2462 "", |
2463 0); | 2463 0); |
2464 } | 2464 } |
2465 } | 2465 } |
2466 } | 2466 } |
2467 return result; | 2467 return result; |
9275 LABEL_175: | 9275 LABEL_175: |
9276 ++v12; | 9276 ++v12; |
9277 } | 9277 } |
9278 while ( v12 < 30 ); | 9278 while ( v12 < 30 ); |
9279 LABEL_176: | 9279 LABEL_176: |
9280 if ( LOBYTE(pGame->pKeyboardInstance->bUsingAsynKeyboard) ) | 9280 if (pGame->pKeyboardInstance->bUsingAsynKeyboard) |
9281 { | 9281 { |
9282 AsyncKeyboard::LeaveCriticalSection(); | 9282 AsyncKeyboard::LeaveCriticalSection(); |
9283 v16 = pAsyncKeyboard; | 9283 v16 = pAsyncKeyboard; |
9284 AsyncKeyboard::EnterCriticalSection(); | 9284 AsyncKeyboard::EnterCriticalSection(); |
9285 memset((char *)v16 + 521, 0, 0x100u); | 9285 memset((char *)v16 + 521, 0, 0x100u); |