mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-03 21:00:50 -05:00
Fix localization dump LocalizedDescription duplicate property names: not per-class, so update the internal label to be more general.
20 lines
612 B
C#
20 lines
612 B
C#
using System;
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
public sealed class MysteryGiftDatabaseSettings
|
|
{
|
|
private const int ResultsGridRowCountMin = 5;
|
|
private const int ResultsGridRowCountMax = 20;
|
|
|
|
[LocalizedDescription("Hides gifts if the currently loaded save file cannot (indirectly) receive them.")]
|
|
public bool FilterUnavailableSpecies { 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;
|
|
}
|