This commit is contained in:
beo3000 2026-01-08 18:00:42 +01:00
parent 31bbaaf70a
commit 383db346eb
2 changed files with 16 additions and 13 deletions

View File

@ -64,19 +64,21 @@
</MudText>
@* Preview tree structure *@
<MudExpansionPanel Text="Baumvorschau" Class="mt-4">
<MudStack>
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
{
<MudText Typo="Typo.body2">
@num: @(new string('●', count))
@* <div @onclick:stopPropagation="true"> *@
@* <MudExpansionPanel Text="Baumvorschau" Class="mt-4" @bind-IsExpanded="_previewExpanded"> *@
@* <MudStack>
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
{
<MudText Typo="Typo.body2">
@num: @(new string('●', count))
</MudText>
}
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2">
Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder
</MudText>
}
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2">
Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder
</MudText>
</MudStack>
</MudExpansionPanel>
</MudStack> *@
@* </MudExpansionPanel> *@
@* </div> *@
</MudPaper>
@code {
@ -91,6 +93,7 @@
private ChristmasTreeSetupOptions _options = new();
private bool _hasExpensePointTrigger = true;
private bool _previewExpanded;
protected override async Task OnInitializedAsync()
{

View File

@ -80,7 +80,7 @@
@foreach (var evt in GetAssignedEvents(context.AssignedEvents))
{
<MudChip T="string" Size="Size.Small" Color="GetEventColor(evt)" Variant="Variant.Outlined" Class="mr-1">
@(_ = Term.GetThrowEventName(evt))
@(_ = Term.GetThrowEventName(evt).Result)
</MudChip>
}
</MudTd>