mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-26 02:18:40 -05:00
Enhance setting suggested handling trainer via GUI
This commit is contained in:
@@ -417,15 +417,22 @@ private void SetDetailsOT(ITrainerInfo tr)
|
||||
|
||||
private void SetDetailsHT(ITrainerInfo tr)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(tr.OT))
|
||||
var trainer = tr.OT;
|
||||
if (trainer.Length == 0)
|
||||
return;
|
||||
|
||||
if (TB_HT.Text.Length > 0)
|
||||
if (!tr.IsOriginalHandler(Entity, false))
|
||||
{
|
||||
TB_HT.Text = trainer;
|
||||
UC_HTGender.Gender = tr.Gender & 1;
|
||||
if (Entity is IHandlerLanguage)
|
||||
CB_HTLanguage.SelectedValue = tr.Language;
|
||||
}
|
||||
else if (TB_HT.Text.Length != 0)
|
||||
{
|
||||
if (CB_HTLanguage.SelectedIndex == 0 && Entity is IHandlerLanguage)
|
||||
CB_HTLanguage.SelectedValue = tr.Language;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetForms()
|
||||
|
||||
Reference in New Issue
Block a user