2022-08-27 06:43:36 +00:00
|
|
|
using System.Drawing;
|
2021-11-27 23:48:08 +00:00
|
|
|
using PKHeX.Core;
|
|
|
|
using PKHeX.Drawing.PokeSprite.Properties;
|
|
|
|
|
2021-12-10 08:15:04 +00:00
|
|
|
namespace PKHeX.Drawing.PokeSprite;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 56 high, 68 wide sprite builder
|
|
|
|
/// </summary>
|
2022-02-05 22:54:01 +00:00
|
|
|
public sealed class SpriteBuilder5668s : SpriteBuilder
|
2021-11-27 23:48:08 +00:00
|
|
|
{
|
2021-12-10 08:15:04 +00:00
|
|
|
public override int Height => 56;
|
|
|
|
public override int Width => 68;
|
2021-11-27 23:48:08 +00:00
|
|
|
|
2021-12-10 08:15:04 +00:00
|
|
|
protected override int ItemShiftX => 2;
|
|
|
|
protected override int ItemShiftY => 2;
|
|
|
|
protected override int ItemMaxSize => 32;
|
|
|
|
protected override int EggItemShiftX => 18;
|
|
|
|
protected override int EggItemShiftY => 1;
|
2022-02-05 22:54:01 +00:00
|
|
|
public override bool HasFallbackMethod => true;
|
2021-11-27 23:48:08 +00:00
|
|
|
|
2022-08-27 06:43:36 +00:00
|
|
|
protected override string GetSpriteStringSpeciesOnly(ushort species) => 'b' + $"_{species}";
|
2024-02-23 03:20:54 +00:00
|
|
|
protected override string GetSpriteAll(ushort species, byte form, byte gender, uint formarg, bool shiny, EntityContext context) => 'b' + SpriteName.GetResourceStringSprite(species, form, gender, formarg, context, shiny);
|
|
|
|
protected override string GetSpriteAllSecondary(ushort species, byte form, byte gender, uint formarg, bool shiny, EntityContext context) => 'c' + SpriteName.GetResourceStringSprite(species, form, gender, formarg, context, shiny);
|
2021-12-10 08:15:04 +00:00
|
|
|
protected override string GetItemResourceName(int item) => 'b' + $"item_{item}";
|
|
|
|
protected override Bitmap Unknown => Resources.b_unknown;
|
2022-08-27 06:43:36 +00:00
|
|
|
protected override Bitmap GetEggSprite(ushort species) => species == (int)Species.Manaphy ? Resources.b_490_e : Resources.b_egg;
|
2021-11-27 23:48:08 +00:00
|
|
|
|
2021-12-10 08:15:04 +00:00
|
|
|
public override Bitmap Hover => Resources.slotHover68;
|
|
|
|
public override Bitmap View => Resources.slotView68;
|
|
|
|
public override Bitmap Set => Resources.slotSet68;
|
|
|
|
public override Bitmap Delete => Resources.slotDel68;
|
|
|
|
public override Bitmap Transparent => Resources.slotTrans68;
|
|
|
|
public override Bitmap Drag => Resources.slotDrag68;
|
|
|
|
public override Bitmap UnknownItem => Resources.bitem_unk;
|
|
|
|
public override Bitmap None => Resources.b_0;
|
|
|
|
public override Bitmap ItemTM => Resources.bitem_tm;
|
|
|
|
public override Bitmap ItemTR => Resources.bitem_tr;
|
|
|
|
public override Bitmap ShadowLugia => Resources.b_249x;
|
2021-11-27 23:48:08 +00:00
|
|
|
}
|