mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix UI updates
This commit is contained in:
parent
cc91be3518
commit
96eab03b16
@ -351,6 +351,7 @@ void CBonusSelection::updateAfterStateChange()
|
|||||||
if(!CSH->mi)
|
if(!CSH->mi)
|
||||||
return;
|
return;
|
||||||
iconsMapSizes->setFrame(CSH->mi->getMapSizeIconId());
|
iconsMapSizes->setFrame(CSH->mi->getMapSizeIconId());
|
||||||
|
mapName->setText(CSH->mi->getName());
|
||||||
mapDescription->setText(CSH->mi->getDescription());
|
mapDescription->setText(CSH->mi->getDescription());
|
||||||
for(size_t i = 0; i < difficultyIcons.size(); i++)
|
for(size_t i = 0; i < difficultyIcons.size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -62,7 +62,7 @@ PlayerSettings * StartInfo::getPlayersSettings(const ui8 connectedPlayerId)
|
|||||||
|
|
||||||
std::string StartInfo::getCampaignName() const
|
std::string StartInfo::getCampaignName() const
|
||||||
{
|
{
|
||||||
if(campState->getName().empty())
|
if(!campState->getName().empty())
|
||||||
return campState->getName();
|
return campState->getName();
|
||||||
else
|
else
|
||||||
return VLC->generaltexth->allTexts[508];
|
return VLC->generaltexth->allTexts[508];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user