1
0
mirror of synced 2024-11-23 22:41:01 +01:00

Add note count totals to song cards on Dani page

This commit is contained in:
shiibe 2022-09-11 19:14:16 -04:00
parent 4a6d1f204a
commit 270c79a5ce
2 changed files with 47 additions and 12 deletions

View File

@ -28,38 +28,73 @@
@for (uint i = 0; i <= 2; i++)
{
var index = i;
var danDataOdaiSong = danData.OdaiSongList[(int)i];
var sectionNumber = (int)i + 1;
<MudItem xs="12" Class="pb-1">
<MudCard Outlined="true" Class="pa-4">
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="16">
<MudStack Class="pl-3">
<MudGrid Style="display:flex; align-items: center; justify-content: flex-start;">
<MudItem xs="1" md="1" Style="display:flex;flex-direction:column;align-items:center;">
<h3>@sectionNumber</h3>
</MudStack>
</MudItem>
<MudStack AlignItems="AlignItems.Center" Spacing="1">
<MudItem xs="2" md="1" Style="display:flex;flex-direction:column;align-items:center;">
<img src=@($"/images/difficulty_{(Difficulty)danDataOdaiSong.Level}.png") style="width:40px;height:40px;" />
<MudText Typo="Typo.caption">@((Difficulty)danDataOdaiSong.Level)</MudText>
</MudStack>
</MudItem>
<MudStack Spacing="0">
<MudItem xs="9" md="4" Style="display:flex;flex-direction:column;" Class="pl-4">
<MudText Typo="Typo.body1" Style="font-weight: bold;">@GameDataService.GetMusicNameBySongId(danDataOdaiSong.SongNo)</MudText>
<MudText Typo="Typo.caption">@GameDataService.GetMusicArtistBySongId(danDataOdaiSong.SongNo)</MudText>
</MudStack>
</MudStack>
</MudItem>
<MudItem xs="12" md="6" Style="display:flex;flex-direction:column;">
@if (bestDataMap.ContainsKey(danId))
{
var danBestData = bestDataMap[danId];
var bestStage = danBestData.DanBestStageDataList[(int)index];
<MudStack Row="true" Spacing="4" Justify="Justify.SpaceEvenly">
<MudCard Elevation="0">
<MudText Typo="Typo.caption">Good</MudText>
<MudText Typo="Typo.body1" Style="font-weight: bold;">@bestStage.GoodCount</MudText>
</MudCard>
<MudCard Elevation="0">
<MudText Typo="Typo.caption">Ok</MudText>
<MudText Typo="Typo.body1" Style="font-weight: bold;">@bestStage.OkCount</MudText>
</MudCard>
<MudCard Elevation="0">
<MudText Typo="Typo.caption">Bad</MudText>
<MudText Typo="Typo.body1" Style="font-weight: bold;">@bestStage.BadCount</MudText>
</MudCard>
<MudCard Elevation="0">
<MudText Typo="Typo.caption">Drumroll</MudText>
<MudText Typo="Typo.body1" Style="font-weight: bold;">@bestStage.DrumrollCount</MudText>
</MudCard>
<MudCard Elevation="0">
<MudText Typo="Typo.caption">MAX Combo</MudText>
<MudText Typo="Typo.body1" Style="font-weight: bold;">@bestStage.ComboCount</MudText>
</MudCard>
<MudCard Elevation="0">
<MudText Typo="Typo.caption">Total Hits</MudText>
<MudText Typo="Typo.body1" Style="font-weight: bold;">@bestStage.TotalHitCount</MudText>
</MudCard>
</MudStack>
}
</MudItem>
</MudGrid>
</MudCard>
</MudItem>
}
<MudItem xs="12">
<MudGrid>
<MudItem xs="12" md="4">
<MudItem xs="12" md="3">
<MudCard Outlined="true" Class="pa-4">
<h4>Soul Gauge</h4>
</MudCard>
</MudItem>
<MudItem xs="12" md="8">
<MudItem xs="12" md="9">
<MudStack>
<MudCard Outlined="true" Class="pa-4">
<h4>Requirement Placeholder</h4>

View File

@ -86,8 +86,8 @@
<Column T="SongBestData" Field="@nameof(SongBestData.GoodCount)" Title="Good" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.OkCount)" Title="Ok" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.MissCount)" Title="Bad" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.DrumrollCount)" Title="Drum Roll" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.ComboCount)" Title="Max Combo" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.DrumrollCount)" Title="Drumroll" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.ComboCount)" Title="MAX Combo" Sortable="false"/>
<Column T="SongBestData" Field="@nameof(SongBestData.LastPlayTime)" Title="Last Played"/>
</Columns>
<PagerContent>