mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
fix: Update zoom display in MapOverlay to show one decimal place for improved readability
This commit is contained in:
parent
c19ce62e98
commit
c7166f1cbc
1 changed files with 2 additions and 2 deletions
|
|
@ -154,9 +154,9 @@ namespace MinecraftClient.Tui
|
|||
|
||||
private void UpdateHeaderText()
|
||||
{
|
||||
int zoomPercent = _scale > 0 ? (int)Math.Round(_scale * 100) : 0;
|
||||
string zoomText = _scale > 0 ? (_scale * 100).ToString("F1") : "0.0";
|
||||
_headerBlock.Text = string.Format(Translations.bot_map_tui_header,
|
||||
_map.MapId, _map.Width, _map.Height, zoomPercent);
|
||||
_map.MapId, _map.Width, _map.Height, zoomText);
|
||||
}
|
||||
|
||||
protected override void OnSizeChanged(SizeChangedEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue