mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix so Cancel button text restored for certain inputs
This commit is contained in:
@@ -48,6 +48,7 @@ public abstract class InputSelectManyBase<T extends GameEntity> extends InputSyn
|
||||
boolean canCancel = allowCancel;
|
||||
boolean canOk = hasEnoughTargets();
|
||||
|
||||
ButtonUtil.reset();
|
||||
if (canOk && canCancel) { ButtonUtil.enableAllFocusOk(); }
|
||||
if (!canOk && canCancel) { ButtonUtil.enableOnlyCancel(); }
|
||||
if (canOk && !canCancel) { ButtonUtil.enableOnlyOk(); }
|
||||
|
||||
@@ -74,6 +74,7 @@ public final class InputSelectTargets extends InputSyncronizedBase {
|
||||
showMessage(sb.toString());
|
||||
|
||||
// If reached Minimum targets, enable OK button
|
||||
ButtonUtil.reset();
|
||||
if (!tgt.isMinTargetsChosen(sa.getHostCard(), sa) || tgt.isDividedAsYouChoose()) {
|
||||
if (mandatory && tgt.hasCandidates(sa, true)) {
|
||||
// Player has to click on a target
|
||||
|
||||
Reference in New Issue
Block a user