diff --git a/client/windows/CKingdomInterface.cpp b/client/windows/CKingdomInterface.cpp index 39cb60f93..2cd7778bc 100644 --- a/client/windows/CKingdomInterface.cpp +++ b/client/windows/CKingdomInterface.cpp @@ -982,8 +982,15 @@ CHeroItem::CHeroItem(const CGHeroInstance * Hero) heroInfo.push_back(std::make_shared(Point(78+(int)i*36, 26), InfoBox::POS_DOWN, InfoBox::SIZE_SMALL, data)); } - for(size_t i=0; iinterface()->cb->getSettings().getInteger(EGameSettings::HEROES_SKILL_PER_HERO); i++) + int slots = 8; + bool isMoreSkillsThanSlots = hero->secSkills.size() > slots; + for(size_t i=0; i(Rect(Point(410+(int)i*36, 5), Point(34, 28)), EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "..."); + continue; + } auto data = std::make_shared(IInfoBoxData::HERO_SECONDARY_SKILL, hero, (int)i); heroInfo.push_back(std::make_shared(Point(410+(int)i*36, 5), InfoBox::POS_NONE, InfoBox::SIZE_SMALL, data)); } diff --git a/client/windows/CKingdomInterface.h b/client/windows/CKingdomInterface.h index fc519197c..0bb5eeca8 100644 --- a/client/windows/CKingdomInterface.h +++ b/client/windows/CKingdomInterface.h @@ -310,6 +310,7 @@ class CHeroItem : public CIntObject, public IGarrisonHolder std::shared_ptr artButtons; std::vector> heroInfo; + std::shared_ptr heroInfoFull; std::shared_ptr morale; std::shared_ptr luck;