mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Changes UI needs for controlling turn.
This commit is contained in:
parent
4cafa3fc52
commit
024c506522
2 changed files with 8 additions and 4 deletions
|
|
@ -159,6 +159,10 @@ public class FeedbackPanel extends javax.swing.JPanel {
|
|||
logger.debug("feedback - clear");
|
||||
}
|
||||
|
||||
public void clear0() {
|
||||
stopModal();
|
||||
}
|
||||
|
||||
private synchronized void startModal() {
|
||||
|
||||
try {
|
||||
|
|
@ -337,7 +341,7 @@ public class FeedbackPanel extends javax.swing.JPanel {
|
|||
|
||||
private void btnRightActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRightActionPerformed
|
||||
this.selected = true;
|
||||
clear();
|
||||
clear0();
|
||||
if (mode == FeedbackMode.SELECT && (evt.getModifiers() & ActionEvent.CTRL_MASK) == ActionEvent.CTRL_MASK)
|
||||
session.sendPlayerInteger(gameId, 0);
|
||||
else
|
||||
|
|
@ -346,7 +350,7 @@ public class FeedbackPanel extends javax.swing.JPanel {
|
|||
|
||||
private void btnLeftActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLeftActionPerformed
|
||||
this.selected = true;
|
||||
clear();
|
||||
clear0();
|
||||
session.sendPlayerBoolean(gameId, true);
|
||||
}//GEN-LAST:event_btnLeftActionPerformed
|
||||
|
||||
|
|
|
|||
|
|
@ -643,7 +643,7 @@ public class GamePanel extends javax.swing.JPanel {
|
|||
btnSwitchHandActionPerformed(null);
|
||||
}
|
||||
});
|
||||
btnSwitchHands.setBorder(BorderFactory.createLineBorder(Color.red));
|
||||
//btnSwitchHands.setBorder(BorderFactory.createLineBorder(Color.red));
|
||||
|
||||
btnStopWatching.setText("Stop Watching");
|
||||
btnStopWatching.addActionListener(new java.awt.event.ActionListener() {
|
||||
|
|
@ -877,7 +877,7 @@ public class GamePanel extends javax.swing.JPanel {
|
|||
JOptionPane.PLAIN_MESSAGE,
|
||||
null,
|
||||
choices,
|
||||
YOUR_HAND);
|
||||
this.chosenHandKey);
|
||||
|
||||
if (chosenHandKey != null && chosenHandKey.length() > 0) {
|
||||
this.chosenHandKey = chosenHandKey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue