Files
Delta-v/Content.Shared/Chat/TypingIndicator/TypingIndicatorComponent.cs
T
OxdeceptionandOxdeception 04c7e4d633 Adds a typing indicator to the AAC (#3595)
* Adds a typing indicator to the AAC

* Removes duplicate TypingChangedEvent constructor

* Updates sprite attribution

* Corrects fork addition comment style

* Moves typing indicator override from Appearance to TypingIndicatorComponent

* Reduces retrievals of TypingIndicatorSystem in the AAC BUI

* Moves ClientAlternateTyping to _DV

* Adds missing comment

* Sets TypingIndicatorComponent Dirty

* Caches ShowTypingIndicator in AlternateTypingIndicator

* Removes unnecessary default assignment

---------

Co-authored-by: Oxdeception <9624-oxdeception@users.noreply.gitgud.io>
2025-05-03 23:36:13 +01:00

26 lines
1.1 KiB
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
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, AutoGenerateComponentState] // CD - AutoGenerateComponentState fixes a bug with synth trait
// [Access(typeof(SharedTypingIndicatorSystem))] CD - Restricted access breaks synth trait because it rewrites the speech bubble over the default race indicator
public sealed partial class TypingIndicatorComponent : Component
{
/// <summary>
/// Prototype id that store all visual info about typing indicator.
/// </summary>
[DataField("proto"), AutoNetworkedField] // CD - AutoNetworkedField fixes a bug in synth trait
public ProtoId<TypingIndicatorPrototype> TypingIndicatorPrototype = "default";
/// <summary>
/// DeltaV - Allow the indicator to be temporarily overriden
/// </summary>
[DataField, AutoNetworkedField]
public ProtoId<TypingIndicatorPrototype>? TypingIndicatorOverridePrototype;
}