- Updated tooltip text for hand icon so that it indicates the player's maximum hand size.

- Fixed Vanguard player tab names when re-adding players in setup
This commit is contained in:
moomarc
2012-11-28 08:26:11 +00:00
parent 9e307ab1fd
commit 4284e149dc
2 changed files with 4 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ public enum VSubmenuVanguard implements IVSubmenu<CSubmenuVanguard> {
} }
else { else {
for (int i = currentNumTabsShown; i <= toShow; i++) { for (int i = currentNumTabsShown; i <= toShow; i++) {
tabPane.add("Player " + (i + 1), playerPanels.get(i)); tabPane.add("Opponent " + i, playerPanels.get(i));
} }
currentNumTabsShown = tabPane.getComponentCount() - 1; currentNumTabsShown = tabPane.getComponentCount() - 1;
} }

View File

@@ -325,6 +325,9 @@ public class VField implements IVDoc<CField> {
*/ */
public void updateZones(final Player p0) { public void updateZones(final Player p0) {
this.getLblHand().setText("" + p0.getZone(ZoneType.Hand).size()); this.getLblHand().setText("" + p0.getZone(ZoneType.Hand).size());
final String handMaxToolTip = p0.getMaxHandSize() < 0
? "no maximum hand size" : String.valueOf(p0.getMaxHandSize());
this.getLblHand().setToolTipText("Cards in hand (max: " + handMaxToolTip + ")");
this.getLblGraveyard().setText("" + p0.getZone(ZoneType.Graveyard).size()); this.getLblGraveyard().setText("" + p0.getZone(ZoneType.Graveyard).size());
this.getLblLibrary().setText("" + p0.getZone(ZoneType.Library).size()); this.getLblLibrary().setText("" + p0.getZone(ZoneType.Library).size());
this.getLblFlashback().setText("" + CardFactoryUtil.getExternalZoneActivationCards(p0).size()); this.getLblFlashback().setText("" + CardFactoryUtil.getExternalZoneActivationCards(p0).size());