Removed old Loc.GetString() use instances (#4155)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -44,9 +44,9 @@ namespace Content.Client.Disposal.UI
|
||||
{
|
||||
Children =
|
||||
{
|
||||
new Label {Text = Loc.GetString("State: ")},
|
||||
new Label {Text = $"{Loc.GetString("disposal-mailing-unit-window-state-label")} "},
|
||||
new Control {MinSize = (4, 0)},
|
||||
(_unitState = new Label {Text = Loc.GetString("Ready")})
|
||||
(_unitState = new Label {Text = Loc.GetString("disposal-mailing-unit-window-ready-state")})
|
||||
}
|
||||
},
|
||||
new Control {MinSize = (0, 10)},
|
||||
@@ -55,7 +55,7 @@ namespace Content.Client.Disposal.UI
|
||||
HorizontalExpand = true,
|
||||
Children =
|
||||
{
|
||||
new Label {Text = Loc.GetString("Pressure:")},
|
||||
new Label {Text = Loc.GetString("disposal-mailing-unit-pressure-label")},
|
||||
new Control {MinSize = (4, 0)},
|
||||
(_pressureBar = new ProgressBar
|
||||
{
|
||||
@@ -78,7 +78,7 @@ namespace Content.Client.Disposal.UI
|
||||
HorizontalExpand = true,
|
||||
Children =
|
||||
{
|
||||
new Label {Text = Loc.GetString("Handle:")},
|
||||
new Label {Text = Loc.GetString("disposal-mailing-unit-handle-label")},
|
||||
new Control
|
||||
{
|
||||
MinSize = (4, 0),
|
||||
@@ -87,7 +87,7 @@ namespace Content.Client.Disposal.UI
|
||||
(Engage = new Button
|
||||
{
|
||||
MinSize = (16, 0),
|
||||
Text = Loc.GetString("Engage"),
|
||||
Text = Loc.GetString("disposal-mailing-unit-engage-button"),
|
||||
ToggleMode = true,
|
||||
Disabled = true
|
||||
})
|
||||
@@ -99,7 +99,7 @@ namespace Content.Client.Disposal.UI
|
||||
HorizontalExpand = true,
|
||||
Children =
|
||||
{
|
||||
new Label {Text = Loc.GetString("Eject:")},
|
||||
new Label {Text = Loc.GetString("disposal-mailing-unit-eject-label")},
|
||||
new Control
|
||||
{
|
||||
MinSize = (4, 0),
|
||||
@@ -108,7 +108,7 @@ namespace Content.Client.Disposal.UI
|
||||
(Eject = new Button
|
||||
{
|
||||
MinSize = (16, 0),
|
||||
Text = Loc.GetString("Eject Contents"),
|
||||
Text = Loc.GetString("disposal-mailing-unit-eject-button"),
|
||||
//HorizontalAlignment = HAlignment.Right
|
||||
})
|
||||
}
|
||||
@@ -118,7 +118,7 @@ namespace Content.Client.Disposal.UI
|
||||
{
|
||||
Children =
|
||||
{
|
||||
(Power = new CheckButton {Text = Loc.GetString("Power")}),
|
||||
(Power = new CheckButton {Text = Loc.GetString("disposal-mailing-unit-power-button")}),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ namespace Content.Client.Disposal.UI
|
||||
{
|
||||
new Label
|
||||
{
|
||||
Text = Loc.GetString("Select a destination:")
|
||||
Text = Loc.GetString("disposal-mailing-unit-destination-select-label")
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -176,7 +176,7 @@ namespace Content.Client.Disposal.UI
|
||||
{
|
||||
new Label
|
||||
{
|
||||
Text = Loc.GetString("This unit:")
|
||||
Text = Loc.GetString("disposal-mailing-unit-unit-self-reference")
|
||||
},
|
||||
new Control
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Content.Shared.Disposal.Components;
|
||||
using Content.Shared.Disposal.Components;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
@@ -18,13 +18,13 @@ namespace Content.Client.Disposal.UI
|
||||
public DisposalRouterWindow()
|
||||
{
|
||||
MinSize = SetSize = (500, 110);
|
||||
Title = Loc.GetString("Disposal Router");
|
||||
Title = Loc.GetString("disposal-router-window-title");
|
||||
|
||||
Contents.AddChild(new VBoxContainer
|
||||
{
|
||||
Children =
|
||||
{
|
||||
new Label {Text = Loc.GetString("Tags:")},
|
||||
new Label {Text = Loc.GetString("disposal-router-window-tags-label")},
|
||||
new Control {MinSize = (0, 10)},
|
||||
new HBoxContainer
|
||||
{
|
||||
@@ -34,11 +34,11 @@ namespace Content.Client.Disposal.UI
|
||||
{
|
||||
HorizontalExpand = true,
|
||||
MinSize = (320, 0),
|
||||
ToolTip = Loc.GetString("A comma separated list of tags"),
|
||||
ToolTip = Loc.GetString("disposal-router-window-tag-input-tooltip"),
|
||||
IsValid = tags => TagRegex.IsMatch(tags)
|
||||
}),
|
||||
new Control {MinSize = (10, 0)},
|
||||
(Confirm = new Button {Text = Loc.GetString("Confirm")})
|
||||
(Confirm = new Button {Text = Loc.GetString("disposal-router-window-tag-input-confirm-button")})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Content.Shared.Disposal.Components;
|
||||
using Content.Shared.Disposal.Components;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
@@ -18,13 +18,13 @@ namespace Content.Client.Disposal.UI
|
||||
public DisposalTaggerWindow()
|
||||
{
|
||||
MinSize = SetSize = (500, 110);
|
||||
Title = Loc.GetString("Disposal Tagger");
|
||||
Title = Loc.GetString("disposal-tagger-window-title");
|
||||
|
||||
Contents.AddChild(new VBoxContainer
|
||||
{
|
||||
Children =
|
||||
{
|
||||
new Label {Text = Loc.GetString("Tag:")},
|
||||
new Label {Text = Loc.GetString("disposal-tagger-window-tag-input-label")},
|
||||
new Control {MinSize = (0, 10)},
|
||||
new HBoxContainer
|
||||
{
|
||||
@@ -37,7 +37,7 @@ namespace Content.Client.Disposal.UI
|
||||
IsValid = tag => TagRegex.IsMatch(tag)
|
||||
}),
|
||||
new Control {MinSize = (10, 0)},
|
||||
(Confirm = new Button {Text = Loc.GetString("Confirm")})
|
||||
(Confirm = new Button {Text = Loc.GetString("disposal-tagger-window-tag-confirm-button")})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user