mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-04-26 10:44:07 -05:00
22 lines
504 B
C#
22 lines
504 B
C#
using System.Drawing;
|
|
using System.Runtime.CompilerServices;
|
|
using PKHeX.Core;
|
|
using PKHeX.Drawing.PokeSprite.Properties;
|
|
|
|
namespace PKHeX.WinForms.Controls;
|
|
|
|
public static class MoveDisplayState
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static Bitmap? GetMoveImage(bool isIllegal, PKM pk, int index)
|
|
{
|
|
if (isIllegal)
|
|
return Resources.warn;
|
|
|
|
if (MoveInfo.IsDummiedMove(pk, index))
|
|
return Resources.hint;
|
|
|
|
return null;
|
|
}
|
|
}
|