diff --git a/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor b/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor index a78566ca..534a6944 100644 --- a/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor +++ b/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor @@ -75,6 +75,49 @@ } + @if (saveFile is SAV1 sav1Rival) + { +
+ +
+ +
+ +
+ } + + @if (saveFile is SAV2 sav2Rival) + { +
+ +
+ } + + @if (saveFile is SAV3FRLG sav3Rival) + { +
+ +
+ } +
} + if (saveFile is SAV3E sav3) + { +
+ +
+ +
+ +
+ } +
- @if (saveFile is SAV1 sav1) + @if (saveFile is SAV1 sav1Options) {
+ @bind-Value="@sav1Options.BattleStyleSwitch" + For="@(() => sav1Options.BattleStyleSwitch)"> Switch @@ -151,8 +217,8 @@
+ @bind-Value="@sav1Options.TextSpeed" + For="@(() => sav1Options.TextSpeed)"> 0 (Instant) @@ -190,8 +256,8 @@
+ @bind-Value="@sav1Options.BattleEffects" + For="@(() => sav1Options.BattleEffects)" />
} diff --git a/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor.cs b/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor.cs index 2026d14c..d9c8e5a0 100644 --- a/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor.cs +++ b/Pkmds.Web/Components/MainTabPages/TrainerInfoTab.razor.cs @@ -50,4 +50,7 @@ private void SetCoins(uint value) break; } } + + private Task> SearchPokemonNames(string searchString, CancellationToken token) => + Task.FromResult(AppService.SearchPokemonNames(searchString)); }