mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 08:07:28 +00:00
* add Name field to SpeechVerbPrototype
* extra locale for voice mask ui
* SpeechVerb ui and handling
* raaaaaaaaa
* reeeeeeeeal
Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
* fix sort
* did you hear john syndicate died of ligma
* Update Content.Client/VoiceMask/VoiceMaskNameChangeWindow.xaml
---------
Co-authored-by: deltanedas <@deltanedas:kde.org>
Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
(cherry picked from commit d13da2837d)
48 lines
1003 B
C#
48 lines
1003 B
C#
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.VoiceMask;
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum VoiceMaskUIKey : byte
|
|
{
|
|
Key
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class VoiceMaskBuiState : BoundUserInterfaceState
|
|
{
|
|
public readonly string Name;
|
|
public readonly string? Verb;
|
|
|
|
public VoiceMaskBuiState(string name, string? verb)
|
|
{
|
|
Name = name;
|
|
Verb = verb;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class VoiceMaskChangeNameMessage : BoundUserInterfaceMessage
|
|
{
|
|
public readonly string Name;
|
|
|
|
public VoiceMaskChangeNameMessage(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Change the speech verb prototype to override, or null to use the user's verb.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class VoiceMaskChangeVerbMessage : BoundUserInterfaceMessage
|
|
{
|
|
public readonly string? Verb;
|
|
|
|
public VoiceMaskChangeVerbMessage(string? verb)
|
|
{
|
|
Verb = verb;
|
|
}
|
|
}
|