Unhardcode thruster localization (#11503)
This commit is contained in:
@@ -64,9 +64,7 @@ namespace Content.Server.Shuttles.Systems
|
||||
private void OnThrusterExamine(EntityUid uid, ThrusterComponent component, ExaminedEvent args)
|
||||
{
|
||||
// Powered is already handled by other power components
|
||||
var enabled = Loc.GetString("thruster-comp-enabled",
|
||||
("enabledColor", component.Enabled ? "green": "red"),
|
||||
("enabled", component.Enabled ? "on": "off"));
|
||||
var enabled = Loc.GetString(component.Enabled ? "thruster-comp-enabled" : "thruster-comp-disabled");
|
||||
|
||||
args.PushMarkup(enabled);
|
||||
|
||||
@@ -81,9 +79,7 @@ namespace Content.Server.Shuttles.Systems
|
||||
|
||||
var exposed = NozzleExposed(xform);
|
||||
|
||||
var nozzleText = Loc.GetString("thruster-comp-nozzle-exposed",
|
||||
("exposedColor", exposed ? "green" : "red"),
|
||||
("exposed", exposed ? "is": "is not"));
|
||||
var nozzleText = Loc.GetString(exposed ? "thruster-comp-nozzle-exposed" : "thruster-comp-nozzle-not-exposed");
|
||||
|
||||
args.PushMarkup(nozzleText);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
thruster-comp-enabled = The thruster is turned [color={$enabledColor}]{$enabled}[/color].
|
||||
thruster-comp-enabled = The thruster is turned [color=green]on[/color].
|
||||
thruster-comp-disabled = The thruster is turned [color=red]off[/color].
|
||||
thruster-comp-nozzle-direction = The nozzle is facing [color=yellow]{$direction}[/color].
|
||||
thruster-comp-nozzle-exposed = The nozzle [color={$exposedColor}]{$exposed} exposed[/color] to space.
|
||||
thruster-comp-nozzle-exposed = The nozzle [color=green]exposed[/color] to space.
|
||||
thruster-comp-nozzle-not-exposed = The nozzle [color=red]is not exposed[/color] to space.
|
||||
|
||||
Reference in New Issue
Block a user