1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

use playerColored

This commit is contained in:
Michael 2023-08-14 22:22:43 +02:00 committed by GitHub
parent 079e8ba1ba
commit b2c8cab9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

View File

@ -21,6 +21,7 @@
#include "../render/IFont.h"
#include "../widgets/CComponent.h"
#include "../widgets/Buttons.h"
#include "../widgets/Images.h"
#include "../widgets/MiscWidgets.h"
#include "../widgets/ObjectLists.h"
#include "../widgets/Slider.h"
@ -522,7 +523,8 @@ void OptionsTab::SelectionWindow::recreate()
pos = Rect(0, 0, x, y);
backgroundTexture = std::make_shared<CFilledTexture>("DlgBluBk", pos);
backgroundTexture = std::make_shared<FilledTexturePlayerColored>("DiBoxBck", pos);
backgroundTexture->playerColored(PlayerColor(1));
updateShadow();
if(type == SelType::TOWN)

View File

@ -17,6 +17,7 @@ struct PlayerInfo;
VCMI_LIB_NAMESPACE_END
#include "../widgets/Scrollable.h"
#include "../widgets/Images.h"
#include "../../lib/mapping/CMapHeader.h"
class CSlider;
@ -102,7 +103,7 @@ public:
PlayerColor color;
SelType type;
std::shared_ptr<CFilledTexture> backgroundTexture;
std::shared_ptr<FilledTexturePlayerColored> backgroundTexture;
std::vector<std::shared_ptr<CIntObject>> components;
std::vector<FactionID> factions;