Turn and Check markers.
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
<p style="margin: 0">
|
||||
@if (IsTurn)
|
||||
{
|
||||
<span>* </span>
|
||||
<span class="turn-marker" title="Shows which player is next to move a piece.">Turn</span>
|
||||
<span> </span>
|
||||
}
|
||||
|
||||
@if (InCheck)
|
||||
{
|
||||
<span class="check-marker" title="King is in danger!">Check</span>
|
||||
<span> </span>
|
||||
}
|
||||
|
||||
@if (string.IsNullOrEmpty(Name))
|
||||
@@ -17,5 +24,6 @@
|
||||
|
||||
@code {
|
||||
[Parameter][EditorRequired] public bool IsTurn { get; set; }
|
||||
[Parameter][EditorRequired] public bool InCheck { get; set; }
|
||||
[Parameter][EditorRequired] public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user