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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user