Browse Source

Remove hex symbols in overlay chat window.

merge-requests/38/merge
Mr_Goldberg 1 month ago
parent
commit
8a5e49251c
No known key found for this signature in database GPG Key ID: 8597D87419DEF278
  1. 4
      overlay_experimental/steam_overlay.cpp

4
overlay_experimental/steam_overlay.cpp

@ -698,7 +698,7 @@ void Steam_Overlay::Callback(Common_Message *msg)
{
Steam_Messages const& steam_message = msg->steam_messages();
// Change color to cyan for friend
friend_info->second.chat_history.append("\x1""00FFFFFF", 9).append(steam_message.message()).append("\n", 1);
friend_info->second.chat_history.append(steam_message.message()).append("\n", 1);
if (!(friend_info->second.window_state & window_state_show))
{
friend_info->second.window_state |= window_state_need_attention;
@ -758,7 +758,7 @@ void Steam_Overlay::RunCallbacks()
msg.set_dest_id(friend_id);
network->sendTo(&msg, true);
friend_info->second.chat_history.append("\x1""00FF00FF", 9).append(input).append("\n", 1);
friend_info->second.chat_history.append(input).append("\n", 1);
}
*input = 0; // Reset the input field
friend_info->second.window_state &= ~window_state_send_message;

Loading…
Cancel
Save