fix Show Throw-Info

This commit is contained in:
beo3000 2026-01-11 10:51:09 +01:00
parent 979cf14adf
commit e2ba5f027f
1 changed files with 12 additions and 1 deletions

View File

@ -31,7 +31,9 @@
@* Throw counter and mode info *@
<div class="throw-info">
<MudChip T="string" Color="Color.Info" Size="Size.Medium">
Wurf @(ThrowPanelState.ThrowCounterPerRound + 1) / @ThrowPanelState.ThrowsPerRound
@GetThrowCountInfo()
</MudChip>
<MudChip T="string" Color="Color.Secondary" Size="Size.Medium">
@GetThrowModeDisplay()
@ -182,4 +184,13 @@
}
}
private string GetThrowCountInfo()
{
if (ThrowPanelState.ThrowsPerRound < int.MaxValue)
{
return $"Wurf {ThrowPanelState.ThrowCounterPerRound + 1} / {ThrowPanelState.ThrowsPerRound}";
}
return $"Wurf {ThrowPanelState.ThrowCounterPerRound + 1}";
}
}