mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* 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
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();
|
|
}
|
|
}
|