diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/itempopup.cpp | 4 | ||||
-rw-r--r-- | src/gui/popups/itempopup.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp index e70de0a5c..21c00001d 100644 --- a/src/gui/popups/itempopup.cpp +++ b/src/gui/popups/itempopup.cpp @@ -222,7 +222,9 @@ void ItemPopup::setItem(const ItemInfo &item, // TRANSLATORS: popup label mItemWeight->setTextWrapped(strprintf(_("Weight: %s"), Units::formatWeight(item.getWeight()).c_str()), 196); +#ifdef EATHENA_SUPPORT mItemCards->setTextWrapped(getCardsString(cards), 196); +#endif int minWidth = mItemName->getWidth() + space; @@ -264,6 +266,7 @@ void ItemPopup::setItem(const ItemInfo &item, mItemDesc->setPosition(0, 2 * height); } +#ifdef EATHENA_SUPPORT std::string ItemPopup::getCardsString(const int *const cards) { if (!cards) @@ -315,6 +318,7 @@ std::string ItemPopup::getCardsString(const int *const cards) } } } +#endif #define caseSetColor(name1, name2) \ case name1: \ diff --git a/src/gui/popups/itempopup.h b/src/gui/popups/itempopup.h index fb2a935ca..43b7cb262 100644 --- a/src/gui/popups/itempopup.h +++ b/src/gui/popups/itempopup.h @@ -73,7 +73,9 @@ class ItemPopup final : public Popup void resetPopup(); private: +#ifdef EATHENA_SUPPORT std::string getCardsString(const int *const cards); +#endif Label *mItemName A_NONNULLPOINTER; TextBox *mItemDesc A_NONNULLPOINTER; |