# HG changeset patch # User Adam Kaminski # Date 1634564571 14400 # Mon Oct 18 09:42:51 2021 -0400 # Node ID a22b4a8444299ce6de7766dc954150ed56d50022 # Parent 261868878b7b7a4cbf2fd1d69834c0592c6d2b73 Show a message that tells the user how to change which player they want to send a private message to. diff -r 261868878b7b -r a22b4a844429 src/chat.cpp --- a/src/chat.cpp Sun Oct 17 01:30:51 2021 -0400 +++ b/src/chat.cpp Mon Oct 18 09:42:51 2021 -0400 @@ -776,11 +776,14 @@ HUD_DrawText( SmallFont, messageColor, SmallFont->StringWidth( prompt ), positionY, displayString ); } + FString note; + positionY = static_cast( positionY * g_rYScale - SmallFont->GetHeight( ) * 2 + 1 ); + // [RC] Tell chatters about the iron curtain of LMS chat. if ( GAMEMODE_AreSpectatorsForbiddenToChatToPlayers() ) { - FString note = "NOTE: " TEXTCOLOR_GRAY; bool bDrawNote = true; + note = "NOTE: " TEXTCOLOR_GRAY; // Is this the spectator talking? if ( players[consoleplayer].bSpectating ) @@ -803,7 +806,17 @@ } if ( bDrawNote ) - HUD_DrawTextCentered( SmallFont, CR_GREEN, static_cast( positionY * g_rYScale - SmallFont->GetHeight( ) * 2 + 1 ), note, g_bScale ); + { + HUD_DrawTextCentered( SmallFont, CR_GREEN, positionY, note, g_bScale ); + positionY -= SmallFont->GetHeight( ) + 1; + } + } + + // [AK] If we're sending a private message, tell us how to change the player we want to send the message to. + if (( g_ulChatMode == CHATMODE_PRIVATE_SEND ) && ( SERVER_CountPlayers( false ) >= 2 )) + { + note = "Press 'TAB' to move forward a player, or 'TAB + SHIFT' to move backward."; + HUD_DrawTextCentered( SmallFont, CR_GREY, positionY, note, g_bScale ); } BorderTopRefresh = screen->GetPageCount( );