Crop BDSP Box Wallpapers, re-tile Grass, and fix off-by-one
|
@ -132,14 +132,14 @@ namespace PKHeX.Core
|
|||
{
|
||||
if ((uint)box > BoxCount)
|
||||
return 0;
|
||||
return Data[GetBoxWallpaperOffset(box)];
|
||||
return Data[GetBoxWallpaperOffset(box)] - 1;
|
||||
}
|
||||
|
||||
public void SetBoxWallpaper(int box, int value)
|
||||
{
|
||||
if ((uint)box > BoxCount)
|
||||
return;
|
||||
Data[GetBoxWallpaperOffset(box)] = (byte)value;
|
||||
Data[GetBoxWallpaperOffset(box)] = (byte)(value + 1);
|
||||
}
|
||||
|
||||
public ushort StatusPut
|
||||
|
|
|
@ -29,8 +29,7 @@ namespace PKHeX.Drawing
|
|||
5 => B2W2.Contains(version) && index > 16 ? "b2w2" : "bw",
|
||||
6 => ORAS.Contains(version) && index > 16 ? "ao" : "xy",
|
||||
7 when !GG.Contains(version) => "xy",
|
||||
8 when BDSP.Contains(version) => "bdsp",
|
||||
8 => "swsh",
|
||||
8 => BDSP.Contains(version) ? "bdsp" : "swsh",
|
||||
_ => string.Empty,
|
||||
};
|
||||
|
||||
|
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 378 KiB After Width: | Height: | Size: 351 KiB |
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 232 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 485 KiB After Width: | Height: | Size: 489 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 110 KiB |
Before Width: | Height: | Size: 163 KiB After Width: | Height: | Size: 176 KiB |
Before Width: | Height: | Size: 318 KiB After Width: | Height: | Size: 302 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 65 KiB |
|
@ -46,11 +46,14 @@ namespace PKHeX.WinForms
|
|||
CB_BG.Items.AddRange(GameInfo.Strings.wallpapernames.Slice(0, 16));
|
||||
return true;
|
||||
case 4 or 5 or 6:
|
||||
CB_BG.Items.AddRange(GameInfo.Strings.wallpapernames);
|
||||
CB_BG.Items.AddRange(GameInfo.Strings.wallpapernames.Slice(0, 24));
|
||||
return true;
|
||||
case 7:
|
||||
CB_BG.Items.AddRange(GameInfo.Strings.wallpapernames.Slice(0, 16));
|
||||
return true;
|
||||
case 8 when SAV is SAV8BS:
|
||||
CB_BG.Items.AddRange(GameInfo.Strings.wallpapernames);
|
||||
return true;
|
||||
case 8:
|
||||
CB_BG.Items.AddRange(Enumerable.Range(1, 19).Select(z => $"Wallpaper {z}").ToArray());
|
||||
return true;
|
||||
|
|