* UI: choose ability to play improves (see 8add25fa12)

This commit is contained in:
Oleg Agafonov 2020-01-18 08:02:31 +04:00
parent 8add25fa12
commit ce60a9d75b
4 changed files with 26 additions and 8 deletions

View file

@ -494,6 +494,14 @@ public class AbilityPicker extends JXPanel implements MouseWheelListener {
break;
}
}
// old cancel style (just close dialog)
for (Object obj : choices) {
AbilityPickerAction action = (AbilityPickerAction) obj;
if (action.id == null) {
cancel();
}
}
}
private void tryChoiceOption(int choiceNumber) {