Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print chat messages to console in color #63

Closed
wants to merge 1 commit into from

Conversation

saul
Copy link

@saul saul commented Jul 2, 2013

  • Chat messages are now printed to console in CBaseHudChatLine::Colorize
  • Removed RemoveColorMarkup function (no longer used)

Note: as the chat message are printed to console in chunks of color, this feature depends on #57 being fixed, otherwise the message is printed out of order.

* Removed RemoveColorMarkup function (no longer used)
* Chat messages are now printed to console in CBaseHudChatLine::Colorize
@@ -1394,7 +1348,7 @@ void CBaseHudChatLine::InsertAndColorizeText( wchar_t *buf, int clientIndex )
wchar_t *txt = m_text;
int lineLen = wcslen( m_text );
Color colCustom;
if ( m_text[0] == COLOR_PLAYERNAME || m_text[0] == COLOR_LOCATION || m_text[0] == COLOR_NORMAL || m_text[0] == COLOR_ACHIEVEMENT || m_text[0] == COLOR_CUSTOM || m_text[0] == COLOR_HEXCODE || m_text[0] == COLOR_HEXCODE_ALPHA )
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conditional was checking whether m_text[0] was a color code other than COLOR_USEOLDCOLORS.

@JoeLudwig
Copy link
Contributor

We aren't fixing #57 so we'll have to pass on this one also.

@JoeLudwig JoeLudwig closed this Jul 18, 2013
z33ky referenced this pull request in z33ky/source-sdk-2013 Jan 30, 2021
basic sniper rifle implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants