1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +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

@@ -97,6 +97,7 @@ class DLL_LINKAGE CampaignHeader : public boost::noncopyable
std::string filename;
std::string modName;
std::string encoding;
ImagePath loadingBackground;
int numberOfScenarios = 0;
bool difficultyChosenByPlayer = false;
@@ -120,6 +121,7 @@ public:
std::string getModName() const;
std::string getEncoding() const;
AudioPath getMusic() const;
ImagePath getLoadingBackground() const;
const CampaignRegions & getRegions() const;
TextContainerRegistrable & getTexts();
@@ -145,6 +147,10 @@ public:
h & encoding;
if (h.version >= Handler::Version::RELEASE_143)
h & textContainer;
if (h.version >= Handler::Version::CHRONICLES_SUPPORT)
{
h & loadingBackground;
}
}
};