mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-03 17:25:27 +03:00
Add vscript created custom font support on game_text (CHudMessage)
This commit is contained in:
parent
7011b893af
commit
9e47b5a217
@ -505,6 +505,17 @@ void CHudMessage::MessageDrawScan( client_textmessage_t *pMessage, float time )
|
||||
m_parms.vguiFontName[ 0 ] )
|
||||
{
|
||||
SetFont( vgui::scheme()->GetDefaultScheme(), m_parms.vguiFontName );
|
||||
|
||||
#ifdef MAPBASE_VSCRIPT
|
||||
if ( m_parms.font == vgui::INVALID_FONT )
|
||||
{
|
||||
extern vgui::HFont GetScriptFont( const char *, bool );
|
||||
|
||||
vgui::HFont font = GetScriptFont( m_parms.vguiFontName, IsProportional() );
|
||||
textmessage->SetFont( font );
|
||||
m_parms.font = font;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user