mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix slot selection in markets
This commit is contained in:
@@ -75,7 +75,7 @@ TransparentFilledRectangle::TransparentFilledRectangle(Rect position, ColorRGBA
|
||||
{
|
||||
addBox(Point(0,0), Point(-1, -1), color);
|
||||
for (int i = 0; i < width; ++i)
|
||||
addRectangle(Point(i,i), Point(-1-i, -1-i), colorLine);
|
||||
addRectangle(Point(i,i), Point(-1-i*2, -1-i*2), colorLine);
|
||||
}
|
||||
|
||||
SimpleLine::SimpleLine(Point pos1, Point pos2, ColorRGBA color) :
|
||||
|
@@ -699,4 +699,5 @@ void SelectableSlot::setSelectionWidth(int width)
|
||||
{
|
||||
OBJECT_CONSTRUCTION_CAPTURING(255-DISPOSE);
|
||||
selection = std::make_shared<TransparentFilledRectangle>( selection->pos - pos.topLeft(), Colors::TRANSPARENCY, Colors::YELLOW, width);
|
||||
selectSlot(selected);
|
||||
}
|
||||
|
Reference in New Issue
Block a user