lundi 27 juillet 2015

HUD Numbers

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

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 );

Is it here ?

Thanks :)
HUD Numbers

0 commentaires:

Enregistrer un commentaire

Popular Posts

Categories

Unordered List

Text Widget

Blog Archive

Followers

Fourni par Blogger.