mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-29 23:40:27 +00:00
03182ebd3d
Adds support for Scarlet & Violet. Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com> Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com> Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
41 lines
1 KiB
C#
41 lines
1 KiB
C#
using PKHeX.Core;
|
|
using static PKHeX.Drawing.PokeSprite.SpriteBuilderMode;
|
|
using static PKHeX.Drawing.PokeSprite.SpriteBuilderPreference;
|
|
|
|
namespace PKHeX.Drawing.PokeSprite;
|
|
|
|
public enum SpriteBuilderMode
|
|
{
|
|
KeepCurrent,
|
|
SpritesClassic5668,
|
|
CircleMugshot5668,
|
|
SpritesArtwork5668,
|
|
}
|
|
|
|
public enum SpriteBuilderPreference
|
|
{
|
|
UseSuggested,
|
|
DoNotChange,
|
|
ForceSprites,
|
|
ForceMugshots,
|
|
ForceArtwork,
|
|
}
|
|
|
|
public static class SpriteBuilderUtil
|
|
{
|
|
public static SpriteBuilderPreference SpriterPreference { get; set; } = UseSuggested;
|
|
|
|
public static SpriteBuilderMode GetSuggestedMode(SaveFile sav) => SpriterPreference switch
|
|
{
|
|
ForceMugshots => CircleMugshot5668,
|
|
ForceSprites => SpritesClassic5668,
|
|
ForceArtwork => SpritesArtwork5668,
|
|
DoNotChange => KeepCurrent,
|
|
_ => sav switch // Default, suggest.
|
|
{
|
|
SAV8LA => CircleMugshot5668,
|
|
SAV9SV => SpritesArtwork5668,
|
|
_ => SpritesClassic5668,
|
|
},
|
|
};
|
|
}
|