|
@@ -131,6 +131,7 @@ InfoCard::InfoCard()
|
|
|
pos.y += 6;
|
|
|
|
|
|
labelSaveDate = std::make_shared<CLabel>(310, 38, FONT_SMALL, ETextAlignment::BOTTOMRIGHT, Colors::WHITE);
|
|
|
+ labelMapSize = std::make_shared<CLabel>(333, 56, FONT_TINY, ETextAlignment::CENTER, Colors::WHITE);
|
|
|
mapName = std::make_shared<CLabel>(26, 39, FONT_BIG, ETextAlignment::TOPLEFT, Colors::YELLOW);
|
|
|
Rect descriptionRect(26, 149, 320, 115);
|
|
|
mapDescription = std::make_shared<CTextBox>("", descriptionRect, 1);
|
|
@@ -193,6 +194,7 @@ InfoCard::InfoCard()
|
|
|
void InfoCard::disableLabelRedraws()
|
|
|
{
|
|
|
labelSaveDate->setAutoRedraw(false);
|
|
|
+ labelMapSize->setAutoRedraw(false);
|
|
|
mapName->setAutoRedraw(false);
|
|
|
mapDescription->label->setAutoRedraw(false);
|
|
|
labelVictoryConditionText->setAutoRedraw(false);
|
|
@@ -208,6 +210,7 @@ void InfoCard::changeSelection()
|
|
|
return;
|
|
|
|
|
|
labelSaveDate->setText(mapInfo->date);
|
|
|
+ labelMapSize->setText(std::to_string(mapInfo->mapHeader->width) + "x" + std::to_string(mapInfo->mapHeader->height));
|
|
|
mapName->setText(mapInfo->getNameTranslated());
|
|
|
mapDescription->setText(mapInfo->getDescriptionTranslated());
|
|
|
|