1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00
This commit is contained in:
Laserlicht
2025-06-20 14:08:07 +02:00
parent 596e99d774
commit d003030d08
6 changed files with 19 additions and 2 deletions

View File

@@ -988,7 +988,9 @@ CHeroItem::CHeroItem(const CGHeroInstance * Hero)
{
if(isMoreSkillsThanSlots && i == slots - 1)
{
heroInfoFull = std::make_shared<CMultiLineLabel>(Rect(Point(410+(int)i*36, 5), Point(34, 28)), EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "...");
Rect r(Point(410+(int)i*36, 5), Point(34, 28));
heroInfoFull = std::make_shared<CMultiLineLabel>(r, EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "...");
heroInfoFullArea = std::make_shared<LRClickableAreaWText>(r, LIBRARY->generaltexth->translate("vcmi.kingdomOverview.secSkillOverflow.hover"), LIBRARY->generaltexth->translate("vcmi.kingdomOverview.secSkillOverflow.help"));
continue;
}
auto data = std::make_shared<InfoBoxHeroData>(IInfoBoxData::HERO_SECONDARY_SKILL, hero, (int)i);