Hey guys! :D
Does anyone knows how to align the HUD digits to the right ?
I found this in the void CHudNumericDisplay::PaintNumbers( HFont font, int xpos, int ypos, int value ) section of hud_numericdisplay.cpp
Is it here ?
Thanks :)
HUD Numbers
Does anyone knows how to align the HUD digits to the right ?
I found this in the void CHudNumericDisplay::PaintNumbers( HFont font, int xpos, int ypos, int value ) section of hud_numericdisplay.cpp
Code:
// adjust the position to take into account 3 characters
[...]
if (value < 100 && m_bIndent)
{
xpos += charWidth;
}
if (value < 10 && m_bIndent)
{
xpos += charWidth;
}
surface()->DrawSetTextPos(xpos, ypos);
surface()->DrawUnicodeString( unicode );
Thanks :)
0 commentaires:
Enregistrer un commentaire