mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-13 23:50:25 -05:00
16 lines
435 B
C#
16 lines
435 B
C#
using System.Drawing;
|
|
using PKHeX.Core;
|
|
using PKHeX.Drawing.Misc.Properties;
|
|
|
|
namespace PKHeX.Drawing.Misc;
|
|
|
|
public static class TypeSpriteUtil
|
|
{
|
|
public static Image? GetTypeSprite(int type, int generation = PKX.Generation)
|
|
{
|
|
if (generation <= 2)
|
|
type = (int)((MoveType)type).GetMoveTypeGeneration(generation);
|
|
return (Bitmap?)Resources.ResourceManager.GetObject($"type_icon_{type:00}");
|
|
}
|
|
}
|