Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wires ui tooltip localization #32284

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading