1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-14 02:33:51 +02:00

InfoBar: disable scrollbar

This commit is contained in:
Konstantin 2023-04-07 20:50:47 +03:00
parent a0de223901
commit f8c15f3a4b
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ CInfoBar::VisibleComponentInfo::VisibleComponentInfo(const std::vector<Component
font = tiny ? FONT_TINY : font;
if(!message.empty())
text = std::make_shared<CTextBox>(message, textRect, 0, font, ETextAlignment::CENTER, Colors::WHITE);
text = std::make_shared<CMultiLineLabel>(textRect, font, ETextAlignment::CENTER, Colors::WHITE, message);
}
void CInfoBar::playNewDaySound()

View File

@ -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<CComponentBox> comps;
std::shared_ptr<CTextBox> text;
std::shared_ptr<CMultiLineLabel> text;
public:
struct Cache
{