Typing indicator (typing chat bubble) (#8215)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Chat.TypingIndicator;
|
||||
|
||||
/// <summary>
|
||||
/// Show typing indicator icon when player typing text in chat box.
|
||||
/// Added automatically when player poses entity.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
[Friend(typeof(SharedTypingIndicatorSystem))]
|
||||
public sealed class TypingIndicatorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Prototype id that store all visual info about typing indicator.
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
[DataField("proto", customTypeSerializer: typeof(PrototypeIdSerializer<TypingIndicatorPrototype>))]
|
||||
public string Prototype = "default";
|
||||
}
|
||||
Reference in New Issue
Block a user