24 lines
647 B
C#
24 lines
647 B
C#
using Robust.Shared.Prototypes;
|
|
using Content.Shared.Chat.TypingIndicator;
|
|
using Content.Client.Chat.TypingIndicator;
|
|
namespace Content.Client.Paper.UI;
|
|
|
|
public sealed partial class PaperBoundUserInterface
|
|
{
|
|
private static readonly ProtoId<TypingIndicatorPrototype> TypingIndicator = "paper";
|
|
|
|
private TypingIndicatorSystem? _typing;
|
|
|
|
private void OnTyping()
|
|
{
|
|
_typing ??= EntMan.System<TypingIndicatorSystem>();
|
|
_typing?.ClientAlternateTyping(TypingIndicator);
|
|
}
|
|
|
|
private void OnSubmit()
|
|
{
|
|
_typing ??= EntMan.System<TypingIndicatorSystem>();
|
|
_typing?.ClientSubmittedChatText();
|
|
}
|
|
}
|