mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Replace Yes/No text with Mulligan/Keep text on mulligan answer buttons to make options more clear.
This commit is contained in:
parent
94e59e5ee7
commit
c04bd6d64a
5 changed files with 29 additions and 5 deletions
|
|
@ -203,9 +203,15 @@ public class FeedbackPanel extends javax.swing.JPanel {
|
|||
|
||||
private void handleOptions(Map<String, Serializable> options) {
|
||||
if (options != null) {
|
||||
if (options.containsKey("UI.left.btn.text")) {
|
||||
String text = (String) options.get("UI.left.btn.text");
|
||||
this.btnLeft.setText(text);
|
||||
this.helper.setLeft(text, true);
|
||||
}
|
||||
if (options.containsKey("UI.right.btn.text")) {
|
||||
this.btnRight.setText((String) options.get("UI.right.btn.text"));
|
||||
this.helper.setRight((String) options.get("UI.right.btn.text"), true);
|
||||
String text = (String) options.get("UI.right.btn.text");
|
||||
this.btnRight.setText(text);
|
||||
this.helper.setRight(text, true);
|
||||
}
|
||||
if (options.containsKey("dialog")) {
|
||||
connectedDialog = (MageDialog) options.get("dialog");
|
||||
|
|
|
|||
|
|
@ -323,6 +323,13 @@ public class HelperPanel extends JPanel {
|
|||
this.btnUndo.setVisible(enabled);
|
||||
}
|
||||
|
||||
public void setLeft(String text, boolean visible) {
|
||||
this.btnLeft.setVisible(visible);
|
||||
if (!text.isEmpty()) {
|
||||
this.btnLeft.setText(text);
|
||||
}
|
||||
}
|
||||
|
||||
public void setRight(String txtRight, boolean rightVisible) {
|
||||
this.btnRight.setVisible(rightVisible);
|
||||
if (!txtRight.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue