comparison Engine/Graphics/Overlays.cpp @ 2575:a76d408c5132 tip

DrawTranslucent -> DrawTextureGrayShade Removed old texture drawing stuff
author a.parshin
date Wed, 09 Mar 2016 01:39:52 +0200
parents 0c67be4ec900
children
comparison
equal deleted inserted replaced
2574:dd36326a9994 2575:a76d408c5132
81 } 81 }
82 82
83 //----- (00441964) -------------------------------------------------------- 83 //----- (00441964) --------------------------------------------------------
84 void OtherOverlayList::DrawTurnBasedIcon(int a2) 84 void OtherOverlayList::DrawTurnBasedIcon(int a2)
85 { 85 {
86 IconFrame *frame; // eax@12 86 Icon *frame; // eax@12
87 unsigned int v5; // [sp-8h] [bp-Ch]@4 87 unsigned int v5; // [sp-8h] [bp-Ch]@4
88 88
89 if ( current_screen_type != SCREEN_GAME || !pParty->bTurnBasedModeOn) 89 if ( current_screen_type != SCREEN_GAME || !pParty->bTurnBasedModeOn)
90 return; 90 return;
91 91
100 frame = pIconsFrameTable->GetFrame(v5, dword_50C994); 100 frame = pIconsFrameTable->GetFrame(v5, dword_50C994);
101 } 101 }
102 else if ( pTurnEngine->turn_stage == TE_ATTACK )//группа атакует(ладонь) 102 else if ( pTurnEngine->turn_stage == TE_ATTACK )//группа атакует(ладонь)
103 frame = pIconsFrameTable->GetFrame(uIconID_TurnStop, pEventTimer->uStartTime); 103 frame = pIconsFrameTable->GetFrame(uIconID_TurnStop, pEventTimer->uStartTime);
104 //if ( pRenderer->pRenderD3D ) 104 //if ( pRenderer->pRenderD3D )
105 pRenderer->DrawTextureTransparentColorKey(394, 288, &pIcons_LOD->pTextures[frame->uTextureID]); 105 pRenderer->DrawTextureAlphaNew(394/640.0f, 288/480.0f, frame->texture);
106 /*else 106 /*else
107 pRenderer->DrawTextureIndexedAlpha(0x18Au, 0x120u, v7);*/ 107 pRenderer->DrawTextureIndexedAlpha(0x18Au, 0x120u, v7);*/
108 if ( dword_50C994 < dword_50C998_turnbased_icon_1A ) 108 if ( dword_50C994 < dword_50C998_turnbased_icon_1A )
109 { 109 {
110 dword_50C994 += pEventTimer->uTimeElapsed; 110 dword_50C994 += pEventTimer->uTimeElapsed;