1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Implemented generation of player-colored version of DiBoxBck

This commit is contained in:
Ivan Savenko
2024-09-12 16:11:03 +00:00
parent 6f6b20b716
commit 915533ed2e
17 changed files with 98 additions and 46 deletions

View File

@@ -309,9 +309,8 @@ std::shared_ptr<CIntObject> AdventureMapWidget::buildStatusBar(const JsonNode &
std::shared_ptr<CIntObject> AdventureMapWidget::buildTexturePlayerColored(const JsonNode & input)
{
logGlobal->debug("Building widget CFilledTexture");
auto image = ImagePath::fromJson(input["image"]);
Rect area = readTargetArea(input["area"]);
return std::make_shared<FilledTexturePlayerColored>(image, area);
return std::make_shared<FilledTexturePlayerColored>(area);
}
std::shared_ptr<CHeroList> AdventureMapWidget::getHeroList()