1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Unified naming of method to recolor UI element to current player scheme

This commit is contained in:
Ivan Savenko
2024-06-05 15:50:50 +00:00
parent 9f31ec5326
commit 920a39844b
20 changed files with 43 additions and 45 deletions

View File

@@ -93,7 +93,7 @@ std::shared_ptr<CPicture> CWindowObject::createBg(const ImagePath & imageName, b
auto image = std::make_shared<CPicture>(imageName);
image->getSurface()->setBlitMode(EImageBlitMode::OPAQUE);
if(playerColored)
image->colorize(LOCPLINT->playerID);
image->setPlayerColor(LOCPLINT->playerID);
return image;
}