1
0
mirror of synced 2024-12-18 01:15:55 +01:00

Add initial ai section table

This commit is contained in:
asesidaa 2022-09-23 19:56:02 +08:00
parent 433faa53ff
commit a0fc549ad8

View File

@ -89,7 +89,7 @@
<Column T="SongBestData" Field="@nameof(SongBestData.ComboCount)" Title="MAX Combo" Sortable="false" />
<Column T="SongBestData" Field="@nameof(SongBestData.ShowAiData)" Title="AI Battle Data">
<CellTemplate>
<MudButton Variant="Variant.Outlined" Size="Size.Small" OnClick="@(()=> ToggleShowAiData(context.Item))">@((context.Item.ShowAiData == true) ? "Hide" : "Show")</MudButton>
<MudButton Variant="Variant.Outlined" Size="Size.Small" OnClick="@(()=> ToggleShowAiData(context.Item))">@(context.Item.ShowAiData ? "Hide" : "Show")</MudButton>
</CellTemplate>
</Column>
<Column T="SongBestData" Field="@nameof(SongBestData.LastPlayTime)" Title="Last Played" Hideable="true" />
@ -104,7 +104,29 @@
<MudTr>
<td colspan="1" />
<td colspan="16">
<MudTable Elevation="0" ReadOnly="true" Items="@context.Item.AiSectionBestData" Context="AiSectionBestData" />
<MudTable Elevation="0" ReadOnly="true"
Items="@context.Item.AiSectionBestData" Context="aiSectionContext">
<HeaderContent>
<MudTh>Section No</MudTh>
<MudTh>Is win?</MudTh>
<MudTh>Section Score</MudTh>
<MudTh>Section Crown</MudTh>
<MudTh>Section Good Count</MudTh>
<MudTh>Section Ok Count</MudTh>
<MudTh>Section Miss Count</MudTh>
<MudTh>Section Drumroll Count</MudTh>
</HeaderContent>
<RowTemplate>
<MudTd>@aiSectionContext.SectionIndex</MudTd>
<MudTd>@aiSectionContext.IsWin</MudTd>
<MudTd>@aiSectionContext.Score</MudTd>
<MudTd>@aiSectionContext.Crown</MudTd>
<MudTd>@aiSectionContext.GoodCount</MudTd>
<MudTd>@aiSectionContext.OkCount</MudTd>
<MudTd>@aiSectionContext.MissCount</MudTd>
<MudTd>@aiSectionContext.DrumrollCount</MudTd>
</RowTemplate>
</MudTable>
</td>
</MudTr>
}