- Fixed "X Can't be 0." costs always showing cancel.

This commit is contained in:
Sloth
2013-06-16 16:49:30 +00:00
parent c513f93329
commit f089ef0c60

View File

@@ -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());
} }