--
[ Picked text/plain from multipart/alternative ]
I use that currently, but I can't get it to crop the top, only crop the
bottom.
int w,h;
int ystart = GetTall() - m_Base->Height();
m_Base->DrawSelf(0,ystart,ColourWhite);
int healthheight = player->GetHealth()* 1.05;
int healthy = 105 - healthheight;
int stamheight = pHL2Player->m_iStamina * 1.05;
int stamy = 105 - stamheight;
m_Stamina->DrawSelfCropped(50,ystart + 2 +
stamy,0,0,25,stamheight,ColourWhite);
m_Health->DrawSelfCropped(15,ystart + 2 +
healthy,0,0,25,healthheight,ColourWhite);
m_Straps->DrawSelf(10,ystart + 6,ColourWhite);
that's the current draw code for our textured parts on that panel
--
Draco
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders