mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
Fix stad1 missing team types
off by 1 (8=>9, and EN has unused interstitial teams). Fix last-viewed-slot indication color tracking
This commit is contained in:
parent
7efaa5ab71
commit
262561d5d1
2 changed files with 4 additions and 4 deletions
|
@ -135,8 +135,8 @@ namespace PKHeX.Core
|
|||
|
||||
private const int TeamCountU = 10;
|
||||
private const int TeamCountJ = 12;
|
||||
private const int TeamCountTypeU = 6;
|
||||
private const int TeamCountTypeJ = 8;
|
||||
private const int TeamCountTypeU = 9; // team-types 1 & 2 are unused
|
||||
private const int TeamCountTypeJ = 9;
|
||||
private int TeamCount => Japanese ? TeamCountJ * TeamCountTypeJ : TeamCountU * TeamCountTypeU;
|
||||
private int TeamSize => Japanese ? TeamSizeJ : TeamSizeU;
|
||||
private const int TeamSizeJ = 0x0C + (SIZE_PK1J * 6) + ListFooterSize; // 0x120
|
||||
|
|
|
@ -116,8 +116,8 @@ namespace PKHeX.WinForms
|
|||
for (int i = 0; i < group.Slots.Length; i++)
|
||||
Box.Entries[i].Image = group.Slots[i].Sprite(sav, -1, -1, true);
|
||||
|
||||
if (groupSelected == index && slotSelected != -1 && (uint)slotSelected < Box.Entries.Count)
|
||||
Box.Entries[slotSelected].BackgroundImage = null;
|
||||
if (slotSelected != -1 && (uint)slotSelected < Box.Entries.Count)
|
||||
Box.Entries[slotSelected].BackgroundImage = groupSelected != index ? null : SpriteUtil.Spriter.View;
|
||||
|
||||
CurrentGroup = index;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue