mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
ea327a5c03
* Add sprite builder toggling for forced-circle sprites * Add assets for all LA Pokémon sprites Co-authored-by: sora10pls <17801814+sora10pls@users.noreply.github.com>
37 lines
900 B
C#
37 lines
900 B
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,
|
|
}
|
|
|
|
public enum SpriteBuilderPreference
|
|
{
|
|
UseSuggested,
|
|
DoNotChange,
|
|
ForceSprites,
|
|
ForceMugshots,
|
|
}
|
|
|
|
public static class SpriteBuilderUtil
|
|
{
|
|
public static SpriteBuilderPreference SpriterPreference { get; set; } = UseSuggested;
|
|
|
|
public static SpriteBuilderMode GetSuggestedMode(SaveFile sav) => SpriterPreference switch
|
|
{
|
|
ForceMugshots => CircleMugshot5668,
|
|
ForceSprites => SpritesClassic5668,
|
|
DoNotChange => KeepCurrent,
|
|
_ => sav switch // Default, suggest.
|
|
{
|
|
SAV8LA => CircleMugshot5668,
|
|
_ => SpritesClassic5668,
|
|
},
|
|
};
|
|
}
|