feat: Update LAN chat messages and emotes for consistency with WOL#1821
feat: Update LAN chat messages and emotes for consistency with WOL#1821tintinhamans wants to merge 1 commit intoTheSuperHackers:mainfrom
Conversation
5fe9d3c to
57e7240
Compare
| if (!txtInput.isEmpty()) | ||
| TheLAN->RequestChat(txtInput, LANAPIInterface::LANCHAT_EMOTE); | ||
| // TheSuperHackers @tweak arcticdolphin 07/11/2025 changed from LANCHAT_EMOTE for consistency | ||
| TheLAN->RequestChat(txtInput, LANAPIInterface::LANCHAT_NORMAL); |
There was a problem hiding this comment.
The button is named "buttonEmoteID". Maybe EMOTE type is intentional? What is the difference?
There was a problem hiding this comment.
LANCHAT_EMOTE (first line in screenshot) is used when you press the button that looks like an Enter symbol, LANCHAT_NORMAL (second line in screenshot) is used when you press Enter on your keyboard.
Emote feels like a feature that was never completed, I essentially did the same as what was done for this in the LanLobbyMenu:
There was a problem hiding this comment.
How will the EMOTE be used without the button?
There was a problem hiding this comment.
I think we should introduce a /me command that would trigger the Emote formatting.
Emote is also used in the score screen chat and may need evaluation there too.
There was a problem hiding this comment.
That is how it is done in GameSpy code:
Bool handleGameSetupSlashCommands(UnicodeString uText)
{
...
else if (token == "me" && uText.getLength()>4)
{
TheGameSpyInfo->sendChat(UnicodeString(uText.str()+4), TRUE, NULL); // <---- second argument "isAction" makes emote chat
return TRUE; // was a slash command
}
...Ok.
So the action items here are:
- Change all lobby emote lobby buttons to send normal chat (Game Room, Score Screen)
- Rename the "emote" buttons to "chat" buttons
- Implement /me command for Network chat (ideally /me command still works when clicking the button too)
There was a problem hiding this comment.
@tintinhamans Will you make another pass on this or should someone else pick this up?
57e7240 to
bf87d7e
Compare
|
bf87d7e to
11c3530
Compare
Signed-off-by: tintinhamans <5984296+tintinhamans@users.noreply.github.com>
11c3530 to
7ed2490
Compare
This pull request introduces a new method for handling LAN chat messages, specifically adding support for
/meemote commands in LAN chat, consistent with WOL behavior.It also tweaks UI code to rename the chat button from
buttonEmotetobuttonChatfor clarity across multiple menus. The chat message handling logic is updated in all relevant places to use the new method, ensuring consistent emote and normal chat processing.Closes #1443