1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

CComponent: add option to choose image size

This option is used to choose small resource icons in Quest Log when there more than 4 of them.
This commit is contained in:
ArseniyShestakov 2015-02-14 00:53:24 +03:00
parent dae03fdf92
commit ded4c18df9
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ CComponent::CComponent(Etype Type, int Subtype, int Val, ESize imageSize):
init(Type, Subtype, Val, imageSize); init(Type, Subtype, Val, imageSize);
} }
CComponent::CComponent(const Component &c): CComponent::CComponent(const Component &c, ESize imageSize):
image(nullptr), image(nullptr),
perDay(false) perDay(false)
{ {
@ -43,7 +43,7 @@ CComponent::CComponent(const Component &c):
if(c.id == Component::RESOURCE && c.when==-1) if(c.id == Component::RESOURCE && c.when==-1)
perDay = true; perDay = true;
init((Etype)c.id,c.subtype,c.val, large); init((Etype)c.id,c.subtype,c.val, imageSize);
} }
void CComponent::init(Etype Type, int Subtype, int Val, ESize imageSize) void CComponent::init(Etype Type, int Subtype, int Val, ESize imageSize)

View File

@ -55,7 +55,7 @@ public:
std::string getSubtitle(); std::string getSubtitle();
CComponent(Etype Type, int Subtype, int Val = 0, ESize imageSize=large);//c-tor CComponent(Etype Type, int Subtype, int Val = 0, ESize imageSize=large);//c-tor
CComponent(const Component &c); //c-tor CComponent(const Component &c, ESize imageSize=large); //c-tor
void clickRight(tribool down, bool previousState); //call-in void clickRight(tribool down, bool previousState); //call-in
}; };