Add voice locks to various hidden syndicate items (#39310)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Trigger.Components.Effects;
|
||||
|
||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||
public sealed partial class LockOnTriggerComponent : BaseXOnTriggerComponent
|
||||
{
|
||||
[DataField, AutoNetworkedField]
|
||||
public LockAction LockOnTrigger = LockAction.Toggle;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum LockAction
|
||||
{
|
||||
Lock = 0,
|
||||
Unlock = 1,
|
||||
Toggle = 2,
|
||||
}
|
||||
@@ -44,4 +44,52 @@ public sealed partial class TriggerOnVoiceComponent : BaseTriggerOnXComponent
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public int MaxLength = 50;
|
||||
|
||||
/// <summary>
|
||||
/// When examining the item, should it show information about what word is recorded?
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool ShowExamine = true;
|
||||
|
||||
/// <summary>
|
||||
/// Should there be verbs that allow re-recording of the trigger word?
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool ShowVerbs = true;
|
||||
|
||||
/// <summary>
|
||||
/// The verb text that is shown when you can start recording a message.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public LocId StartRecordingVerb = "trigger-on-voice-record";
|
||||
|
||||
/// <summary>
|
||||
/// The verb text that is shown when you can stop recording a message.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public LocId StopRecordingVerb = "trigger-on-voice-stop";
|
||||
|
||||
/// <summary>
|
||||
/// Tooltip that appears when hovering over the stop or start recording verbs.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public LocId? RecordingVerbMessage;
|
||||
|
||||
/// <summary>
|
||||
/// The verb text that is shown when you can clear a recording.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public LocId ClearRecordingVerb = "trigger-on-voice-clear";
|
||||
|
||||
/// <summary>
|
||||
/// The loc string that is shown when inspecting an uninitialized voice trigger.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public LocId? InspectUninitializedLoc = "trigger-on-voice-uninitialized";
|
||||
|
||||
/// <summary>
|
||||
/// The loc string to use when inspecting voice trigger. Will also include the triggering phrase
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public LocId? InspectInitializedLoc = "trigger-on-voice-examine";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user