public void setText(Card card) {
        if (card == null || !Gui_NewGame.cardOverlay.isSelected()) return;
        if (card.isFaceDown()) {
            titleText.setText("");
            showCastingCost = false;
        } else {
            titleText.setText(card.getName());
            showCastingCost = true;
        }

        if (card.isCreature() && card.isPlaneswalker()) {
            ptText.setText(card.getNetAttack() + "/" + card.getNetDefense() + " (" + String.valueOf(card.getCounters(Counters.LOYALTY)) + ")");
        } else if (card.isCreature()) {
            ptText.setText(card.getNetAttack() + "/" + card.getNetDefense());
        } else if (card.isPlaneswalker()) {
            ptText.setText(String.valueOf(card.getCounters(Counters.LOYALTY)));
        } else {
            ptText.setText("");
        }
    }