mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Merge branch 'patch' into 'master'
Some prompt tweaks See merge request core-developers/forge!5918
This commit is contained in:
@@ -1253,7 +1253,7 @@ lblChooseCreature=Choose a creature
|
||||
lblChosenCards=Chosen Cards
|
||||
lblAttacker=Attacker
|
||||
lblTriggeredby=Triggered by
|
||||
lblChooseWhichCardstoReveal=Choose Which Cards to Reveal
|
||||
lblChooseWhichCardstoReveal=Choose which card(s) to reveal
|
||||
lblChooseCardsActivateOpeningHandandOrder=Choose cards to activate from opening hand and their order
|
||||
lblActivateFirst=Activate first
|
||||
lblChooseOptionalCosts=Choose optional Costs
|
||||
@@ -1755,7 +1755,7 @@ lblFinalMatch=FINAL MATCH
|
||||
#DualListBox.java
|
||||
lblSelectOrder=Select Order
|
||||
#HumanPlay.java
|
||||
lblIfYouDo=if you do
|
||||
lblIfYouDo=If you do
|
||||
lblOr=or
|
||||
lblDoYouWantPay=Do you want to pay
|
||||
lblDoYouWantPayNLife=Do you want to pay {0} life?
|
||||
|
||||
@@ -243,10 +243,15 @@ public class HumanPlay {
|
||||
if (!parts.isEmpty()) {
|
||||
costPart = parts.get(0);
|
||||
}
|
||||
String orString = prompt == null ? sourceAbility.getStackDescription().trim() : "";
|
||||
String orString;
|
||||
if (sourceAbility.hasParam("OrString")) {
|
||||
orString = sourceAbility.getParam("OrString");
|
||||
} else {
|
||||
orString = prompt == null ? sourceAbility.getStackDescription().trim() : "";
|
||||
}
|
||||
if (!orString.isEmpty()) {
|
||||
if (sourceAbility.hasParam("UnlessSwitched")) {
|
||||
orString = TextUtil.concatWithSpace(" (" + Localizer.getInstance().getMessage("lblIfYouDo") + ":", orString, ")");
|
||||
a orString = TextUtil.concatWithSpace(" (" + Localizer.getInstance().getMessage("lblIfYouDo") + ":", orString + ")");
|
||||
} else {
|
||||
orString = TextUtil.concatWithSpace(" (" + Localizer.getInstance().getMessage("lblOr") + ":", orString, ")");
|
||||
}
|
||||
@@ -553,7 +558,8 @@ public class HumanPlay {
|
||||
if (list.size() < amount) { return false; } // unable to pay (not enough cards)
|
||||
|
||||
InputSelectCardsFromList inp = new InputSelectCardsFromList(controller, amount, amount, list, sourceAbility);
|
||||
inp.setMessage(Localizer.getInstance().getMessage("lblSelectNSpecifyTypeCardsToAction", cpl.getDescriptiveType(), actionName));
|
||||
String cardDesc = cpl.getDescriptiveType().equalsIgnoreCase("Card") ? "" : cpl.getDescriptiveType();
|
||||
inp.setMessage(Localizer.getInstance().getMessage("lblSelectNSpecifyTypeCardsToAction", cardDesc, actionName));
|
||||
inp.setCancelAllowed(true);
|
||||
|
||||
inp.showAndWait();
|
||||
|
||||
Reference in New Issue
Block a user