Add big unknown held item sprite

Co-Authored-By: Matt <sora10pls@users.noreply.github.com>
This commit is contained in:
Kurt 2020-04-16 15:14:36 -07:00
parent e9f0552152
commit 46b8e6427a
4 changed files with 17 additions and 1 deletions

View file

@ -50930,6 +50930,16 @@ namespace PKHeX.Drawing.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap bitem_unk {
get {
object obj = ResourceManager.GetObject("bitem_unk", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -18088,6 +18088,9 @@
<data name="b_9_1s" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Big Shiny Sprites\b_9-1s.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bitem_unk" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\Big Items\bitem_unk.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="box_wp01swsh" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\box\swsh\box_wp01swsh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

View file

@ -23,6 +23,7 @@ namespace PKHeX.Drawing
public abstract Bitmap Delete { get; }
public abstract Bitmap Transparent { get; }
public abstract Bitmap Drag { get; }
public abstract Bitmap UnknownItem { get; }
private const double UnknownFormTransparency = 0.5;
private const double ShinyTransparency = 0.7;
@ -121,7 +122,7 @@ namespace PKHeX.Drawing
private Image LayerOverImageItem(Image baseImage, int item, int generation)
{
Image itemimg = (Image?)Resources.ResourceManager.GetObject(GetItemResourceName(item)) ?? Resources.helditem;
Image itemimg = (Image?)Resources.ResourceManager.GetObject(GetItemResourceName(item)) ?? UnknownItem;
if (2 <= generation && generation <= 4 && 328 <= item && item <= 419) // gen2/3/4 TM
itemimg = Resources.item_tm;
else if (generation >= 8 && (1130 <= item && item <= 1229)) // Gen8 TR
@ -187,6 +188,7 @@ namespace PKHeX.Drawing
public override Bitmap Delete => Resources.slotDel;
public override Bitmap Transparent => Resources.slotTrans;
public override Bitmap Drag => Resources.slotDrag;
public override Bitmap UnknownItem => Resources.helditem;
}
/// <summary>
@ -215,5 +217,6 @@ namespace PKHeX.Drawing
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;
}
}