221 lines
13 KiB
Plaintext
221 lines
13 KiB
Plaintext
@page "/Cards/{baid:int}/Profile"
|
|
@inject HttpClient Client
|
|
|
|
<MudBreadcrumbs Items="breadcrumbs" Class="px-0"></MudBreadcrumbs>
|
|
|
|
<h1>Profile</h1>
|
|
<MudText Typo="Typo.caption">Card: @Baid</MudText>
|
|
|
|
@if (response is not null)
|
|
{
|
|
<MudGrid Class="my-4 pb-10">
|
|
<MudItem xs="12" md="8">
|
|
<MudPaper Elevation="0" Outlined="true">
|
|
<MudTabs Rounded="true" Border="true" PanelClass="pa-8">
|
|
<MudTabPanel Text="Profile">
|
|
<MudStack Spacing="4">
|
|
<h2>Profile Options</h2>
|
|
|
|
<MudTextField @bind-Value="@response.MyDonName" Label="Name"></MudTextField>
|
|
|
|
<MudGrid>
|
|
<MudItem xs="12" md="8">
|
|
@if (EnterTextDirectly)
|
|
{
|
|
<MudTextField @bind-Value="@response.Title" Label ="Title"></MudTextField>
|
|
}
|
|
else
|
|
{
|
|
<MudAutocomplete @bind-Value="@response.Title" Label="Title" Dense="true" Clearable="true" Immediate="true" SearchFunc="@SearchForTitle" CoerceValue="true" MaxItems="@GameDataService.PLAYER_TITLE_MAX" />
|
|
}
|
|
<MudSwitch @bind-Checked="EnterTextDirectly" Color="Color.Primary" Class="mt-1">Enter Text Directly</MudSwitch>
|
|
</MudItem>
|
|
<MudItem xs="12" md="4">
|
|
<MudSelect @bind-Value="@response.TitlePlateId" Label="Title Plate">
|
|
@for (uint i = 0; i < 8; i++)
|
|
{
|
|
var index = i;
|
|
<MudSelectItem Value="@i">@titlePlateStrings[index]</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
</MudItem>
|
|
</MudGrid>
|
|
|
|
<MudSelect @bind-Value="@response.AchievementDisplayDifficulty"
|
|
Label="Achievement Panel Difficulty">
|
|
@foreach (var item in Enum.GetValues<Difficulty>())
|
|
{
|
|
<MudSelectItem Value="@item"/>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSwitch @bind-Checked="@response.IsDisplayAchievement" Label="Display Achievement Panel" Color="Color.Primary"/>
|
|
<MudSwitch @bind-Checked="@response.IsDisplayDanOnNamePlate" Label="Display Dan Rank on Name Plate" Color="Color.Primary"/>
|
|
</MudStack>
|
|
</MudTabPanel>
|
|
|
|
<MudTabPanel Text="Costume">
|
|
<MudStack Spacing="4">
|
|
<h2>Costume Options</h2>
|
|
<MudGrid>
|
|
<MudItem xs="12">
|
|
<MudStack Spacing="4" Class="mb-8">
|
|
<MudSelect @bind-Value="@response.Head" Label="Head">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_HEAD_MAX; i++)
|
|
{
|
|
var index = i;
|
|
var costumeTitle = GameDataService.headMap[index];
|
|
<MudSelectItem Value="@index">@index - @costumeTitle</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSelect @bind-Value="@response.Body" Label="Body">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_BODY_MAX; i++)
|
|
{
|
|
var index = i;
|
|
var costumeTitle = GameDataService.bodyMap[index];
|
|
<MudSelectItem Value="@index">@index - @costumeTitle</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSelect @bind-Value="@response.Face" Label="Face">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_FACE_MAX; i++)
|
|
{
|
|
var index = i;
|
|
var costumeTitle = GameDataService.faceMap[index];
|
|
<MudSelectItem Value="@index">@index - @costumeTitle</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSelect @bind-Value="@response.Kigurumi" Label="Kigurumi">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_KIGURUMI_MAX; i++)
|
|
{
|
|
var index = i;
|
|
var costumeTitle = GameDataService.kigurumiMap[index];
|
|
<MudSelectItem Value="@index">@index - @costumeTitle</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSelect @bind-Value="@response.Puchi" Label="Puchi">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_PUCHI_MAX; i++)
|
|
{
|
|
var index = i;
|
|
var costumeTitle = GameDataService.puchiMap[index];
|
|
<MudSelectItem Value="@index">@index - @costumeTitle</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
</MudStack>
|
|
|
|
<MudStack Row="true">
|
|
<MudSelect @bind-Value="@response.BodyColor" Label="Body Color">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_COLOR_MAX; i++)
|
|
{
|
|
var index = i;
|
|
<MudSelectItem Value="@index">
|
|
<div class="color-box" style=@($"background: {costumeColors[index]}")></div>
|
|
@index
|
|
</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
<MudSelect @bind-Value="@response.FaceColor" Label="Face Color">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_COLOR_MAX; i++)
|
|
{
|
|
var index = i;
|
|
<MudSelectItem Value="@index">
|
|
<div class="color-box" style=@($"background: {costumeColors[index]}")></div>
|
|
@index
|
|
</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
<MudSelect @bind-Value="@response.LimbColor" Label="Limb Color">
|
|
@for (uint i = 0; i < GameDataService.COSTUME_COLOR_MAX; i++)
|
|
{
|
|
var index = i;
|
|
<MudSelectItem Value="@index">
|
|
<div class="color-box" style=@($"background: {costumeColors[index]}")></div>
|
|
@index
|
|
</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
</MudStack>
|
|
</MudItem>
|
|
</MudGrid>
|
|
</MudStack>
|
|
</MudTabPanel>
|
|
|
|
<MudTabPanel Text="Song Options">
|
|
<MudStack Spacing="4">
|
|
<h2>Song Options</h2>
|
|
<MudGrid>
|
|
<MudItem xs="12" md="4">
|
|
<MudStack Spacing="4">
|
|
<MudSwitch @bind-Checked="@response.PlaySetting.IsVanishOn" Label="Vanish" Color="Color.Primary"/>
|
|
<MudSwitch @bind-Checked="@response.PlaySetting.IsInverseOn" Label="Inverse" Color="Color.Primary"/>
|
|
<MudSwitch @bind-Checked="@response.IsSkipOn" Label="Give Up" Color="Color.Primary"/>
|
|
<MudSwitch @bind-Checked="@response.IsVoiceOn" Label="Voice" Color="Color.Primary"/>
|
|
</MudStack>
|
|
</MudItem>
|
|
<MudItem xs="12" md="8">
|
|
<MudStack Spacing="4">
|
|
<MudSelect @bind-Value="@response.PlaySetting.Speed" Label="Speed">
|
|
@for (uint i = 0; i < 15; i++)
|
|
{
|
|
var index = i;
|
|
<MudSelectItem Value="@i">@speedStrings[index]</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSelect @bind-Value="@response.PlaySetting.RandomType"
|
|
Label="Random">
|
|
@foreach (var item in Enum.GetValues<RandomType>())
|
|
{
|
|
<MudSelectItem Value="@item"/>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSelect @bind-Value="@response.ToneId" Label="Tone">
|
|
@for (uint i = 0; i < 19; i++)
|
|
{
|
|
var index = i;
|
|
<MudSelectItem Value="@i">@toneStrings[index]</MudSelectItem>
|
|
}
|
|
</MudSelect>
|
|
|
|
<MudSlider Class="mb-8" @bind-Value="@response.NotesPosition" Size="Size.Medium" Min="-5" Max="5" Step="1" TickMarks="true" TickMarkLabels="@notePositionStrings">
|
|
<MudText Typo="Typo.caption">Notes Position</MudText>
|
|
</MudSlider>
|
|
</MudStack>
|
|
</MudItem>
|
|
</MudGrid>
|
|
</MudStack>
|
|
</MudTabPanel>
|
|
</MudTabs>
|
|
</MudPaper>
|
|
</MudItem>
|
|
|
|
<MudItem md="4" xs="12" Class="py-4 px-8">
|
|
<MudStack Style="top:100px" Class="sticky">
|
|
<MudButton Disabled="@isSavingOptions"
|
|
OnClick="SaveOptions"
|
|
Variant="Variant.Filled"
|
|
Color="Color.Primary">
|
|
@if (isSavingOptions)
|
|
{
|
|
<MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true"/>
|
|
<MudText Class="ms-2">Saving...</MudText>
|
|
}
|
|
else
|
|
{
|
|
<MudIcon Icon="@Icons.Filled.Save" Class="mx-2"></MudIcon>
|
|
<MudText>Save</MudText>
|
|
}
|
|
</MudButton>
|
|
</MudStack>
|
|
|
|
</MudItem>
|
|
</MudGrid>
|
|
|
|
@code {
|
|
private bool EnterTextDirectly;
|
|
}
|
|
} |