mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
another try...
This commit is contained in:
@@ -823,7 +823,7 @@ SelectionTab::CMapInfoTooltipBox::CMapInfoTooltipBox(std::string text, ResourceI
|
||||
auto drawLabel = [&]() {
|
||||
label = std::make_shared<CTextBox>(text, Rect(BORDER, BORDER, BORDER + 2 * IMAGE_SIZE, 350), 0, FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE);
|
||||
if(!label->slider)
|
||||
label->resize(label->label->textSize);
|
||||
label->resize(Point(BORDER + 2 * IMAGE_SIZE, label->label->textSize.y));
|
||||
};
|
||||
drawLabel();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user