Mercurial > might-and-magic-trilogy
comparison mm7_2.cpp @ 163:62585ad07024
2.02.12
author | Ritor1 |
---|---|
date | Mon, 03 Dec 2012 08:55:58 +0600 |
parents | 062e8a8e09bc |
children | 87c503d426e0 |
comparison
equal
deleted
inserted
replaced
162:8ff698000225 | 163:62585ad07024 |
---|---|
11409 unsigned int v2; // edi@4 | 11409 unsigned int v2; // edi@4 |
11410 unsigned int v3; // eax@4 | 11410 unsigned int v3; // eax@4 |
11411 unsigned int v4; // eax@8 | 11411 unsigned int v4; // eax@8 |
11412 int v5; // edi@8 | 11412 int v5; // edi@8 |
11413 unsigned int v6; // eax@8 | 11413 unsigned int v6; // eax@8 |
11414 unsigned int v7; // eax@10 | 11414 unsigned int pMapID; // eax@10 |
11415 signed __int64 v8; // qax@10 | 11415 signed __int64 v8; // qax@10 |
11416 unsigned int v9; // ebx@10 | 11416 unsigned int v9; // ebx@10 |
11417 unsigned __int64 v10; // qax@10 | 11417 unsigned __int64 v10; // qax@10 |
11418 __int64 v11; // qax@10 | 11418 __int64 v11; // qax@10 |
11419 char v12; // di@10 | 11419 char v12; // di@10 |
11420 unsigned __int64 v13; // qtt@10 | 11420 unsigned __int64 v13; // qtt@10 |
11421 unsigned int v14; // ecx@10 | 11421 unsigned int v14; // ecx@10 |
11422 __int64 v15; // qax@10 | 11422 __int64 v15; // qax@10 |
11423 int v16; // edi@10 | 11423 int v16; // edi@10 |
11424 signed int v17; // ebx@22 | 11424 signed int v17; // ebx@22 |
11425 const char *v18; // ST14_4@32 | 11425 //const char *v18; // ST14_4@32 |
11426 int v19; // eax@32 | 11426 int v19; // eax@32 |
11427 const char *v20; // ST18_4@32 | 11427 const char *v20; // ST18_4@32 |
11428 int v21; // eax@32 | 11428 int v21; // eax@32 |
11429 const char *v22; // ST14_4@32 | 11429 //const char *v22; // ST14_4@32 |
11430 int v23; // eax@32 | 11430 int v23; // eax@32 |
11431 const char *Str; // edi@36 | 11431 const char *pSlotName; // edi@36 |
11432 int v25; // eax@43 | 11432 int v25; // eax@43 |
11433 GUIWindow Dst; // [sp+Ch] [bp-78h]@8 | 11433 GUIWindow pWindow; // [sp+Ch] [bp-78h]@8 |
11434 /*unsigned int Dst; // [sp+Ch] [bp-78h]@8 | 11434 /*unsigned int Dst; // [sp+Ch] [bp-78h]@8 |
11435 unsigned int v27; // [sp+10h] [bp-74h]@8 | 11435 unsigned int v27; // [sp+10h] [bp-74h]@8 |
11436 int v28; // [sp+14h] [bp-70h]@8 | 11436 int v28; // [sp+14h] [bp-70h]@8 |
11437 int v29; // [sp+18h] [bp-6Ch]@8 | 11437 int v29; // [sp+18h] [bp-6Ch]@8 |
11438 unsigned int v30; // [sp+1Ch] [bp-68h]@8 | 11438 unsigned int v30; // [sp+1Ch] [bp-68h]@8 |
11439 unsigned int v31; // [sp+20h] [bp-64h]@8*/ | 11439 unsigned int v31; // [sp+20h] [bp-64h]@8*/ |
11440 __int64 v32; // [sp+60h] [bp-24h]@10 | 11440 __int64 v32; // [sp+60h] [bp-24h]@10 |
11441 int v33; // [sp+68h] [bp-1Ch]@10 | 11441 int v33; // [sp+68h] [bp-1Ch]@10 |
11442 unsigned int v34; // [sp+70h] [bp-14h]@10 | 11442 unsigned int pSaveFiles; // [sp+70h] [bp-14h]@10 |
11443 __int64 v35; // [sp+74h] [bp-10h]@10 | 11443 __int64 v35; // [sp+74h] [bp-10h]@10 |
11444 int v36; // [sp+7Ch] [bp-8h]@10 | 11444 int pFilesID; // [sp+7Ch] [bp-8h]@10 |
11445 int a4; // [sp+80h] [bp-4h]@1 | 11445 int a4; // [sp+80h] [bp-4h]@1 |
11446 | 11446 |
11447 v1 = 255; | 11447 v1 = 255; |
11448 a4 = a1; | 11448 a4 = a1; |
11449 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0xFF); | 11449 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0xFF); |
11450 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B); | 11450 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFF, 0xFF, 0x9B); |
11451 pRenderer->BeginScene(); | 11451 pRenderer->BeginScene(); |
11452 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LOAD ) | 11452 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LOAD ) |
11453 { | 11453 { |
11454 pRenderer->DrawTextureIndexed( | 11454 pRenderer->DrawTextureIndexed(8, 8, uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0); |
11455 8u, | |
11456 8u, | |
11457 uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0); | |
11458 if ( a4 ) | 11455 if ( a4 ) |
11459 { | 11456 { |
11460 v2 = uTextureID_save_up; | 11457 v2 = uTextureID_save_up; |
11461 v3 = uTextureID_LS_saveU; | 11458 v3 = uTextureID_LS_saveU; |
11462 } | 11459 } |
11470 pRenderer->DrawTextureIndexed(351, 302, (Texture *)(uTextureID_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_u] : 0)); | 11467 pRenderer->DrawTextureIndexed(351, 302, (Texture *)(uTextureID_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_u] : 0)); |
11471 v1 = 255; | 11468 v1 = 255; |
11472 } | 11469 } |
11473 if ( pSavegameUsedSlots[uLoadGameUI_SelectedSlot] ) | 11470 if ( pSavegameUsedSlots[uLoadGameUI_SelectedSlot] ) |
11474 { | 11471 { |
11475 memset(&Dst, 0, 0x54); | 11472 memset(&pWindow, 0, 0x54); |
11476 Dst.uFrameX = pGUIWindow_CurrentMenu->uFrameX + 240; | 11473 pWindow.uFrameX = pGUIWindow_CurrentMenu->uFrameX + 240; |
11477 v4 = pGUIWindow_CurrentMenu->uFrameY - pFontSmallnum->uFontHeight; | 11474 v4 = pGUIWindow_CurrentMenu->uFrameY - pFontSmallnum->uFontHeight; |
11478 Dst.uFrameWidth = 220; | 11475 pWindow.uFrameWidth = 220; |
11479 v4 += 157; | 11476 v4 += 157; |
11480 Dst.uFrameY = v4; | 11477 pWindow.uFrameY = v4; |
11481 v5 = pFontSmallnum->uFontHeight; | 11478 v5 = pFontSmallnum->uFontHeight; |
11482 Dst.uFrameZ = Dst.uFrameX + 219; | 11479 pWindow.uFrameZ = pWindow.uFrameX + 219; |
11483 Dst.uFrameHeight = v5; | 11480 pWindow.uFrameHeight = v5; |
11484 Dst.uFrameW = v5 + v4 - 1; | 11481 pWindow.uFrameW = v5 + v4 - 1; |
11485 v6 = uLoadGameUI_SelectedSlot; | 11482 v6 = uLoadGameUI_SelectedSlot; |
11486 if (pSavegameThumbnails[uLoadGameUI_SelectedSlot].pPixels) | 11483 if (pSavegameThumbnails[uLoadGameUI_SelectedSlot].pPixels) |
11487 { | 11484 { |
11488 pRenderer->DrawTextureRGB(pGUIWindow_CurrentMenu->uFrameX + 276, pGUIWindow_CurrentMenu->uFrameY + 171, pSavegameThumbnails + uLoadGameUI_SelectedSlot); | 11485 pRenderer->DrawTextureRGB(pGUIWindow_CurrentMenu->uFrameX + 276, pGUIWindow_CurrentMenu->uFrameY + 171, pSavegameThumbnails + uLoadGameUI_SelectedSlot); |
11489 v6 = uLoadGameUI_SelectedSlot; | 11486 v6 = uLoadGameUI_SelectedSlot; |
11490 } | 11487 } |
11491 v7 = pMapStats->GetMapInfo(pSavegameHeader[v6].pLocationName); | 11488 pMapID = pMapStats->GetMapInfo(pSavegameHeader[v6].pLocationName); |
11492 Dst.DrawText2(pFontSmallnum, 0, 0, 0, pMapStats->pInfos[v7].pName, 3); | 11489 pWindow.DrawText2(pFontSmallnum, 0, 0, 0, pMapStats->pInfos[pMapID].pName, 3); |
11493 v8 = (signed __int64)(pSavegameHeader[uLoadGameUI_SelectedSlot].uWordTime * 0.234375) / 60; | 11490 v8 = (signed __int64)(pSavegameHeader[uLoadGameUI_SelectedSlot].uWordTime * 0.234375) / 60; |
11494 HIDWORD(v32) = (unsigned __int64)((signed __int64)(pSavegameHeader[uLoadGameUI_SelectedSlot].uWordTime * 0.234375) / 60) >> 32; | 11491 HIDWORD(v32) = (unsigned __int64)((signed __int64)(pSavegameHeader[uLoadGameUI_SelectedSlot].uWordTime * 0.234375) / 60) >> 32; |
11495 v9 = v8; | 11492 v9 = v8; |
11496 v8 /= 60i64; | 11493 v8 /= 60i64; |
11497 v35 = v8; | 11494 v35 = v8; |
11498 v10 = (unsigned int)v8 / 0x18; | 11495 v10 = (unsigned int)v8 / 24; |
11499 v34 = v10; | 11496 pSaveFiles = v10; |
11500 v11 = (unsigned int)(v10 / 7); | 11497 v11 = (unsigned int)(v10 / 7); |
11501 v12 = v11; | 11498 v12 = v11; |
11502 LODWORD(v13) = (unsigned int)v11 >> 2; | 11499 LODWORD(v13) = (unsigned int)v11 >> 2; |
11503 HIDWORD(v13) = HIDWORD(v11); | 11500 HIDWORD(v13) = HIDWORD(v11); |
11504 v33 = v13 % 0xC; | 11501 v33 = v13 % 12; |
11505 v36 = v13 / 0xC; | 11502 pFilesID = v13 / 12; |
11506 v32 = (signed __int64)__PAIR__(HIDWORD(v32), v9) % 60; | 11503 v32 = (signed __int64)__PAIR__(HIDWORD(v32), v9) % 60; |
11507 v15 = v35 % 24; | 11504 v15 = v35 % 24; |
11508 v14 = (unsigned __int64)(v35 % 24) >> 32; | 11505 v14 = (unsigned __int64)(v35 % 24) >> 32; |
11509 LODWORD(v35) = v35 % 24; | 11506 LODWORD(v35) = v35 % 24; |
11510 HIDWORD(v15) = v34 % 0x1C; | 11507 HIDWORD(v15) = pSaveFiles % 28; |
11511 v36 += 1168; | 11508 pFilesID += 1168; |
11512 v16 = v12 & 3; | 11509 v16 = v12 & 3; |
11513 Dst.uFrameY = pGUIWindow_CurrentMenu->uFrameY + 261; | 11510 pWindow.uFrameY = pGUIWindow_CurrentMenu->uFrameY + 261; |
11514 HIDWORD(v35) = (v14 & 0x80000000u) == 0 | 11511 HIDWORD(v35) = (v14 & 0x80000000u) == 0 && ((signed int)v14 > 0 || (unsigned int)v15 >= 12) |
11515 && ((signed int)v14 > 0 || (unsigned int)v15 >= 0xC) | 11512 && (signed int)v14 <= 0 && ((v14 & 0x80000000u) != 0 || (unsigned int)v15 < 24); |
11516 && (signed int)v14 <= 0 | 11513 if ( (v14 & 0x80000000u) != 0 || (signed int)v14 <= 0 && (unsigned int)v15 <= 12 ) |
11517 && ((v14 & 0x80000000u) != 0 || (unsigned int)v15 < 0x18); | |
11518 if ( (v14 & 0x80000000u) != 0 || (signed int)v14 <= 0 && (unsigned int)v15 <= 0xC ) | |
11519 { | 11514 { |
11520 if ( !(v14 | (unsigned int)v15) ) | 11515 if ( !(v14 | (unsigned int)v15) ) |
11521 { | 11516 { |
11522 v34 = 0; | 11517 pSaveFiles = 0; |
11523 v17 = 12; | 11518 v17 = 12; |
11524 goto LABEL_23; | 11519 goto LABEL_23; |
11525 } | 11520 } |
11526 } | 11521 } |
11527 else | 11522 else |
11528 { | 11523 { |
11529 v14 = (__PAIR__(v14, (unsigned int)v15) - 12) >> 32; | 11524 v14 = (__PAIR__(v14, (unsigned int)v15) - 12) >> 32; |
11530 LODWORD(v15) = v15 - 12; | 11525 LODWORD(v15) = v15 - 12; |
11531 } | 11526 } |
11532 v17 = v15; | 11527 v17 = v15; |
11533 v34 = v14; | 11528 pSaveFiles = v14; |
11534 LABEL_23: | 11529 LABEL_23: |
11535 auto _d = aDayNames[HIDWORD(v15) % 7]; | 11530 auto _d = aDayNames[HIDWORD(v15) % 7]; |
11536 auto _a = aAMPMNames[HIDWORD(v35)]; | 11531 auto _a = aAMPMNames[HIDWORD(v35)]; |
11537 auto _m = aMonthNames[v33]; | 11532 auto _m = aMonthNames[v33]; |
11538 sprintf(pTmpBuf, "%s %d:%02d%s\n%d %s %d", _d, v17, (int)32, _a, 3, _m, v36); | 11533 sprintf(pTmpBuf, "%s %d:%02d%s\n%d %s %d", _d, v17, (int)32, _a, 3, _m, pFilesID); |
11539 sprintf(pTmpBuf, "%s %d:%02d%s\n%d %s %d", _d, v17, (int)v32, _a, 7 * v16 + HIDWORD(v15) % 7 + 1, _m, v36); | 11534 sprintf(pTmpBuf, "%s %d:%02d%s\n%d %s %d", _d, v17, (int)v32, _a, 7 * v16 + HIDWORD(v15) % 7 + 1, _m, pFilesID); |
11540 Dst.DrawText2(pFontSmallnum, 0, 0, 0, pTmpBuf, 3u); | 11535 pWindow.DrawText2(pFontSmallnum, 0, 0, 0, pTmpBuf, 3u); |
11541 v1 = 255; | 11536 v1 = 255; |
11542 } | 11537 } |
11543 if ( pGUIWindow_CurrentMenu->field_40 == 2 ) | 11538 if ( pGUIWindow_CurrentMenu->field_40 == 2 ) |
11544 { | 11539 { |
11545 pGUIWindow_CurrentMenu->field_40 = 0; | 11540 pGUIWindow_CurrentMenu->field_40 = 0; |
11557 if ( pGUIWindow_CurrentMenu->field_40 == 3 ) | 11552 if ( pGUIWindow_CurrentMenu->field_40 == 3 ) |
11558 pGUIWindow_CurrentMenu->field_40 = 0; | 11553 pGUIWindow_CurrentMenu->field_40 = 0; |
11559 } | 11554 } |
11560 if (GetCurrentMenuID() == MENU_LOAD) | 11555 if (GetCurrentMenuID() == MENU_LOAD) |
11561 { | 11556 { |
11562 v18 = pGlobalTXT_LocalizationStrings[135]; | 11557 //v18 = pGlobalTXT_LocalizationStrings[135]; |
11563 v19 = pFontSmallnum->AlignText_Center(0xBAu, pGlobalTXT_LocalizationStrings[135]); | 11558 v19 = pFontSmallnum->AlignText_Center(0xBA, pGlobalTXT_LocalizationStrings[135]);//"Загрузка" |
11564 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v19 + 25, 220, 0, v18, 0, 0, 0); | 11559 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v19 + 25, 220, 0, pGlobalTXT_LocalizationStrings[135], 0, 0, 0); |
11565 v20 = (const char *)(pSavegameHeader + uLoadGameUI_SelectedSlot); | 11560 v20 = (const char *)(pSavegameHeader + uLoadGameUI_SelectedSlot); |
11566 v21 = pFontSmallnum->AlignText_Center(0xBAu, (const char *)pSavegameHeader + 100 * uLoadGameUI_SelectedSlot); | 11561 v21 = pFontSmallnum->AlignText_Center(0xBA, (const char *)pSavegameHeader + 100 * uLoadGameUI_SelectedSlot); |
11567 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, v21 + 25, 0x106u, 0, v20, 185, 0); | 11562 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, v21 + 25, 0x106, 0, v20, 185, 0); |
11568 v22 = pGlobalTXT_LocalizationStrings[165]; | 11563 //v22 = pGlobalTXT_LocalizationStrings[165]; |
11569 v23 = pFontSmallnum->AlignText_Center(0xBAu, pGlobalTXT_LocalizationStrings[165]); | 11564 v23 = pFontSmallnum->AlignText_Center(0xBA, pGlobalTXT_LocalizationStrings[165]);//"Пожалуйста, пожождите" |
11570 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v23 + 25, 304, 0, v22, 0, 0, 0); | 11565 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, v23 + 25, 304, 0, pGlobalTXT_LocalizationStrings[165], 0, 0, 0); |
11571 } | 11566 } |
11572 else | 11567 else |
11573 { | 11568 { |
11574 if ( a4 ) | 11569 if ( a4 ) |
11575 v34 = 40; | 11570 pSaveFiles = 40; |
11576 else | 11571 else |
11577 v34 = uNumSavegameFiles; | 11572 pSaveFiles = uNumSavegameFiles; |
11578 a4 = 199; | 11573 a4 = 199; |
11579 v36 = dword_6A0C9C; | 11574 pFilesID = dword_6A0C9C; |
11580 Str = (const char *)(&pSavegameHeader[dword_6A0C9C]); | 11575 pSlotName = (const char *)(&pSavegameHeader[dword_6A0C9C]);//draw name for save slot |
11581 do | 11576 do |
11582 { | 11577 { |
11583 if ( v36 >= (signed int)v34 ) | 11578 if ( pFilesID >= (signed int)pSaveFiles ) |
11584 break; | 11579 break; |
11585 short clr; | 11580 short clr; |
11586 HIDWORD(v35) = clr = (v36 == uLoadGameUI_SelectedSlot ? GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v1, v1, 0x64) : 0); | 11581 HIDWORD(v35) = clr = (pFilesID == uLoadGameUI_SelectedSlot ? GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(v1, v1, 0x64) : 0); |
11587 if ( pGUIWindow_CurrentMenu->field_40 != 1 || v36 != uLoadGameUI_SelectedSlot ) | 11582 if ( pGUIWindow_CurrentMenu->field_40 != 1 || pFilesID != uLoadGameUI_SelectedSlot ) |
11588 { | 11583 { |
11589 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, 0x1B, a4, clr, Str, 185, 0); | 11584 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, 0x1B, a4, clr, pSlotName, 185, 0); |
11590 } | 11585 } |
11591 else | 11586 else |
11592 { | 11587 { |
11593 v25 = pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, 0x1B, a4, clr, (const char *)pKeyActionMap->pPressedKeysBuffer, 175, 1); | 11588 v25 = pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, 0x1B, a4, clr, (const char *)pKeyActionMap->pPressedKeysBuffer, 175, 1); |
11594 pGUIWindow_CurrentMenu->DrawFlashingInputCursor(v25 + 27, a4, pFontSmallnum); | 11589 pGUIWindow_CurrentMenu->DrawFlashingInputCursor(v25 + 27, a4, pFontSmallnum); |
11595 } | 11590 } |
11596 a4 += 21; | 11591 a4 += 21; |
11597 ++v36; | 11592 ++pFilesID; |
11598 Str += 100; | 11593 pSlotName += 100; |
11599 } | 11594 } |
11600 while ( a4 < 346 ); | 11595 while ( a4 < 346 ); |
11601 } | 11596 } |
11602 pRenderer->EndScene(); | 11597 pRenderer->EndScene(); |
11603 } | 11598 } |
12067 pWindow_MainMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); | 12062 pWindow_MainMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_MainMenu, 0, 0); |
12068 | 12063 |
12069 auto pNew = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE); | 12064 auto pNew = pIcons_LOD->LoadTexturePtr("title_new", TEXTURE_16BIT_PALETTE); |
12070 //v0 = pIcons_LOD->LoadTexture("title_new", TEXTURE_16BIT_PALETTE); | 12065 //v0 = pIcons_LOD->LoadTexture("title_new", TEXTURE_16BIT_PALETTE); |
12071 //v1 = (Texture *)(v0 != -1 ? &pIcons_LOD->pTextures[v0] : 0); | 12066 //v1 = (Texture *)(v0 != -1 ? &pIcons_LOD->pTextures[v0] : 0); |
12072 pMainMenu_BtnNew = pWindow_MainMenu->CreateButton(495, 172, | 12067 pMainMenu_BtnNew = pWindow_MainMenu->CreateButton(495, 172, pNew->uTextureWidth, pNew->uTextureHeight, 1, 0, UIMSG_MainMenu_ShowPartyCreationWnd, 0, 78, "", pNew, 0); |
12073 pNew->uTextureWidth, | |
12074 pNew->uTextureHeight, | |
12075 1, | |
12076 0, | |
12077 UIMSG_MainMenu_ShowPartyCreationWnd, | |
12078 0, | |
12079 78, | |
12080 "", | |
12081 pNew, | |
12082 0); | |
12083 //v2 = pIcons_LOD->LoadTexture("title_load", TEXTURE_16BIT_PALETTE); | 12068 //v2 = pIcons_LOD->LoadTexture("title_load", TEXTURE_16BIT_PALETTE); |
12084 //v3 = (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0); | 12069 //v3 = (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0); |
12085 auto pLoad = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE); | 12070 auto pLoad = pIcons_LOD->LoadTexturePtr("title_load", TEXTURE_16BIT_PALETTE); |
12086 pMainMenu_BtnLoad = pWindow_MainMenu->CreateButton(495, 227, | 12071 pMainMenu_BtnLoad = pWindow_MainMenu->CreateButton(495, 227, |
12087 pLoad->uTextureWidth, | 12072 pLoad->uTextureWidth, |
12095 pLoad, | 12080 pLoad, |
12096 0); | 12081 0); |
12097 //v4 = pIcons_LOD->LoadTexture("title_cred", TEXTURE_16BIT_PALETTE); | 12082 //v4 = pIcons_LOD->LoadTexture("title_cred", TEXTURE_16BIT_PALETTE); |
12098 //v5 = (Texture *)(v4 != -1 ? (int)&pIcons_LOD->pTextures[v4] : 0); | 12083 //v5 = (Texture *)(v4 != -1 ? (int)&pIcons_LOD->pTextures[v4] : 0); |
12099 auto pCredits = pIcons_LOD->LoadTexturePtr("title_cred", TEXTURE_16BIT_PALETTE); | 12084 auto pCredits = pIcons_LOD->LoadTexturePtr("title_cred", TEXTURE_16BIT_PALETTE); |
12100 pMainMenu_BtnCredits = pWindow_MainMenu->CreateButton(495, 282, | 12085 pMainMenu_BtnCredits = pWindow_MainMenu->CreateButton(495, 282, pCredits->uTextureWidth, pCredits->uTextureHeight, 1, 0, UIMSG_ShowCredits, 2, 67, "", pCredits, 0); |
12101 pCredits->uTextureWidth, | |
12102 pCredits->uTextureHeight, | |
12103 1, | |
12104 0, | |
12105 UIMSG_ShowCredits, | |
12106 2, | |
12107 67, | |
12108 "", | |
12109 pCredits, | |
12110 0); | |
12111 //v6 = pIcons_LOD->LoadTexture("title_exit", TEXTURE_16BIT_PALETTE); | 12086 //v6 = pIcons_LOD->LoadTexture("title_exit", TEXTURE_16BIT_PALETTE); |
12112 //v7 = (Texture *)(v6 != -1 ? (int)&pIcons_LOD->pTextures[v6] : 0); | 12087 //v7 = (Texture *)(v6 != -1 ? (int)&pIcons_LOD->pTextures[v6] : 0); |
12113 auto pExit = pIcons_LOD->LoadTexturePtr("title_exit", TEXTURE_16BIT_PALETTE); | 12088 auto pExit = pIcons_LOD->LoadTexturePtr("title_exit", TEXTURE_16BIT_PALETTE); |
12114 pMainMenu_BtnExit = pWindow_MainMenu->CreateButton(495, 337, | 12089 pMainMenu_BtnExit = pWindow_MainMenu->CreateButton(495, 337, pExit->uTextureWidth, pExit->uTextureHeight, 1, 0, UIMSG_ExitToWindows, 3, 0, "", pExit, 0); |
12115 pExit->uTextureWidth, | |
12116 pExit->uTextureHeight, | |
12117 1, | |
12118 0, | |
12119 UIMSG_ExitToWindows, | |
12120 3, | |
12121 0, | |
12122 "", | |
12123 pExit, | |
12124 0); | |
12125 | |
12126 pTexture_PCX.Release(); | 12090 pTexture_PCX.Release(); |
12127 pTexture_PCX.Load("title.pcx", 0); | 12091 pTexture_PCX.Load("title.pcx", 0); |
12128 SetCurrentMenuID(MENU_MAIN); | 12092 SetCurrentMenuID(MENU_MAIN); |
12129 SetForegroundWindow(hWnd); | 12093 SetForegroundWindow(hWnd); |
12130 SendMessageW(hWnd, WM_ACTIVATEAPP, 1, 0); | 12094 SendMessageW(hWnd, WM_ACTIVATEAPP, 1, 0); |