mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-09 07:47:34 +00:00
* 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>
26 lines
1.1 KiB
C#
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;
|
|
}
|