mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
GUI: added card hints in choice dialogs (additional to d587cc9151);
This commit is contained in:
parent
ef010bc2f3
commit
5725e15771
5 changed files with 10 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.choices.Choice;
|
||||
import mage.choices.ChoiceHintType;
|
||||
import mage.choices.ChoiceImpl;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
|
|
@ -56,7 +57,7 @@ public class ChooseACardNameEffect extends OneShotEffect {
|
|||
if (player == null) {
|
||||
return null;
|
||||
}
|
||||
Choice cardChoice = new ChoiceImpl(true);
|
||||
Choice cardChoice = new ChoiceImpl(true, ChoiceHintType.CARD);
|
||||
cardChoice.setChoices(this.getNames());
|
||||
cardChoice.setMessage(CardUtil.getTextWithFirstCharUpperCase(this.getMessage()));
|
||||
cardChoice.clearChoice();
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.Mode;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.choices.Choice;
|
||||
import mage.choices.ChoiceHintType;
|
||||
import mage.choices.ChoiceImpl;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.predicate.Predicate;
|
||||
|
|
@ -93,7 +94,7 @@ public abstract class StackObjectImpl implements StackObject {
|
|||
if (choice != null) {
|
||||
return;
|
||||
}
|
||||
choice = new ChoiceImpl(false);
|
||||
choice = new ChoiceImpl(false, ChoiceHintType.CARD);
|
||||
choice.setMessage("Choose the order of copies to go on the stack");
|
||||
choice.setSubMessage("Press cancel to put the rest in any order");
|
||||
choice.setChoices(new HashSet<>(predicateMap.keySet()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue