hello trying to make hp bars in png
I have the main HP template in png and the current %HP bar also in PNG (I tried differently that there is a template first and it shows HP from the current client but I have a transparent background and it does not look good)
Example c++
i'm looking for an idea for cutting a PNG HP% at back and but not resize
FULL HP:
~50% HP
I have the main HP template in png and the current %HP bar also in PNG (I tried differently that there is a template first and it shows HP from the current client but I have a transparent background and it does not look good)
Example c++
C++:
TexturePtr bgLifeBar= g_textures.getTexture("/images/game/hp/bar.png");
g_painter->drawTexturedRect(backgroundRect, bgLifeBar);
TexturePtr bgLifeBarUI = g_textures.getTexture("/images/game/hp/bar_precent.png");
int width = (int)((m_healthPercent / 100.0) * bgLifeBarUI->getWidth());
g_painter->drawTexturedRect(backgroundRect, bgLifeBarUI, Rect(0, 0, width, bgLifeBarUI->getHeight()));
i'm looking for an idea for cutting a PNG HP% at back and but not resize
FULL HP:
~50% HP