Skip to content

Commit

Permalink
Wires ui tooltip localization (#32284)
Browse files Browse the repository at this point in the history
* Wires ui tooltip localization

* Corrections after review
  • Loading branch information
chavonadelal authored Sep 18, 2024
1 parent 697f4f5 commit 9fad1ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 1 addition & 8 deletions Content.Client/Wires/UI/WiresMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -584,17 +584,10 @@ public StatusLight(StatusLightData data, IResourceCache resourceCache)

private sealed class HelpPopup : Popup
{
private const string Text = "Click on the gold contacts with a multitool in hand to pulse their wire.\n" +
"Click on the wires with a pair of wirecutters in hand to cut/mend them.\n\n" +
"The lights at the top show the state of the machine, " +
"messing with wires will probably do stuff to them.\n" +
"Wire layouts are different each round, " +
"but consistent between machines of the same type.";

public HelpPopup()
{
var label = new RichTextLabel();
label.SetMessage(Text);
label.SetMessage(Loc.GetString("wires-menu-help-popup"));
AddChild(new PanelContainer
{
StyleClasses = {ExamineSystem.StyleClassEntityTooltip},
Expand Down
6 changes: 6 additions & 0 deletions Resources/Locale/en-US/wires/components/wires-component.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ wires-component-ui-on-receive-message-cannot-mend-uncut-wire = You can't mend a

wires-menu-name-label = Wires
wires-menu-dead-beef-text = DEAD-BEEF
wires-menu-help-popup =
Click on the gold contacts with a multitool in hand to pulse their wire.
Click on the wires with a pair of wirecutters in hand to cut/mend them.
The lights at the top show the state of the machine, messing with wires will probably do stuff to them.
Wire layouts are different each round, but consistent between machines of the same type.

0 comments on commit 9fad1ab

Please sign in to comment.