Small fixes to dani page
This commit is contained in:
commit
13a689b4e2
@ -59,7 +59,7 @@
|
|||||||
<MudTooltip Text="@difficulty.ToString()" Placement="Placement.Top" Arrow="true">
|
<MudTooltip Text="@difficulty.ToString()" Placement="Placement.Top" Arrow="true">
|
||||||
<img src=@($"/images/difficulty_{difficulty}.png") style="width:40px;height:40px;margin-bottom:2px;" alt="@difficulty" />
|
<img src=@($"/images/difficulty_{difficulty}.png") style="width:40px;height:40px;margin-bottom:2px;" alt="@difficulty" />
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
<MudStack Row="true" Spacing="0" Justify="Justify.Center" AlignItems="AlignItems.Center">
|
<MudStack Row="true" Spacing="1" Justify="Justify.Center" AlignItems="AlignItems.Center">
|
||||||
<MudIcon Icon="@Icons.Filled.Star" Size="Size.Small" />
|
<MudIcon Icon="@Icons.Filled.Star" Size="Size.Small" />
|
||||||
<MudText Typo="Typo.caption" Style="line-height:1;margin-top:2px;margin-right:2px;">@GameDataService.GetMusicStarLevel(danDataOdaiSong.SongNo, difficulty)</MudText>
|
<MudText Typo="Typo.caption" Style="line-height:1;margin-top:2px;margin-right:2px;">@GameDataService.GetMusicStarLevel(danDataOdaiSong.SongNo, difficulty)</MudText>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@ -163,7 +163,7 @@
|
|||||||
</MudStack>
|
</MudStack>
|
||||||
<MudStack Spacing="1">
|
<MudStack Spacing="1">
|
||||||
<MudText Typo="Typo.subtitle2" Style="font-weight:bold">Conditions</MudText>
|
<MudText Typo="Typo.subtitle2" Style="font-weight:bold">Conditions</MudText>
|
||||||
<MudStack Row="true" Justify="Justify.SpaceBetween">
|
<MudStack Row="true" Spacing="16">
|
||||||
<MudStack Spacing="0">
|
<MudStack Spacing="0">
|
||||||
<MudText Typo="Typo.caption">Red</MudText>
|
<MudText Typo="Typo.caption">Red</MudText>
|
||||||
<MudText Typo="Typo.body1" Style="font-weight: bold">> @redRequirement%</MudText>
|
<MudText Typo="Typo.body1" Style="font-weight: bold">> @redRequirement%</MudText>
|
||||||
@ -290,7 +290,7 @@
|
|||||||
{
|
{
|
||||||
var songNumber = k;
|
var songNumber = k;
|
||||||
var redRequirement = GetSongBorderCondition(border, songNumber, false);
|
var redRequirement = GetSongBorderCondition(border, songNumber, false);
|
||||||
var goldRequirement = GetSongBorderCondition(border, songNumber, false);
|
var goldRequirement = GetSongBorderCondition(border, songNumber, true);
|
||||||
var barClass = "bar-default";
|
var barClass = "bar-default";
|
||||||
var resultText = "Failed";
|
var resultText = "Failed";
|
||||||
|
|
||||||
|
@ -156,17 +156,22 @@ public partial class DaniDojo
|
|||||||
private string GetDanResultIcon(uint danId)
|
private string GetDanResultIcon(uint danId)
|
||||||
{
|
{
|
||||||
var icon = "";
|
var icon = "";
|
||||||
|
var notClearIcon = "<image href='/images/dani_NotClear.png' width='24' height='24' style='filter: contrast(0.65)'/>";
|
||||||
|
|
||||||
if (!bestDataMap.ContainsKey(danId))
|
if (!bestDataMap.ContainsKey(danId))
|
||||||
{
|
{
|
||||||
return "<image href='/images/dani_NotClear.png' width='24' height='24' style='filter: contrast(0.65)'/>";
|
return notClearIcon;
|
||||||
}
|
}
|
||||||
|
|
||||||
var state = bestDataMap[danId].ClearState;
|
var state = bestDataMap[danId].ClearState;
|
||||||
|
|
||||||
if (state is not DanClearState.NotClear)
|
if (state is DanClearState.NotClear)
|
||||||
{
|
{
|
||||||
icon = $"<image href='/images/dani_{state}.png' width='24' height='24'/>";
|
icon = notClearIcon;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
icon = $"<image href='/images/dani_{state}.png' width='24' height='24' />";
|
||||||
}
|
}
|
||||||
|
|
||||||
return icon;
|
return icon;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user