Removed old Loc.GetString() use instances (#4155)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Content.Server.Access.Components
|
||||
{
|
||||
if (!user.TryGetComponent(out IHandsComponent? hands))
|
||||
{
|
||||
Owner.PopupMessage(user, Loc.GetString("You have no hands."));
|
||||
Owner.PopupMessage(user, Loc.GetString("access-id-card-console-component-no-hands-error"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace Content.Server.Access.Components
|
||||
|
||||
if (!hands.Drop(hands.ActiveHand, container))
|
||||
{
|
||||
Owner.PopupMessage(user, Loc.GetString("You can't let go of the ID card!"));
|
||||
Owner.PopupMessage(user, Loc.GetString("access-id-card-console-component-cannot-let-go-error"));
|
||||
return;
|
||||
}
|
||||
UpdateUserInterface();
|
||||
@@ -194,8 +194,8 @@ namespace Content.Server.Access.Components
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
_privilegedIdContainer.ContainedEntity?.Name ?? "",
|
||||
_targetIdContainer.ContainedEntity?.Name ?? "");
|
||||
_privilegedIdContainer.ContainedEntity?.Name ?? string.Empty,
|
||||
_targetIdContainer.ContainedEntity?.Name ?? string.Empty);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -208,8 +208,8 @@ namespace Content.Server.Access.Components
|
||||
targetIdComponent.FullName,
|
||||
targetIdComponent.JobTitle,
|
||||
targetAccessComponent.Tags.ToArray(),
|
||||
_privilegedIdContainer.ContainedEntity?.Name ?? "",
|
||||
_targetIdContainer.ContainedEntity?.Name ?? "");
|
||||
_privilegedIdContainer.ContainedEntity?.Name ?? string.Empty,
|
||||
_targetIdContainer.ContainedEntity?.Name ?? string.Empty);
|
||||
}
|
||||
UserInterface?.SetState(newState);
|
||||
}
|
||||
@@ -235,7 +235,7 @@ namespace Content.Server.Access.Components
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!item.TryGetComponent<IdCardComponent>(out var idCardComponent) || !user.TryGetComponent(out IHandsComponent? hand))
|
||||
if (!item.HasComponent<IdCardComponent>() || !user.TryGetComponent(out IHandsComponent? hand))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -265,7 +265,7 @@ namespace Content.Server.Access.Components
|
||||
return;
|
||||
}
|
||||
|
||||
data.Text = Loc.GetString("Eject Privileged ID");
|
||||
data.Text = Loc.GetString("access-eject-privileged-id-verb-get-data-text");
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
|
||||
data.Visibility = component.PrivilegedIDEmpty ? VerbVisibility.Invisible : VerbVisibility.Visible;
|
||||
}
|
||||
@@ -290,7 +290,7 @@ namespace Content.Server.Access.Components
|
||||
return;
|
||||
}
|
||||
|
||||
data.Text = Loc.GetString("Eject Target ID");
|
||||
data.Text = Loc.GetString("access-eject-target-id-verb-get-data-text");
|
||||
data.Visibility = component.TargetIDEmpty ? VerbVisibility.Invisible : VerbVisibility.Visible;
|
||||
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user