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

@@ -518,9 +518,8 @@ void OptionsTab::SelectionWindow::recreate(int sliderPos)
int sliderWidth = ((amountLines > MAX_LINES) ? 16 : 0);
pos = Rect(pos.x, pos.y, x + sliderWidth, y);
backgroundTexture = std::make_shared<FilledTexturePlayerColored>(ImagePath::builtin("DiBoxBck"), Rect(0, 0, pos.w - sliderWidth, pos.h));
backgroundTexture->playerColored(PlayerColor(1));
backgroundTexture->setPlayerColor(PlayerColor(1));
updateShadow();
if(type == SelType::TOWN)