fix Show Throw-Info
This commit is contained in:
parent
979cf14adf
commit
e2ba5f027f
|
|
@ -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}";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue