mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
commit
75ebd9695d
@ -809,6 +809,7 @@ void SelectionTab::parseMaps(const std::unordered_set<ResourcePath> & files)
|
|||||||
{
|
{
|
||||||
auto mapInfo = std::make_shared<ElementInfo>();
|
auto mapInfo = std::make_shared<ElementInfo>();
|
||||||
mapInfo->mapInit(file.getName());
|
mapInfo->mapInit(file.getName());
|
||||||
|
mapInfo->name = mapInfo->getNameForList();
|
||||||
|
|
||||||
if (isMapSupported(*mapInfo))
|
if (isMapSupported(*mapInfo))
|
||||||
allItems.push_back(mapInfo);
|
allItems.push_back(mapInfo);
|
||||||
@ -988,6 +989,6 @@ void SelectionTab::ListItem::updateItem(std::shared_ptr<ElementInfo> info, bool
|
|||||||
iconLossCondition->setFrame(info->mapHeader->defeatIconIndex, 0);
|
iconLossCondition->setFrame(info->mapHeader->defeatIconIndex, 0);
|
||||||
labelName->setMaxWidth(185);
|
labelName->setMaxWidth(185);
|
||||||
}
|
}
|
||||||
labelName->setText(info->getNameForList());
|
labelName->setText(info->name);
|
||||||
labelName->setColor(color);
|
labelName->setColor(color);
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ public:
|
|||||||
ElementInfo() : CMapInfo() { }
|
ElementInfo() : CMapInfo() { }
|
||||||
~ElementInfo() { }
|
~ElementInfo() { }
|
||||||
std::string folderName = "";
|
std::string folderName = "";
|
||||||
|
std::string name = "";
|
||||||
bool isFolder = false;
|
bool isFolder = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user