mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed "X Can't be 0." costs always showing cancel.
This commit is contained in:
@@ -58,13 +58,6 @@ public class InputPayManaX extends InputPayMana {
|
|||||||
public void showMessage() {
|
public void showMessage() {
|
||||||
if( isFinished() ) return;
|
if( isFinished() ) return;
|
||||||
|
|
||||||
// Enable just cancel is full X value hasn't been paid for multiple X values
|
|
||||||
// or X is 0, and x can't be 0
|
|
||||||
if (!isPaid()) {
|
|
||||||
ButtonUtil.enableOnlyCancel();
|
|
||||||
} else {
|
|
||||||
ButtonUtil.enableAllFocusOk();
|
|
||||||
}
|
|
||||||
updateMessage();
|
updateMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,6 +69,13 @@ public class InputPayManaX extends InputPayMana {
|
|||||||
if (!xCanBe0) {
|
if (!xCanBe0) {
|
||||||
msg.append(" X Can't be 0.");
|
msg.append(" X Can't be 0.");
|
||||||
}
|
}
|
||||||
|
// Enable just cancel is full X value hasn't been paid for multiple X values
|
||||||
|
// or X is 0, and x can't be 0
|
||||||
|
if (!isPaid()) {
|
||||||
|
ButtonUtil.enableOnlyCancel();
|
||||||
|
} else {
|
||||||
|
ButtonUtil.enableAllFocusOk();
|
||||||
|
}
|
||||||
|
|
||||||
showMessage(msg.toString());
|
showMessage(msg.toString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user