mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 09:15:12 -05:00
Update default box display, alpha sprites
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,8 @@ public static string GetWallpaperResourceName(GameVersion version, int index)
|
||||
5 => B2W2.Contains(version) && index > 16 ? "b2w2" : "bw",
|
||||
6 => ORAS.Contains(version) && index > 16 ? "ao" : "xy",
|
||||
7 when !GG.Contains(version) => "xy",
|
||||
8 => BDSP.Contains(version) ? "bdsp" : "swsh",
|
||||
8 when !SWSH.Contains(version) => "bdsp",
|
||||
8 => "swsh",
|
||||
_ => string.Empty,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,6 +54,11 @@ private static Image GetSprite(PKM pk, bool isBoxBGRed = false)
|
||||
var gm = Resources.dyna;
|
||||
return ImageUtil.LayerImage(img, gm, (img.Width - gm.Width) / 2, 0);
|
||||
}
|
||||
if (pk is IAlpha {IsAlpha: true})
|
||||
{
|
||||
var alpha = Resources.alpha;
|
||||
return ImageUtil.LayerImage(img, alpha, SlotTeamShiftX, 0);
|
||||
}
|
||||
return img;
|
||||
}
|
||||
|
||||
@@ -185,6 +190,11 @@ public static Image Sprite(this IEncounterTemplate enc)
|
||||
var gm = Resources.dyna;
|
||||
img = ImageUtil.LayerImage(img, gm, (img.Width - gm.Width) / 2, 0);
|
||||
}
|
||||
if (enc is IAlpha { IsAlpha: true })
|
||||
{
|
||||
var alpha = Resources.alpha;
|
||||
img = ImageUtil.LayerImage(img, alpha, SlotTeamShiftX, 0);
|
||||
}
|
||||
if (SpriteBuilder.ShowEncounterColor != SpriteBackgroundType.None)
|
||||
img = ApplyEncounterColor(enc, img, SpriteBuilder.ShowEncounterColor);
|
||||
return img;
|
||||
|
||||
Reference in New Issue
Block a user