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 committed 2015-02-14 00:53:24 +03:00
1 parent dae03fdf92
commit ded4c18df9
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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
};