Skip to content

Commit

Permalink
Translate "Switch to map" string (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
SokyranTheDragon authored Apr 16, 2024
1 parent 72c3f93 commit 2eb057f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Client/Persistent/ISwitchToMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ static void DoSwitchToMap(Window window, Rect rect)
return;

using (MpStyle.Set(GameFont.Tiny))
if (Widgets.ButtonText(new Rect(rect.xMax - 105, 5, 100, 24), "Switch to map"))
{
var switchToMapText = "MpSwitchToMap".Translate();
var width = switchToMapText.GetWidthCached() + 25;

if (Widgets.ButtonText(new Rect(rect.xMax - width - 5, 5, width, 24), switchToMapText))
window.Close();
}
}
}
}

0 comments on commit 2eb057f

Please sign in to comment.