source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Add colored console chat history

Open ficool2 opened this issue 9 months ago • 4 comments

Self-explanatory, makes chat history in the console use colors. The client code changes are pulled from Alien Swarm SDK.

screenshot

This PR also fixes the bug where saying a full chat message containing only spaces breaks color codes afterwards (as it made the console become solid white). One more small issue this PR addresses is removing an unsafe const cast and instead copying arguments from say/say_team command into a buffer first, since CheckChatText writes to it in-place,

NOTE: this PR requires the spew bug in materialsystem to be fixed as well, otherwise the console chat can bug out and be positioned out of order.

ficool2 avatar Feb 21 '25 13:02 ficool2

ficool could you fix words not being highlighted properly in the console? (or maybe it's fixed here)

Ashetf2 avatar Feb 23 '25 02:02 Ashetf2

ficool could you fix words not being highlighted properly in the console? (or maybe it's fixed here)

https://github.com/ValveSoftware/source-sdk-2013/pull/761

ficool2 avatar Feb 23 '25 15:02 ficool2

Can we have convar to disable colored console for accessibility reasons? -Thanks

KaelaSavia avatar Feb 25 '25 20:02 KaelaSavia

The aforementioned spew bug is https://github.com/ValveSoftware/Source-1-Games/issues/1985

Niterux avatar Feb 25 '25 21:02 Niterux