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 = [&]() {
|
auto drawLabel = [&]() {
|
||||||
label = std::make_shared<CTextBox>(text, Rect(BORDER, BORDER, BORDER + 2 * IMAGE_SIZE, 350), 0, FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE);
|
label = std::make_shared<CTextBox>(text, Rect(BORDER, BORDER, BORDER + 2 * IMAGE_SIZE, 350), 0, FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE);
|
||||||
if(!label->slider)
|
if(!label->slider)
|
||||||
label->resize(label->label->textSize);
|
label->resize(Point(BORDER + 2 * IMAGE_SIZE, label->label->textSize.y));
|
||||||
};
|
};
|
||||||
drawLabel();
|
drawLabel();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user