Skip to content

Commit

Permalink
Only Enable Map Selection For Saves With DLC Data (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
foohyfooh authored Oct 6, 2023
1 parent 000d239 commit f0851e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion TeraFinder.Plugins/Forms/EditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ public EditorForm(SAV9SV sav,
foreach (var name in UpdateRaidNameList())
cmbDens.Items.Add(name);
cmbMap.Items.Add($"{Strings["Plugin.MapPaldea"]} ({Strings["Plugin.Main"]})");
cmbMap.Items.Add($"{Strings["Plugin.MapKitakami"]} ({Strings["Plugin.DLC1"]})");
if (SAV.SaveRevision > 0)
cmbMap.Items.Add($"{Strings["Plugin.MapKitakami"]} ({Strings["Plugin.DLC1"]})");
cmbMap.SelectedIndex = 0;
cmbMap.Enabled = cmbMap.Items.Count > 1;
cmbDens.SelectedIndex = 0;
btnSx.Enabled = false;
Connection = connection;
Expand Down
4 changes: 3 additions & 1 deletion TeraFinder.Plugins/Forms/OutbreakForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ public OutbreakForm(SAV9SV sav, string language, ConnectionForm? connection)

cmbSpecies.Items.AddRange(SpeciesList);
cmbMap.Items.Add($"{Strings["Plugin.MapPaldea"]} ({Strings["Plugin.Main"]})");
cmbMap.Items.Add($"{Strings["Plugin.MapKitakami"]} ({Strings["Plugin.DLC1"]})");
if (SAV.SaveRevision > 0)
cmbMap.Items.Add($"{Strings["Plugin.MapKitakami"]} ({Strings["Plugin.DLC1"]})");
cmbMap.SelectedIndex = 0;
cmbMap.Enabled = cmbMap.Items.Count > 1;

Connection = connection;

Expand Down

0 comments on commit f0851e4

Please sign in to comment.