Mercurial > might-and-magic-trilogy
comparison mm7_2.cpp @ 107:ccc0cf95706a
Слияние
author | Ritor1 |
---|---|
date | Mon, 05 Nov 2012 09:16:17 +0600 |
parents | 1e18102bd4d0 d7e68aebe0b3 |
children | d543bd89a31e |
comparison
equal
deleted
inserted
replaced
106:1e18102bd4d0 | 107:ccc0cf95706a |
---|---|
11469 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LOAD ) | 11469 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LOAD ) |
11470 { | 11470 { |
11471 pRenderer->DrawTextureIndexed( | 11471 pRenderer->DrawTextureIndexed( |
11472 8u, | 11472 8u, |
11473 8u, | 11473 8u, |
11474 (Texture *)(uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0)); | 11474 uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0); |
11475 if ( a4 ) | 11475 if ( a4 ) |
11476 { | 11476 { |
11477 v2 = uTextureID_save_up; | 11477 v2 = uTextureID_save_up; |
11478 v3 = uTextureID_LS_saveU; | 11478 v3 = uTextureID_LS_saveU; |
11479 } | 11479 } |
11480 else | 11480 else |
11481 { | 11481 { |
11482 v2 = uTextureID_load_up; | 11482 v2 = uTextureID_load_up; |
11483 v3 = uTextureID_LS_loadU; | 11483 v3 = uTextureID_LS_loadU; |
11484 } | 11484 } |
11485 pRenderer->DrawTextureIndexed(0xF1u, 0x12Eu, (Texture *)(v3 != -1 ? (int)&pIcons_LOD->pTextures[v3] : 0)); | 11485 pRenderer->DrawTextureIndexed(241, 302, (Texture *)(v3 != -1 ? &pIcons_LOD->pTextures[v3] : 0)); |
11486 pRenderer->DrawTextureIndexed(0x12u, 0x8Bu, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0)); | 11486 pRenderer->DrawTextureIndexed(18, 139, (Texture *)(v2 != -1 ? &pIcons_LOD->pTextures[v2] : 0)); |
11487 pRenderer->DrawTextureIndexed( | 11487 pRenderer->DrawTextureIndexed(351, 302, (Texture *)(uTextureID_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_u] : 0)); |
11488 0x15Fu, | |
11489 0x12Eu, | |
11490 (Texture *)(uTextureID_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_u] : 0)); | |
11491 v1 = 255; | 11488 v1 = 255; |
11492 } | 11489 } |
11493 if ( pSavegameUsedSlots[uLoadGameUI_SelectedSlot] ) | 11490 if ( pSavegameUsedSlots[uLoadGameUI_SelectedSlot] ) |
11494 { | 11491 { |
11495 memset(&Dst, 0, 0x54u); | 11492 memset(&Dst, 0, 0x54u); |
11496 Dst.uFrameX = pGUIWindow_CurrentMenu->uFrameX + 240; | 11493 Dst.uFrameX = pGUIWindow_CurrentMenu->uFrameX + 240; |
11497 v4 = pGUIWindow_CurrentMenu->uFrameY - LOBYTE(pFontSmallnum->uFontHeight); | 11494 v4 = pGUIWindow_CurrentMenu->uFrameY - pFontSmallnum->uFontHeight; |
11498 Dst.uFrameWidth = 220; | 11495 Dst.uFrameWidth = 220; |
11499 v4 += 157; | 11496 v4 += 157; |
11500 Dst.uFrameY = v4; | 11497 Dst.uFrameY = v4; |
11501 v5 = LOBYTE(pFontSmallnum->uFontHeight); | 11498 v5 = pFontSmallnum->uFontHeight; |
11502 Dst.uFrameZ = Dst.uFrameX + 219; | 11499 Dst.uFrameZ = Dst.uFrameX + 219; |
11503 Dst.uFrameHeight = v5; | 11500 Dst.uFrameHeight = v5; |
11504 Dst.uFrameW = v5 + v4 - 1; | 11501 Dst.uFrameW = v5 + v4 - 1; |
11505 v6 = uLoadGameUI_SelectedSlot; | 11502 v6 = uLoadGameUI_SelectedSlot; |
11506 if (pSavegameThumbnails[uLoadGameUI_SelectedSlot].pPixels) | 11503 if (pSavegameThumbnails[uLoadGameUI_SelectedSlot].pPixels) |
11590 if (GetCurrentMenuID() == MENU_LOAD) | 11587 if (GetCurrentMenuID() == MENU_LOAD) |
11591 { | 11588 { |
11592 v18 = pGlobalTXT_LocalizationStrings[135]; | 11589 v18 = pGlobalTXT_LocalizationStrings[135]; |
11593 v19 = pFontSmallnum->AlignText_Center(0xBAu, pGlobalTXT_LocalizationStrings[135]); | 11590 v19 = pFontSmallnum->AlignText_Center(0xBAu, pGlobalTXT_LocalizationStrings[135]); |
11594 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v19 + 25, 220, 0, v18, 0, 0, 0); | 11591 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v19 + 25, 220, 0, v18, 0, 0, 0); |
11595 v20 = (const char *)(&pSavegameHeader + uLoadGameUI_SelectedSlot); | 11592 v20 = (const char *)(pSavegameHeader + uLoadGameUI_SelectedSlot); |
11596 v21 = pFontSmallnum->AlignText_Center( | 11593 v21 = pFontSmallnum->AlignText_Center( |
11597 0xBAu, | 11594 0xBAu, |
11598 (const char *)&pSavegameHeader + 100 * uLoadGameUI_SelectedSlot); | 11595 (const char *)pSavegameHeader + 100 * uLoadGameUI_SelectedSlot); |
11599 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, v21 + 25, 0x106u, 0, v20, 185, 0); | 11596 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, v21 + 25, 0x106u, 0, v20, 185, 0); |
11600 v22 = pGlobalTXT_LocalizationStrings[165]; | 11597 v22 = pGlobalTXT_LocalizationStrings[165]; |
11601 v23 = pFontSmallnum->AlignText_Center(0xBAu, pGlobalTXT_LocalizationStrings[165]); | 11598 v23 = pFontSmallnum->AlignText_Center(0xBAu, pGlobalTXT_LocalizationStrings[165]); |
11602 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v23 + 25, 304, 0, v22, 0, 0, 0); | 11599 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v23 + 25, 304, 0, v22, 0, 0, 0); |
11603 } | 11600 } |