mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Fixed that the storm counter was no shown on the game panel.
This commit is contained in:
parent
dd9431c8ea
commit
e29c4c3516
2 changed files with 3 additions and 3 deletions
|
@ -413,6 +413,8 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
pnlShortCuts.setMinimumSize(newDimension);
|
pnlShortCuts.setMinimumSize(newDimension);
|
||||||
pnlShortCuts.setMaximumSize(newDimension);
|
pnlShortCuts.setMaximumSize(newDimension);
|
||||||
|
|
||||||
|
txtSpellsCast.setFont(new Font(GUISizeHelper.gameDialogAreaFont.getFontName(), Font.BOLD, GUISizeHelper.gameDialogAreaFont.getSize()));
|
||||||
|
|
||||||
GUISizeHelper.changePopupMenuFont(popupMenuTriggerOrder);
|
GUISizeHelper.changePopupMenuFont(popupMenuTriggerOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1259,8 +1261,6 @@ public final class GamePanel extends javax.swing.JPanel {
|
||||||
feedbackPanel = new mage.client.game.FeedbackPanel();
|
feedbackPanel = new mage.client.game.FeedbackPanel();
|
||||||
|
|
||||||
txtSpellsCast = new javax.swing.JLabel();
|
txtSpellsCast = new javax.swing.JLabel();
|
||||||
Font font = new Font("SansSerif", Font.BOLD, 12);
|
|
||||||
txtSpellsCast.setFont(font);
|
|
||||||
Border paddingBorder = BorderFactory.createEmptyBorder(4, 4, 4, 4);
|
Border paddingBorder = BorderFactory.createEmptyBorder(4, 4, 4, 4);
|
||||||
Border border = BorderFactory.createLineBorder(Color.DARK_GRAY, 2);
|
Border border = BorderFactory.createLineBorder(Color.DARK_GRAY, 2);
|
||||||
txtSpellsCast.setBorder(BorderFactory.createCompoundBorder(border, paddingBorder));
|
txtSpellsCast.setBorder(BorderFactory.createCompoundBorder(border, paddingBorder));
|
||||||
|
|
|
@ -195,7 +195,7 @@ public class GameView implements Serializable {
|
||||||
this.special = false;
|
this.special = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CastSpellLastTurnWatcher watcher = (CastSpellLastTurnWatcher) game.getState().getWatchers().get("CastSpellLastTurnWatcher");
|
CastSpellLastTurnWatcher watcher = (CastSpellLastTurnWatcher) game.getState().getWatchers().get(CastSpellLastTurnWatcher.class.getName());
|
||||||
if (watcher != null) {
|
if (watcher != null) {
|
||||||
spellsCastCurrentTurn = watcher.getAmountOfSpellsAllPlayersCastOnCurrentTurn();
|
spellsCastCurrentTurn = watcher.getAmountOfSpellsAllPlayersCastOnCurrentTurn();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue