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:
parent
dae03fdf92
commit
ded4c18df9
@ -34,7 +34,7 @@ CComponent::CComponent(Etype Type, int Subtype, int Val, ESize imageSize):
|
||||
init(Type, Subtype, Val, imageSize);
|
||||
}
|
||||
|
||||
CComponent::CComponent(const Component &c):
|
||||
CComponent::CComponent(const Component &c, ESize imageSize):
|
||||
image(nullptr),
|
||||
perDay(false)
|
||||
{
|
||||
@ -43,7 +43,7 @@ CComponent::CComponent(const Component &c):
|
||||
if(c.id == Component::RESOURCE && c.when==-1)
|
||||
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)
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
std::string getSubtitle();
|
||||
|
||||
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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user