Added player life to tooltip of small player name label (if no avatar images is shown). So life can be shown (at least with tooltip) if the top card of library is turned face up.

This commit is contained in:
LevelX2 2014-10-06 14:34:26 +02:00
parent 16606d9983
commit 05ba67a9c9

View file

@ -251,6 +251,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
} }
this.btnPlayer.setText(player.getName()); this.btnPlayer.setText(player.getName());
this.btnPlayer.setToolTipText("Life: " + player.getLife());
if (player.isActive()) { if (player.isActive()) {
this.avatar.setBorder(greenBorder); this.avatar.setBorder(greenBorder);
this.btnPlayer.setBorder(greenBorder); this.btnPlayer.setBorder(greenBorder);