cl_dll/vgui_centerstringpanel.cpp
147148149150151152153154155156157
SetFgColor( Color( r, g, b, a ) );
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CCenterStringLabel::Print( char *text )
{
SetText( text );
m_flCentertimeOff = scr_centertime.GetFloat() + gpGlobals->curtime;
147148149150151152153154155156157158159160161162163164165166167
SetFgColor( Color( r, g, b, a ) );
}
// --> FF
extern ConVar cl_drawhud;
extern ConVar hud_messages;
// <-- FF
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CCenterStringLabel::Print( char *text )
{
// --> FF
if ( !cl_drawhud.GetBool() || !hud_messages.GetBool() )
return;
// <-- FF
SetText( text );
m_flCentertimeOff = scr_centertime.GetFloat() + gpGlobals->curtime;
162163164165166167
//-----------------------------------------------------------------------------
void CCenterStringLabel::Print( wchar_t *text )
{
SetText( text );
m_flCentertimeOff = scr_centertime.GetFloat() + gpGlobals->curtime;
172173174175176177178179180181182
//-----------------------------------------------------------------------------
void CCenterStringLabel::Print( wchar_t *text )
{
// --> FF
if ( !cl_drawhud.GetBool() || !hud_messages.GetBool() )
return;
// <-- FF
SetText( text );
m_flCentertimeOff = scr_centertime.GetFloat() + gpGlobals->curtime;