FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

cl_dll/hud_numericdisplay.cpp

116117118119120121
} //----------------------------------------------------------------------------- // Purpose: draws the text //----------------------------------------------------------------------------- void CHudNumericDisplay::PaintLabel( void )
116117118119120121122123124125126127128129130131132133134135136137138139140141142143
} //----------------------------------------------------------------------------- // Purpose: paints a number right aligned, so the digits column is always in the same place //----------------------------------------------------------------------------- void CHudNumericDisplay::PaintNumbersRightAligned(HFont font, int xpos, int ypos, int value, int maxchars) { int charWidth = surface()->GetCharacterWidth(font, '0'); int iTempxpos = xpos + charWidth * maxchars; // allow for X characters of score wchar_t unicode[6]; swprintf(unicode, L"%d", value); surface()->DrawSetTextFont( font ); for( wchar_t *wch = unicode; *wch != 0; wch++ ) iTempxpos -= surface()->GetCharacterWidth(font, *wch); surface()->DrawSetTextPos( iTempxpos, ypos ); for( wchar_t *wch = unicode; *wch != 0; wch++ ) surface()->DrawUnicodeChar( *wch ); } //----------------------------------------------------------------------------- // Purpose: draws the text //----------------------------------------------------------------------------- void CHudNumericDisplay::PaintLabel( void )
134135136137138139140141142143
if (m_bDisplayValue) { // draw our numbers surface()->DrawSetTextColor(GetFgColor()); PaintNumbers(m_hNumberFont, digit_xpos, digit_ypos, m_iValue); // draw the overbright blur for (float fl = m_flBlur; fl > 0.0f; fl -= 1.0f) { if (fl >= 1.0f)
156157158159160161162163164165
if (m_bDisplayValue) { // draw our numbers surface()->DrawSetTextColor(/*GetFgColor()*/ m_NumberColor); PaintNumbers(m_hNumberFont, digit_xpos, digit_ypos, m_iValue); /* // draw the overbright blur for (float fl = m_flBlur; fl > 0.0f; fl -= 1.0f) { if (fl >= 1.0f)
152153154155156157158
surface()->DrawSetTextColor(col); PaintNumbers(m_hNumberGlowFont, digit_xpos, digit_ypos, m_iValue); } } } // total ammo
174175176177178179180
surface()->DrawSetTextColor(col); PaintNumbers(m_hNumberGlowFont, digit_xpos, digit_ypos, m_iValue); } }*/ } // total ammo