mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-11 01:51:43 -05:00
Fix localization dump LocalizedDescription duplicate property names: not per-class, so update the internal label to be more general.
29 lines
1.2 KiB
C#
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;
|
|
}
|