comparison Engine/Objects/Actor.cpp @ 2573:0c67be4ec900

DrawTextureIndexed renamed to DrawTextureTransparentColorKey Changing more class Texture to class Image.
author a.parshin
date Sat, 05 Mar 2016 16:25:53 +0200
parents d569340b05ff
children dd36326a9994
comparison
equal deleted inserted replaced
2572:d87bfbd3bb3b 2573:0c67be4ec900
97 v10 = bar_length / actor->pMonsterInfo.uHP * actor->sCurrentHP; 97 v10 = bar_length / actor->pMonsterInfo.uHP * actor->sCurrentHP;
98 98
99 uX = window->uFrameX + (signed int)(window->uFrameWidth - bar_length) / 2; 99 uX = window->uFrameX + (signed int)(window->uFrameWidth - bar_length) / 2;
100 100
101 pRenderer->SetUIClipRect(uX, window->uFrameY + 32, uX + bar_length, window->uFrameY + 52); 101 pRenderer->SetUIClipRect(uX, window->uFrameY + 32, uX + bar_length, window->uFrameY + 52);
102 pRenderer->DrawTextureIndexed(uX, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_bd)); 102 pRenderer->DrawTextureTransparentColorKey(uX, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_bd));
103 pRenderer->SetUIClipRect(uX, window->uFrameY + 32, uX + v10, window->uFrameY + 52); 103 pRenderer->SetUIClipRect(uX, window->uFrameY + 32, uX + v10, window->uFrameY + 52);
104 pRenderer->DrawTextureIndexed(uX, window->uFrameY + 34, pIcons_LOD->GetTexture(v9)); 104 pRenderer->DrawTextureTransparentColorKey(uX, window->uFrameY + 34, pIcons_LOD->GetTexture(v9));
105 105
106 pRenderer->ResetUIClipRect(); 106 pRenderer->ResetUIClipRect();
107 pRenderer->DrawTextureIndexed(uX - 5, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capl)); 107 pRenderer->DrawTextureTransparentColorKey(uX - 5, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capl));
108 pRenderer->DrawTextureIndexed(uX + bar_length, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capr)); 108 pRenderer->DrawTextureTransparentColorKey(uX + bar_length, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capr));
109 } 109 }
110 110
111 //----- (00448A40) -------------------------------------------------------- 111 //----- (00448A40) --------------------------------------------------------
112 void Actor::ToggleFlag(signed int uActorID, unsigned int uFlag, int bToggle) 112 void Actor::ToggleFlag(signed int uActorID, unsigned int uFlag, int bToggle)
113 { 113 {