mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
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:
parent
16606d9983
commit
05ba67a9c9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue