From 240c9689facfab0e17129315486080e7f228b598 Mon Sep 17 00:00:00 2001 From: Theomund <34360334+Theomund@users.noreply.github.com> Date: Wed, 11 Jan 2023 04:06:14 -0500 Subject: [PATCH] Add scream action popup message (#13429) --- Content.Server/Speech/VocalSystem.cs | 5 +++++ Resources/Locale/en-US/actions/actions/vocal.ftl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Content.Server/Speech/VocalSystem.cs b/Content.Server/Speech/VocalSystem.cs index f00f499eb1..bbc2d76539 100644 --- a/Content.Server/Speech/VocalSystem.cs +++ b/Content.Server/Speech/VocalSystem.cs @@ -1,9 +1,11 @@ using Content.Server.Humanoid; +using Content.Server.Popups; using Content.Server.Speech.Components; using Content.Shared.ActionBlocker; using Content.Shared.Actions; using Content.Shared.Actions.ActionTypes; using Content.Shared.Humanoid; +using Content.Shared.Popups; using Robust.Shared.Audio; using Robust.Shared.Player; using Robust.Shared.Prototypes; @@ -23,6 +25,7 @@ public sealed class VocalSystem : EntitySystem [Dependency] private readonly IPrototypeManager _proto = default!; [Dependency] private readonly SharedActionsSystem _actions = default!; [Dependency] private readonly ActionBlockerSystem _blocker = default!; + [Dependency] private readonly PopupSystem _popupSystem = default!; public override void Initialize() { @@ -91,6 +94,8 @@ public sealed class VocalSystem : EntitySystem break; } + _popupSystem.PopupEntity(Loc.GetString("scream-action-popup"), uid, PopupType.Medium); + return true; } } diff --git a/Resources/Locale/en-US/actions/actions/vocal.ftl b/Resources/Locale/en-US/actions/actions/vocal.ftl index ced5c04565..48252b5f27 100644 --- a/Resources/Locale/en-US/actions/actions/vocal.ftl +++ b/Resources/Locale/en-US/actions/actions/vocal.ftl @@ -1 +1,2 @@ -action-name-scream = Scream \ No newline at end of file +action-name-scream = Scream +scream-action-popup = Screams!