mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- 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:
@@ -195,7 +195,7 @@ public enum VSubmenuVanguard implements IVSubmenu<CSubmenuVanguard> {
|
||||
}
|
||||
else {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -325,6 +325,9 @@ public class VField implements IVDoc<CField> {
|
||||
*/
|
||||
public void updateZones(final Player p0) {
|
||||
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.getLblLibrary().setText("" + p0.getZone(ZoneType.Library).size());
|
||||
this.getLblFlashback().setText("" + CardFactoryUtil.getExternalZoneActivationCards(p0).size());
|
||||
|
||||
Reference in New Issue
Block a user