PKHeX/PKHeX.Core/Editing/Program/Settings/EncounterDatabaseSettings.cs
Kurt b8478a4488 Minor tweaks
Fix localization dump
LocalizedDescription duplicate property names: not per-class, so update the internal label to be more general.
2026-05-23 10:35:35 -05:00

29 lines
1.2 KiB
C#

using System;
namespace PKHeX.Core;
public sealed class EncounterDatabaseSettings
{
private const int ResultsGridRowCountMin = 5;
private const int ResultsGridRowCountMax = 20;
[LocalizedDescription("Skips searching if the user forgot to enter Species / Move(s) into the search criteria.")]
public bool ReturnNoneIfEmptySearch { get; set; } = true;
[LocalizedDescription("Hides unavailable Species if the currently loaded save file cannot import them.")]
public bool FilterUnavailableSpecies { get; set; } = true;
[LocalizedDescription("Use properties from the PKM Editor tabs to specify criteria like Gender and Nature when generating an encounter.")]
public bool UseTabsAsCriteria { get; set; } = true;
[LocalizedDescription("Use properties from the PKM Editor tabs even if the new encounter isn't the same evolution chain.")]
public bool UseTabsAsCriteriaAnySpecies { get; set; } = true;
[LocalizedDescription("Visible row count for the sprite grid. Clamped from 5 to 20.")]
public int ResultsGridRowCount
{
get;
set => field = Math.Clamp(value, ResultsGridRowCountMin, ResultsGridRowCountMax);
} = 9;
}