mirror of
https://github.com/correl/mage.git
synced 2025-04-12 09:11:05 -09:00
* UI: improved choose target amount dialog (added info about selected targets and amount);
This commit is contained in:
parent
bad26b182a
commit
eafb4eb653
1 changed files with 5 additions and 1 deletions
|
@ -708,7 +708,11 @@ public class HumanPlayer extends PlayerImpl {
|
||||||
while (!abort) {
|
while (!abort) {
|
||||||
prepareForResponse(game);
|
prepareForResponse(game);
|
||||||
if (!isExecutingMacro()) {
|
if (!isExecutingMacro()) {
|
||||||
game.fireSelectTargetEvent(playerId, new MessageToClient(target.getMessage() + "\n Amount remaining:" + target.getAmountRemaining(), getRelatedObjectName(source, game)),
|
String selectedNames = target.getTargetedName(game);
|
||||||
|
game.fireSelectTargetEvent(playerId, new MessageToClient(target.getMessage()
|
||||||
|
+ "<br> Amount remaining: " + target.getAmountRemaining()
|
||||||
|
+ (selectedNames.isEmpty() ? "" : ", selected: " + selectedNames),
|
||||||
|
getRelatedObjectName(source, game)),
|
||||||
target.possibleTargets(source == null ? null : source.getSourceId(), playerId, game),
|
target.possibleTargets(source == null ? null : source.getSourceId(), playerId, game),
|
||||||
target.isRequired(source),
|
target.isRequired(source),
|
||||||
getOptions(target, null));
|
getOptions(target, null));
|
||||||
|
|
Loading…
Add table
Reference in a new issue