PopupSystem public methods rejig (#12830)
This commit is contained in:
@@ -105,7 +105,7 @@ public sealed partial class ChemistrySystem
|
||||
else
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-cannot-transfer-message",
|
||||
("target", Identity.Entity(target, EntityManager))), component.Owner, Filter.Entities(user));
|
||||
("target", Identity.Entity(target, EntityManager))), component.Owner, user);
|
||||
}
|
||||
}
|
||||
else if (component.ToggleState == SharedInjectorComponent.InjectorToggleMode.Draw)
|
||||
@@ -125,7 +125,7 @@ public sealed partial class ChemistrySystem
|
||||
else
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-cannot-draw-message",
|
||||
("target", Identity.Entity(target, EntityManager))), component.Owner, Filter.Entities(user));
|
||||
("target", Identity.Entity(target, EntityManager))), component.Owner, user);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,7 +226,7 @@ public sealed partial class ChemistrySystem
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
_popup.PopupEntity(Loc.GetString(msg), component.Owner, Filter.Entities(user));
|
||||
_popup.PopupEntity(Loc.GetString(msg), component.Owner, user);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -235,7 +235,7 @@ public sealed partial class ChemistrySystem
|
||||
private void InjectDoAfter(InjectorComponent component, EntityUid user, EntityUid target)
|
||||
{
|
||||
// Create a pop-up for the user
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-injecting-user"), target, Filter.Entities(user));
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-injecting-user"), target, user);
|
||||
|
||||
if (!_solutions.TryGetSolution(component.Owner, InjectorComponent.SolutionName, out var solution))
|
||||
return;
|
||||
@@ -250,7 +250,7 @@ public sealed partial class ChemistrySystem
|
||||
// Create a pop-up for the target
|
||||
var userName = Identity.Entity(user, EntityManager);
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-injecting-target",
|
||||
("user", userName)), user, Filter.Entities(target));
|
||||
("user", userName)), user, target);
|
||||
|
||||
// Check if the target is incapacitated or in combat mode and modify time accordingly.
|
||||
if (_mobState.IsIncapacitated(target))
|
||||
@@ -311,7 +311,7 @@ public sealed partial class ChemistrySystem
|
||||
if (realTransferAmount <= 0)
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-cannot-inject-message", ("target", Identity.Entity(targetBloodstream.Owner, EntityManager))),
|
||||
component.Owner, Filter.Entities(user));
|
||||
component.Owner, user);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ public sealed partial class ChemistrySystem
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-inject-success-message",
|
||||
("amount", removedSolution.TotalVolume),
|
||||
("target", Identity.Entity(targetBloodstream.Owner, EntityManager))), component.Owner, Filter.Entities(user));
|
||||
("target", Identity.Entity(targetBloodstream.Owner, EntityManager))), component.Owner, user);
|
||||
|
||||
Dirty(component);
|
||||
AfterInject(component);
|
||||
@@ -344,7 +344,7 @@ public sealed partial class ChemistrySystem
|
||||
if (realTransferAmount <= 0)
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-target-already-full-message", ("target", Identity.Entity(targetEntity, EntityManager))),
|
||||
component.Owner, Filter.Entities(user));
|
||||
component.Owner, user);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -364,7 +364,7 @@ public sealed partial class ChemistrySystem
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-transfer-success-message",
|
||||
("amount", removedSolution.TotalVolume),
|
||||
("target", Identity.Entity(targetEntity, EntityManager))), component.Owner, Filter.Entities(user));
|
||||
("target", Identity.Entity(targetEntity, EntityManager))), component.Owner, user);
|
||||
|
||||
Dirty(component);
|
||||
AfterInject(component);
|
||||
@@ -404,7 +404,7 @@ public sealed partial class ChemistrySystem
|
||||
if (realTransferAmount <= 0)
|
||||
{
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-target-is-empty-message", ("target", Identity.Entity(targetEntity, EntityManager))),
|
||||
component.Owner, Filter.Entities(user));
|
||||
component.Owner, user);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -425,7 +425,7 @@ public sealed partial class ChemistrySystem
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-draw-success-message",
|
||||
("amount", removedSolution.TotalVolume),
|
||||
("target", Identity.Entity(targetEntity, EntityManager))), component.Owner, Filter.Entities(user));
|
||||
("target", Identity.Entity(targetEntity, EntityManager))), component.Owner, user);
|
||||
|
||||
Dirty(component);
|
||||
AfterDraw(component);
|
||||
@@ -450,7 +450,7 @@ public sealed partial class ChemistrySystem
|
||||
|
||||
_popup.PopupEntity(Loc.GetString("injector-component-draw-success-message",
|
||||
("amount", transferAmount),
|
||||
("target", Identity.Entity(target, EntityManager))), component.Owner, Filter.Entities(user));
|
||||
("target", Identity.Entity(target, EntityManager))), component.Owner, user);
|
||||
|
||||
Dirty(component);
|
||||
AfterDraw(component);
|
||||
|
||||
Reference in New Issue
Block a user