Wizard Recall shows Disappearing text at Coordinate (#35272)
* Add prediction for coordinate based popups * Remove use of deprecated EntityCoordinates.ToMap * RecallItem displays disppearing text at entity coordinates * Update Content.Shared/ItemRecall/SharedItemRecallSystem.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Content.Shared/Popups/SharedPopupSystem.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Add ItemRecall message for witnesses * Update Content.Shared/ItemRecall/SharedItemRecallSystem.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Resources/Locale/en-US/item-recall/item-recall.ftl Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Fix namespace issues * Fix Loc string * Dont fixstuff tired.. * Prefix THE * Filter around the entity, and remove recipient if needed * Alphabetical imports * Update Content.Client/Popups/PopupSystem.cs Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * fixup * Better handling. --------- Co-authored-by: Cooper Wallace <CooperWallace@users.noreply.github.com> Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Content.Shared.Actions;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Hands.EntitySystems;
|
||||
using Content.Shared.IdentityManagement;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Projectiles;
|
||||
using Robust.Shared.GameStates;
|
||||
@@ -83,7 +84,10 @@ public abstract partial class SharedItemRecallSystem : EntitySystem
|
||||
if (TryComp<EmbeddableProjectileComponent>(ent, out var projectile))
|
||||
_proj.EmbedDetach(ent, projectile, actionOwner.Value);
|
||||
|
||||
_popups.PopupPredicted(Loc.GetString("item-recall-item-summon", ("item", ent)), actionOwner.Value, actionOwner.Value);
|
||||
_popups.PopupPredicted(Loc.GetString("item-recall-item-summon-self", ("item", ent)),
|
||||
Loc.GetString("item-recall-item-summon-others", ("item", ent), ("name", Identity.Entity(actionOwner.Value, EntityManager))),
|
||||
actionOwner.Value, actionOwner.Value);
|
||||
_popups.PopupPredictedCoordinates(Loc.GetString("item-recall-item-disappear", ("item", ent)), Transform(ent).Coordinates, actionOwner.Value);
|
||||
|
||||
_hands.TryForcePickupAnyHand(actionOwner.Value, ent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user