Skip to content

Commit

Permalink
Add Gen IV map coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 26, 2024
1 parent b2eee04 commit 5b7f4cd
Showing 1 changed file with 58 additions and 30 deletions.
88 changes: 58 additions & 30 deletions Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,36 @@
</div>
}

<div class="form-field">
<MudNumericField Label="Hours"
T="@int"
Variant="@Variant.Outlined"
Min="0"
Max="@ushort.MaxValue"
@bind-Value="@saveFile.PlayedHours"
For="@(() => saveFile.PlayedHours)" />
</div>

<div class="form-field">
<MudNumericField Label="Minutes"
T="@int"
Variant="@Variant.Outlined"
Min="0"
Max="59"
@bind-Value="@saveFile.PlayedMinutes"
For="@(() => saveFile.PlayedMinutes)" />
</div>

<div class="form-field">
<MudNumericField Label="Seconds"
T="@int"
Variant="@Variant.Outlined"
Min="0"
Max="59"
@bind-Value="@saveFile.PlayedSeconds"
For="@(() => saveFile.PlayedSeconds)" />
</div>

@if (saveGeneration >= 4)
{
<div class="form-field">
Expand Down Expand Up @@ -206,36 +236,6 @@
</div>
}

<div class="form-field">
<MudNumericField Label="Hours"
T="@int"
Variant="@Variant.Outlined"
Min="0"
Max="@ushort.MaxValue"
@bind-Value="@saveFile.PlayedHours"
For="@(() => saveFile.PlayedHours)" />
</div>

<div class="form-field">
<MudNumericField Label="Minutes"
T="@int"
Variant="@Variant.Outlined"
Min="0"
Max="59"
@bind-Value="@saveFile.PlayedMinutes"
For="@(() => saveFile.PlayedMinutes)" />
</div>

<div class="form-field">
<MudNumericField Label="Seconds"
T="@int"
Variant="@Variant.Outlined"
Min="0"
Max="59"
@bind-Value="@saveFile.PlayedSeconds"
For="@(() => saveFile.PlayedSeconds)" />
</div>

@if (saveFile is SAV3FRLG sav3FrLgTrainerCard)
{
@for (int i = 0; i < 6; i++)
Expand All @@ -253,6 +253,34 @@
}
}

@if (saveFile is SAV4 sav4Map)
{
<div class="form-field">
<MudNumericField Label="Current Map"
Variant="@Variant.Outlined"
@bind-Value="@sav4Map.M"
For="@(() => sav4Map.M)" />
</div>
<div class="form-field">
<MudNumericField Label="X"
Variant="@Variant.Outlined"
@bind-Value="@sav4Map.X"
For="@(() => sav4Map.X)" />
</div>
<div class="form-field">
<MudNumericField Label="Z"
Variant="@Variant.Outlined"
@bind-Value="@sav4Map.Z"
For="@(() => sav4Map.Z)" />
</div>
<div class="form-field">
<MudNumericField Label="Y"
Variant="@Variant.Outlined"
@bind-Value="@sav4Map.Y"
For="@(() => sav4Map.Y)" />
</div>
}

@if (saveFile is SAV1 sav1Options)
{
<div class="form-field">
Expand Down

0 comments on commit 5b7f4cd

Please sign in to comment.