mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
21 lines
625 B
C#
21 lines
625 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using System.Drawing;
|
|
using PKHeX.Core;
|
|
using PKHeX.Drawing.PokeSprite;
|
|
|
|
namespace PKHeX.WinForms;
|
|
|
|
/// <summary>
|
|
/// Bind-able summary object that can fetch sprite and strings that summarize a <see cref="PKM"/>.
|
|
/// </summary>
|
|
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
|
|
public sealed class EntitySummaryImage : EntitySummary
|
|
{
|
|
public Image Sprite => pk.Sprite();
|
|
public override string Position { get; }
|
|
|
|
public EntitySummaryImage(PKM p, GameStrings strings, string position) : base(p, strings)
|
|
{
|
|
Position = position;
|
|
}
|
|
}
|