fix(chat): the talk-focus button names the focus, not the target
581a61ef made the chat button display the tell TARGET's name once "Tell to X"
was picked. It should read "Tell" — the button names the focus, the same way
it reads "Chat", "General" or "Fellow" for the other focuses. Reported against
retail.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
581a61ef0c
commit
3eb28c57f2
1 changed files with 4 additions and 4 deletions
|
|
@ -173,6 +173,7 @@ public sealed class ChatWindowController : IRetainedWindowStateController, IReta
|
|||
private static string ChannelButtonLabel(ChatChannelKind k) => k switch
|
||||
{
|
||||
ChatChannelKind.Say => "Chat",
|
||||
ChatChannelKind.Tell => "Tell",
|
||||
ChatChannelKind.General => "General",
|
||||
ChatChannelKind.Trade => "Trade",
|
||||
ChatChannelKind.Lfg => "LFG",
|
||||
|
|
@ -428,10 +429,9 @@ public sealed class ChatWindowController : IRetainedWindowStateController, IReta
|
|||
TalkFocusSpecial => SelectedName() is not null,
|
||||
_ => true,
|
||||
};
|
||||
menu.ButtonLabelProvider = () =>
|
||||
c._activeChannel == ChatChannelKind.Tell && c._tellTarget is { } t
|
||||
? t
|
||||
: ChannelButtonLabel(c._activeChannel);
|
||||
// The button names the FOCUS, not the target: retail shows "Tell",
|
||||
// not the person's name.
|
||||
menu.ButtonLabelProvider = () => ChannelButtonLabel(c._activeChannel);
|
||||
menu.OnOpen = RebuildItems;
|
||||
menu.OnSelect = p =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue