2019-10-04 01:23:40 +00:00
|
|
|
|
using PKHeX.Core;
|
|
|
|
|
using static PKHeX.Core.GameVersion;
|
|
|
|
|
|
2021-11-27 23:48:08 +00:00
|
|
|
|
namespace PKHeX.Drawing.PokeSprite
|
2016-07-25 04:11:11 +00:00
|
|
|
|
{
|
2021-11-27 23:48:08 +00:00
|
|
|
|
internal static class BoxWallpaper
|
2016-07-25 04:11:11 +00:00
|
|
|
|
{
|
2019-02-10 04:05:32 +00:00
|
|
|
|
public static bool IsWallpaperRed(GameVersion version, int wallpaperID)
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
2019-02-10 04:05:32 +00:00
|
|
|
|
switch (version.GetGeneration())
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
|
|
|
|
case 3:
|
2019-02-10 04:05:32 +00:00
|
|
|
|
if (CXD.Contains(version))
|
|
|
|
|
return wallpaperID == 7; // flame pattern in XD
|
2019-10-04 01:23:40 +00:00
|
|
|
|
|
|
|
|
|
return wallpaperID switch
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
2019-10-04 01:23:40 +00:00
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
13 => E == version, // PokéCenter
|
|
|
|
|
_ => false,
|
|
|
|
|
};
|
2017-03-09 05:50:34 +00:00
|
|
|
|
case 4:
|
2019-10-04 01:23:40 +00:00
|
|
|
|
return wallpaperID switch
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
2019-10-04 01:23:40 +00:00
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
12 => true, // Checks
|
|
|
|
|
13 => true, // PokéCenter
|
|
|
|
|
22 => true, // Special
|
2021-08-20 20:49:20 +00:00
|
|
|
|
_ => false,
|
2019-10-04 01:23:40 +00:00
|
|
|
|
};
|
2017-03-09 05:50:34 +00:00
|
|
|
|
case 5:
|
2019-10-04 01:23:40 +00:00
|
|
|
|
return wallpaperID switch
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
2019-10-04 01:23:40 +00:00
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
12 => true, // Checks
|
|
|
|
|
19 => B2W2.Contains(version), // PWT
|
|
|
|
|
22 => B2W2.Contains(version), // Reshiram
|
|
|
|
|
21 => BW.Contains(version), // Zoroark
|
|
|
|
|
23 => BW.Contains(version), // Musical
|
2021-08-20 20:49:20 +00:00
|
|
|
|
_ => false,
|
2019-10-04 01:23:40 +00:00
|
|
|
|
};
|
2020-12-25 18:58:33 +00:00
|
|
|
|
case 6 or 7:
|
2019-10-04 01:23:40 +00:00
|
|
|
|
return wallpaperID switch
|
2017-03-09 05:50:34 +00:00
|
|
|
|
{
|
2019-10-04 01:23:40 +00:00
|
|
|
|
5 => true, // Volcano
|
|
|
|
|
12 => true, // PokéCenter
|
|
|
|
|
20 => true, // Special5 Flare/Magma
|
2021-08-20 20:49:20 +00:00
|
|
|
|
_ => false,
|
2019-10-04 01:23:40 +00:00
|
|
|
|
};
|
2021-11-20 02:23:49 +00:00
|
|
|
|
case 8 when BDSP.Contains(version):
|
|
|
|
|
return wallpaperID switch
|
|
|
|
|
{
|
|
|
|
|
6 => true, // Volcano
|
|
|
|
|
15 => true, // Checks
|
|
|
|
|
21 => true, // Trio
|
|
|
|
|
29 => true, // Nostalgic (Platinum)
|
|
|
|
|
30 => true, // Legend (Platinum)
|
|
|
|
|
_ => false,
|
|
|
|
|
};
|
2020-04-16 21:50:41 +00:00
|
|
|
|
case 8:
|
|
|
|
|
return wallpaperID switch
|
|
|
|
|
{
|
2020-04-16 22:07:04 +00:00
|
|
|
|
_ => true, // Bad contrast with lots of void space, better to just highlight the shiny red.
|
2020-04-16 21:50:41 +00:00
|
|
|
|
};
|
2019-02-10 04:05:32 +00:00
|
|
|
|
default:
|
|
|
|
|
return false;
|
2017-03-09 05:50:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-07-25 04:11:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|