1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

allow custom loadbar-backgrounds for campaigns

This commit is contained in:
Laserlicht
2024-08-31 16:03:42 +02:00
parent 0b8f92250d
commit 16cbd6a7d2
9 changed files with 36 additions and 5 deletions

View File

@@ -205,6 +205,11 @@ AudioPath CampaignHeader::getMusic() const
return music;
}
ImagePath CampaignHeader::getLoadingBackground() const
{
return loadingBackground;
}
const CampaignRegions & CampaignHeader::getRegions() const
{
return campaignRegions;
@@ -472,6 +477,8 @@ void Campaign::overrideCampaign(bool scenario)
{
if(!entry.second["regions"].isNull() && !entry.second["scenarioCount"].isNull())
loadLegacyData(CampaignRegions::fromJson(entry.second["regions"]), entry.second["scenarioCount"].Integer());
if(!entry.second["loadingBackground"].isNull())
loadingBackground = ImagePath::builtin(entry.second["loadingBackground"].String());
}
else
{