Files
Delta-v/Content.Client/_DV/Paper/UI/PaperBoundUserInterface.cs
T
Nikovnik ffbca08829 Chat bubble for writing on paper (#3689)
* added paper chat bubble

* forgor comma

* new prototype

* added invoking to the paper writing

* fixed indicator a bit

* placed typing invokes better

* adjusted offset

* added comments and moved things to partial

* better comments

* migrated submit to OnClose
2025-05-09 16:58:48 +01:00

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();
}
}