forked from External/mage
[UI] Moved Concede button from helper component to bottom-left
This commit is contained in:
parent
0211b4f1af
commit
6d670fa3ff
3 changed files with 30 additions and 24 deletions
|
|
@ -32,7 +32,6 @@ import mage.client.components.MageTextArea;
|
|||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.MouseListener;
|
||||
|
||||
/**
|
||||
* Panel with buttons that copy the state of feedback panel.
|
||||
|
|
@ -44,7 +43,7 @@ public class HelperPanel extends JPanel {
|
|||
private javax.swing.JButton btnLeft;
|
||||
private javax.swing.JButton btnRight;
|
||||
private javax.swing.JButton btnSpecial;
|
||||
private javax.swing.JButton btnEndTurn;
|
||||
//private javax.swing.JButton btnEndTurn;
|
||||
//private javax.swing.JButton btnStopTimer;
|
||||
|
||||
private MageTextArea textArea;
|
||||
|
|
@ -101,11 +100,13 @@ public class HelperPanel extends JPanel {
|
|||
//btnStopTimer.setToolTipText("Stop auto phase skipping timer");
|
||||
//add(btnStopTimer);
|
||||
|
||||
/*
|
||||
btnEndTurn = new JButton("End Turn");
|
||||
btnEndTurn.setToolTipText("End The Turn");
|
||||
btnEndTurn.setFocusable(false);
|
||||
btnEndTurn.setVisible(false);
|
||||
container.add(btnEndTurn);
|
||||
*/
|
||||
|
||||
btnLeft.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
|
|
@ -166,10 +167,6 @@ public class HelperPanel extends JPanel {
|
|||
this.linkRight = right;
|
||||
this.linkSpecial = special;
|
||||
}
|
||||
|
||||
public void addEndTurnListener(MouseListener mouseListener) {
|
||||
this.btnEndTurn.addMouseListener(mouseListener);
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
if (message.contains("Use")) {
|
||||
|
|
@ -178,14 +175,6 @@ public class HelperPanel extends JPanel {
|
|||
textArea.setText(message);
|
||||
}
|
||||
}
|
||||
|
||||
public void setYourTurn(boolean yourTurn) {
|
||||
if (yourTurn) {
|
||||
btnEndTurn.setVisible(true);
|
||||
} else {
|
||||
btnEndTurn.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void requestFocus() {
|
||||
this.btnRight.requestFocus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue