mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
GUI: display P/T of vehicles in hover panel (#11153)
This commit is contained in:
parent
b62b089659
commit
ec3e067c9d
1 changed files with 4 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ package mage.client.util.gui;
|
|||
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.dialog.PreferencesDialog;
|
||||
import static mage.client.dialog.PreferencesDialog.KEY_MAGE_PANEL_LAST_SIZE;
|
||||
import mage.client.table.PlayersChatPanel;
|
||||
import mage.client.util.GUISizeHelper;
|
||||
import mage.constants.*;
|
||||
|
|
@ -17,8 +18,6 @@ import java.awt.*;
|
|||
import java.util.List;
|
||||
import java.util.*;
|
||||
|
||||
import static mage.client.dialog.PreferencesDialog.KEY_MAGE_PANEL_LAST_SIZE;
|
||||
|
||||
public final class GuiDisplayUtil {
|
||||
|
||||
private static final Font cardNameFont = new Font("Calibri", Font.BOLD, 15);
|
||||
|
|
@ -316,6 +315,9 @@ public final class GuiDisplayUtil {
|
|||
String pt;
|
||||
if (card.isCreature()) {
|
||||
pt = card.getPower() + '/' + card.getToughness();
|
||||
} else if (card.showPT()) {
|
||||
// Vehicles have a P/T set to display even when not creatures.
|
||||
pt = "<span color='gray'>(" + card.getPower() + '/' + card.getToughness() + ")</span>";
|
||||
} else if (card.isPlaneswalker()) {
|
||||
pt = card.getLoyalty();
|
||||
} else if (card.isBattle()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue