From fb782be1380cb83578b2d0d2f47bfb778394ce86 Mon Sep 17 00:00:00 2001 From: exincore Date: Wed, 26 Oct 2022 08:40:12 -0600 Subject: [PATCH] Add hud-chatbox-info reads keybinds (#12192) --- .../UserInterface/Systems/Chat/Controls/ChatInputBox.cs | 3 ++- Resources/Locale/en-US/chat/ui/chat-box.ftl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Client/UserInterface/Systems/Chat/Controls/ChatInputBox.cs b/Content.Client/UserInterface/Systems/Chat/Controls/ChatInputBox.cs index 4b0a2b3b3b..22d50f93ff 100644 --- a/Content.Client/UserInterface/Systems/Chat/Controls/ChatInputBox.cs +++ b/Content.Client/UserInterface/Systems/Chat/Controls/ChatInputBox.cs @@ -1,4 +1,5 @@ using Content.Shared.Chat; +using Content.Shared.Input; using Robust.Client.UserInterface.Controls; namespace Content.Client.UserInterface.Systems.Chat.Controls; @@ -32,7 +33,7 @@ public class ChatInputBox : PanelContainer Input = new HistoryLineEdit { Name = "Input", - PlaceHolder = Loc.GetString("hud-chatbox-info"), + PlaceHolder = Loc.GetString("hud-chatbox-info", ("talk-key", BoundKeyHelper.ShortKeyName(ContentKeyFunctions.FocusChat)), ("cycle-key", BoundKeyHelper.ShortKeyName(ContentKeyFunctions.CycleChatChannelForward))), HorizontalExpand = true, StyleClasses = {"chatLineEdit"} }; diff --git a/Resources/Locale/en-US/chat/ui/chat-box.ftl b/Resources/Locale/en-US/chat/ui/chat-box.ftl index 77e5131ee6..dd10bf3289 100644 --- a/Resources/Locale/en-US/chat/ui/chat-box.ftl +++ b/Resources/Locale/en-US/chat/ui/chat-box.ftl @@ -1,4 +1,4 @@ -hud-chatbox-info = T to talk, Tab to cycle channels. +hud-chatbox-info = {$talk-key} to talk, {$cycle-key} to cycle channels. hud-chatbox-select-name-prefixed = {$prefix} {$name} hud-chatbox-select-channel-Admin = Admin