mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
Draw all move items if hax
https://projectpokemon.org/home/forums/topic/47534-move-selection-broken-in-illegal-mode/
This commit is contained in:
parent
87b270dd17
commit
0de49c915a
1 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ namespace PKHeX.WinForms.Controls
|
|||
LegalityChanged?.Invoke(Legality.Valid, null);
|
||||
}
|
||||
|
||||
private List<ComboItem> MoveDataAllowed = new List<ComboItem>();
|
||||
private IReadOnlyList<ComboItem> MoveDataAllowed = new List<ComboItem>();
|
||||
|
||||
private void ReloadMoves(IReadOnlyCollection<int> moves)
|
||||
{
|
||||
|
@ -1820,7 +1820,7 @@ namespace PKHeX.WinForms.Controls
|
|||
CB_GameOrigin.DataSource = new BindingSource(GameInfo.VersionDataSource.Where(g => gamelist.Contains((GameVersion)g.Value)).ToList(), null);
|
||||
|
||||
// Set the Move ComboBoxes too..
|
||||
GameInfo.Strings.MoveDataSource = (HaX ? GameInfo.HaXMoveDataSource : GameInfo.LegalMoveDataSource).Where(m => m.Value <= SAV.MaxMoveID).ToList(); // Filter Z-Moves if appropriate
|
||||
MoveDataAllowed = GameInfo.Strings.MoveDataSource = (HaX ? GameInfo.HaXMoveDataSource : GameInfo.LegalMoveDataSource).Where(m => m.Value <= SAV.MaxMoveID).ToList(); // Filter Z-Moves if appropriate
|
||||
foreach (var cb in Moves.Concat(Relearn))
|
||||
{
|
||||
cb.InitializeBinding();
|
||||
|
|
Loading…
Reference in a new issue