2023-02-21 15:45:51 +01:00
|
|
|
@page "/Cards/Option/{cardId:long}"
|
|
|
|
@using Domain.Enums
|
|
|
|
|
|
|
|
|
|
|
|
<MudBreadcrumbs Items="breadcrumbs" Class="px-0"></MudBreadcrumbs>
|
|
|
|
|
|
|
|
<PageTitle>Option</PageTitle>
|
|
|
|
<h1>Play Options</h1>
|
2023-02-21 19:55:32 +01:00
|
|
|
|
|
|
|
@if (errorMessage is not null)
|
2023-02-21 15:45:51 +01:00
|
|
|
{
|
2023-02-21 19:55:32 +01:00
|
|
|
<MudText Color="Color.Error" Typo="Typo.h3">@errorMessage</MudText>
|
2023-02-21 15:45:51 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-02-21 19:55:32 +01:00
|
|
|
@if (playOptionData is null)
|
2023-02-21 15:45:51 +01:00
|
|
|
{
|
2023-02-21 19:55:32 +01:00
|
|
|
<MudStack>
|
|
|
|
<MudSkeleton Width="100%"/>
|
|
|
|
<MudSkeleton Width="100%"/>
|
|
|
|
<MudSkeleton Width="100%"/>
|
|
|
|
<MudSkeleton Width="100%"/>
|
|
|
|
<MudSkeleton Width="100%"/>
|
|
|
|
<MudSkeleton Width="100%"/>
|
|
|
|
</MudStack>
|
2023-02-21 15:45:51 +01:00
|
|
|
return;
|
|
|
|
}
|
2023-02-21 19:55:32 +01:00
|
|
|
|
2023-02-21 15:45:51 +01:00
|
|
|
<MudStack>
|
|
|
|
<MudStack Row="true">
|
|
|
|
<MudField Label="Avatar">@GetAvatarName((uint)playOptionData.OptionPart1.AvatarId)</MudField>
|
2023-02-21 19:55:32 +01:00
|
|
|
<MudButton Variant="Variant.Text" OnClick="OpenChangeAvatarDialog">Change Avatar</MudButton>
|
2023-02-21 15:45:51 +01:00
|
|
|
</MudStack>
|
|
|
|
|
|
|
|
<MudStack Row="true">
|
|
|
|
<MudField Label="Title">@GetTitleName((uint)playOptionData.OptionPart1.TitleId)</MudField>
|
2023-02-21 19:55:32 +01:00
|
|
|
<MudButton Variant="Variant.Text" OnClick="OpenChangeTitleDialog">Change Title</MudButton>
|
2023-02-21 15:45:51 +01:00
|
|
|
</MudStack>
|
|
|
|
|
|
|
|
<MudStack Row="true">
|
|
|
|
<MudField Label="Navigator">@GetNavigatorName((uint)playOptionData.OptionPart2.NavigatorId)</MudField>
|
2023-02-21 19:55:32 +01:00
|
|
|
<MudButton Variant="Variant.Text" OnClick="OpenChangeNavigatorDialog">Change Navigator</MudButton>
|
2023-02-21 15:45:51 +01:00
|
|
|
</MudStack>
|
|
|
|
|
|
|
|
|
|
|
|
<MudSelect T="ShowFastSlowOption" Label="Fast/Slow option" Variant="Variant.Outlined"
|
|
|
|
@bind-Value="@playOptionData.OptionPart1.ShowFastSlowOption">
|
|
|
|
@foreach (var item in ShowFastSlowOptionExtensions.GetValues())
|
|
|
|
{
|
|
|
|
<MudSelectItem Value="item">@item.ToStringFast()</MudSelectItem>
|
|
|
|
}
|
|
|
|
</MudSelect>
|
|
|
|
|
|
|
|
<MudSelect T="ShowFeverTranceOption" Label="Fever/Trance option" Variant="Variant.Outlined"
|
|
|
|
@bind-Value="@playOptionData.OptionPart1.ShowFeverTranceOption">
|
|
|
|
@foreach (var item in ShowFeverTranceOptionExtensions.GetValues())
|
|
|
|
{
|
|
|
|
<MudSelectItem Value="item">@item.ToStringFast()</MudSelectItem>
|
|
|
|
}
|
|
|
|
</MudSelect>
|
|
|
|
|
2023-02-21 19:55:32 +01:00
|
|
|
<MudButton Color="Color.Info" Variant="Variant.Filled" OnClick="SaveOptions">
|
|
|
|
@if (isSaving)
|
|
|
|
{
|
|
|
|
<MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true"/>
|
|
|
|
<MudText Class="ms-2">Saving...</MudText>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<MudIcon Icon="@Icons.Material.Filled.Save"></MudIcon>
|
|
|
|
<MudText>Save</MudText>
|
|
|
|
}
|
|
|
|
</MudButton>
|
|
|
|
<MudButton Color="Color.Default" Variant="Variant.Filled" OnClick="UnlockMusics">
|
|
|
|
<MudIcon Icon="@Icons.Material.Filled.LockOpen"></MudIcon>
|
|
|
|
<MudText>Unlock All Musics</MudText>
|
|
|
|
</MudButton>
|
2023-02-21 15:45:51 +01:00
|
|
|
</MudStack>
|