using Content.Server.Popups;
using Content.Shared.Database;
using Content.Shared.Inventory.Events;
+using Content.Shared.Popups;
using Content.Shared.Preferences;
using Content.Shared.VoiceMask;
using Robust.Server.GameObjects;
{
if (message.Name.Length > HumanoidCharacterProfile.MaxNameLength || message.Name.Length <= 0)
{
- _popupSystem.PopupCursor(Loc.GetString("voice-mask-popup-failure"), message.Session);
+ _popupSystem.PopupEntity(Loc.GetString("voice-mask-popup-failure"), uid, message.Session, PopupType.SmallCaution);
return;
}
else
_adminLogger.Add(LogType.Action, LogImpact.Medium, $"Voice of {ToPrettyString(uid):mask} set: {component.VoiceName}");
- _popupSystem.PopupCursor(Loc.GetString("voice-mask-popup-success"), message.Session);
+ _popupSystem.PopupEntity(Loc.GetString("voice-mask-popup-success"), uid, message.Session);
TrySetLastKnownName(uid, message.Name);