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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user