forked from External/mage
Resizing GUI elements live from the preference menu
This commit is contained in:
parent
bf2e90feae
commit
a4f195c0c6
3 changed files with 140 additions and 65 deletions
|
|
@ -310,6 +310,14 @@ public class HelperPanel extends JPanel {
|
|||
public void setGameNeedFeedback(boolean need, TurnPhase gameTurnPhase) {
|
||||
this.gameNeedFeedback = need;
|
||||
this.gameTurnPhase = gameTurnPhase;
|
||||
|
||||
if (this.gameNeedFeedback) {
|
||||
// start notification sound timer
|
||||
this.needFeedbackTimer.restart();
|
||||
} else {
|
||||
// stop notification sound timer
|
||||
this.needFeedbackTimer.stop();
|
||||
}
|
||||
}
|
||||
|
||||
public void autoSizeButtonsAndFeedbackState() {
|
||||
|
|
@ -343,9 +351,6 @@ public class HelperPanel extends JPanel {
|
|||
// color panel on player's feedback waiting
|
||||
if (this.gameNeedFeedback) {
|
||||
|
||||
// start notification sound timer
|
||||
this.needFeedbackTimer.restart();
|
||||
|
||||
// wait player's action
|
||||
switch (FEEDBACK_COLORIZING_MODE) {
|
||||
case Constants.BATTLEFIELD_FEEDBACK_COLORIZING_MODE_DISABLE:
|
||||
|
|
@ -383,9 +388,6 @@ public class HelperPanel extends JPanel {
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
// stop notification sound timer
|
||||
this.needFeedbackTimer.stop();
|
||||
|
||||
// inform about other players
|
||||
this.mainPanel.setOpaque(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue