comparison Engine/Objects/Actor.cpp @ 2524:c7264ab7132f

Main menu rendered using d3d11
author a.parshin
date Fri, 10 Oct 2014 17:42:05 +0300
parents 9b96a51011fb
children 1bcadc6dd203
comparison
equal deleted inserted replaced
2523:c532d5242055 2524:c7264ab7132f
103 if ( actor->sCurrentHP < (int)actor->pMonsterInfo.uHP ) 103 if ( actor->sCurrentHP < (int)actor->pMonsterInfo.uHP )
104 v10 = bar_length / actor->pMonsterInfo.uHP * actor->sCurrentHP; 104 v10 = bar_length / actor->pMonsterInfo.uHP * actor->sCurrentHP;
105 105
106 uX = window->uFrameX + (signed int)(window->uFrameWidth - bar_length) / 2; 106 uX = window->uFrameX + (signed int)(window->uFrameWidth - bar_length) / 2;
107 107
108 pRenderer->SetTextureClipRect(uX, window->uFrameY + 32, uX + bar_length, window->uFrameY + 52); 108 pRenderer->SetUIClipRect(uX, window->uFrameY + 32, uX + bar_length, window->uFrameY + 52);
109 pRenderer->DrawTextureIndexed(uX, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_bd)); 109 pRenderer->DrawTextureIndexed(uX, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_bd));
110 pRenderer->SetTextureClipRect(uX, window->uFrameY + 32, uX + v10, window->uFrameY + 52); 110 pRenderer->SetUIClipRect(uX, window->uFrameY + 32, uX + v10, window->uFrameY + 52);
111 pRenderer->DrawTextureIndexed(uX, window->uFrameY + 34, pIcons_LOD->GetTexture(v9)); 111 pRenderer->DrawTextureIndexed(uX, window->uFrameY + 34, pIcons_LOD->GetTexture(v9));
112 112
113 pRenderer->ResetTextureClipRect(); 113 pRenderer->ResetUIClipRect();
114 pRenderer->DrawTextureIndexed(uX - 5, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capl)); 114 pRenderer->DrawTextureIndexed(uX - 5, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capl));
115 pRenderer->DrawTextureIndexed(uX + bar_length, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capr)); 115 pRenderer->DrawTextureIndexed(uX + bar_length, window->uFrameY + 32, pIcons_LOD->GetTexture(uTextureID_mhp_capr));
116 } 116 }
117 117
118 //----- (00448A40) -------------------------------------------------------- 118 //----- (00448A40) --------------------------------------------------------