update lists

This commit is contained in:
haven1433
2022-11-24 15:38:08 -06:00
parent 4c2089196b
commit 38ca0d3c3c
2 changed files with 20 additions and 5 deletions

View File

@@ -1931,11 +1931,12 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
private static readonly ObservableCollection<string> weatherOptions = new();
private static readonly ObservableCollection<string> caveOptions = new();
private static readonly ObservableCollection<string> battleOptions = new();
static MapHeaderViewModel() {
// weather
weatherOptions.Add("None");
weatherOptions.Add("Indoor");
weatherOptions.Add("Sunny Clouds");
weatherOptions.Add("Sunny");
weatherOptions.Add("Outdoor");
weatherOptions.Add("Rain");
weatherOptions.Add("Snow");
weatherOptions.Add("Thunderstorm");
@@ -1958,13 +1959,27 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
// cave
caveOptions.Add("Normal");
caveOptions.Add("Flash");
caveOptions.Add("Flash Usable");
caveOptions.Add("Flash Not Usable");
// battle
battleOptions.Add("Normal");
battleOptions.Add("Gym");
battleOptions.Add("Evil Team");
battleOptions.Add("Unknown");
battleOptions.Add("Elite 1");
battleOptions.Add("Elite 2");
battleOptions.Add("Elite 3");
battleOptions.Add("Elite 4");
battleOptions.Add("Big Red Pokeball");
}
public ObservableCollection<string> WeatherOptions => weatherOptions;
public ObservableCollection<string> CaveOptions => caveOptions;
public ObservableCollection<string> BattleOptions => battleOptions;
public MapHeaderViewModel(ModelArrayElement element, Func<ModelDelta> tokens) {
(map, tokenFactory) = (element, tokens);
if (element == null) return;

View File

@@ -804,8 +804,8 @@
<CheckBox Grid.Row="5" Grid.Column="0" Content="Allow Biking" IsChecked="{Binding AllowBiking}" Margin="4,2" Visibility="{Binding ShowAllowBikingField, Converter={StaticResource BoolToVisibility}}" />
<CheckBox Grid.Row="5" Grid.Column="1" Content="Allow Escaping" IsChecked="{Binding AllowEscaping}" Margin="4,2" />
<local:AngleBorder Grid.Row="6" Content="BattleType:" />
<local:AngleTextBox Grid.Row="6" TextBinding="{Binding BattleType, UpdateSourceTrigger=PropertyChanged}" />
<local:AngleBorder Grid.Row="6" Content="BattleType:" Direction="Left" />
<local:AngleComboBox Grid.Row="6" Grid.Column="1" Direction="Out" Margin="0,2,4,2" SelectedIndex="{Binding BattleType}" ItemsSource="{Binding BattleOptions}" />
<local:AngleBorder Grid.Row="7" Content="FloorNum:" Visibility="{Binding ShowFloorNumField, Converter={StaticResource BoolToVisibility}}" />
<local:AngleTextBox Grid.Row="7" TextBinding="{Binding FloorNum, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding ShowFloorNumField, Converter={StaticResource BoolToVisibility}}" />