diff --git a/client/adventureMap/CInfoBar.cpp b/client/adventureMap/CInfoBar.cpp index d1c1b1b6e..d5249d096 100644 --- a/client/adventureMap/CInfoBar.cpp +++ b/client/adventureMap/CInfoBar.cpp @@ -173,7 +173,7 @@ CInfoBar::VisibleComponentInfo::VisibleComponentInfo(const std::vector(vect, imageRect, 4, 4, 1, maxComponents); } - else - font = tiny ? FONT_TINY : font; if(!message.empty()) - text = std::make_shared(message, textRect, 0, font, ETextAlignment::CENTER, Colors::WHITE); + text = std::make_shared(textRect, font, ETextAlignment::CENTER, Colors::WHITE, message); } void CInfoBar::playNewDaySound() diff --git a/client/adventureMap/CInfoBar.h b/client/adventureMap/CInfoBar.h index 3a507e879..63ec62991 100644 --- a/client/adventureMap/CInfoBar.h +++ b/client/adventureMap/CInfoBar.h @@ -27,7 +27,7 @@ class CComponentBox; class CHeroTooltip; class CTownTooltip; class CLabel; -class CTextBox; +class CMultiLineLabel; /// Info box which shows next week/day information, hold the current date class CInfoBar : public CIntObject @@ -112,7 +112,7 @@ private: class VisibleComponentInfo : public CVisibleInfo { std::shared_ptr comps; - std::shared_ptr text; + std::shared_ptr text; public: struct Cache {