mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
HoMM3 bug workaround: fixes missing slot on artifact merchant background
image
This commit is contained in:
parent
fd21f9ead2
commit
397371b969
@ -676,6 +676,10 @@ CMarketplaceWindow::CMarketplaceWindow(const IMarket * Market, const CGHeroInsta
|
||||
break;
|
||||
case EMarketMode::ARTIFACT_RESOURCE:
|
||||
title = (*CGI->townh)[market->o->subID]->town->buildings[BuildingID::ARTIFACT_MERCHANT]->Name();
|
||||
|
||||
// create image that copies part of background containing slot MISC_1 into position of slot MISC_5
|
||||
// this is workaround for bug in H3 files where this slot for ragdoll on this screen is missing
|
||||
images.push_back(std::make_shared<CPicture>(background->bg, Rect(20, 187, 47, 47), 18, 339 ));
|
||||
sliderNeeded = false;
|
||||
break;
|
||||
default:
|
||||
|
@ -21,6 +21,7 @@ VCMI_LIB_NAMESPACE_END
|
||||
|
||||
class CSlider;
|
||||
class CTextBox;
|
||||
class CPicture;
|
||||
class CGStatusBar;
|
||||
|
||||
class CTradeWindow : public CWindowObject, public CWindowWithArtifacts //base for markets and altar of sacrifice
|
||||
@ -108,6 +109,7 @@ public:
|
||||
protected:
|
||||
std::shared_ptr<CGStatusBar> statusBar;
|
||||
std::vector<std::shared_ptr<CLabel>> labels;
|
||||
std::vector<std::shared_ptr<CPicture>> images;
|
||||
std::vector<std::shared_ptr<CButton>> buttons;
|
||||
std::vector<std::shared_ptr<CTextBox>> texts;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user