mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
use playerColored
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 73 KiB |
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user