1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

big images; basic heroes support

This commit is contained in:
Michael
2023-08-12 13:19:58 +02:00
committed by GitHub
parent d0522b0fee
commit b4f6c7abab
2 changed files with 43 additions and 19 deletions

View File

@ -61,8 +61,8 @@ public:
{}
/// visible image settings
size_t getImageIndex();
std::string getImageName();
size_t getImageIndex(bool big = false);
std::string getImageName(bool big = false);
std::string getName(); /// name visible in options dialog
std::string getTitle(); /// title in popup box
@ -97,11 +97,13 @@ public:
class SelectionWindow : public CWindowObject
{
const int ELEMENTS_PER_LINE = 5;
std::shared_ptr<CFilledTexture> backgroundTexture;
std::vector<std::shared_ptr<CIntObject>> components;
std::vector<FactionID> factions;
std::vector<SHeroName> heroes;
std::vector<HeroTypeID> heroes;
void genContentCastles(PlayerSettings settings, PlayerInfo playerInfo);
void genContentHeroes(PlayerSettings settings, PlayerInfo playerInfo);