mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-14 00:10:39 +00:00
#5799 - Change messagemode text box to display colors like in console input box.
This commit is contained in:
parent
05bc03d32d
commit
98f04d39a6
1 changed files with 5 additions and 3 deletions
|
@ -224,15 +224,17 @@ void SCR_DrawStringExt( int x, int y, float size, const char *string, float *set
|
||||||
xx = x;
|
xx = x;
|
||||||
re.SetColor( setColor );
|
re.SetColor( setColor );
|
||||||
while ( *s ) {
|
while ( *s ) {
|
||||||
if ( !noColorEscape && Q_IsColorString( s ) ) {
|
if ( Q_IsColorString( s ) ) {
|
||||||
if ( !forceColor ) {
|
if ( !forceColor ) {
|
||||||
Com_Memcpy( color, g_color_table[ColorIndex(*(s+1))], sizeof( color ) );
|
Com_Memcpy( color, g_color_table[ColorIndex(*(s+1))], sizeof( color ) );
|
||||||
color[3] = setColor[3];
|
color[3] = setColor[3];
|
||||||
re.SetColor( color );
|
re.SetColor( color );
|
||||||
}
|
}
|
||||||
|
if ( !noColorEscape ) {
|
||||||
s += 2;
|
s += 2;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
SCR_DrawChar( xx, y, size, *s );
|
SCR_DrawChar( xx, y, size, *s );
|
||||||
xx += size;
|
xx += size;
|
||||||
s++;
|
s++;
|
||||||
|
|
Loading…
Reference in a new issue