mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	InfoBar: disable scrollbar
This commit is contained in:
		| @@ -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() | ||||
|   | ||||
| @@ -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  | ||||
| 		{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user