mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
moveChildForeground
This commit is contained in:
@@ -90,6 +90,7 @@ CArtPlace::CArtPlace(Point position, const CArtifactInstance * art)
|
||||
|
||||
image = std::make_shared<CAnimImage>(AnimationPath::builtin("artifact"), imageIndex);
|
||||
image->disable();
|
||||
moveSelectionForeground();
|
||||
}
|
||||
|
||||
const CArtifactInstance * CArtPlace::getArt() const
|
||||
|
||||
@@ -714,3 +714,8 @@ void SelectableSlot::setSelectionWidth(int width)
|
||||
selection = std::make_shared<TransparentFilledRectangle>( selection->pos - pos.topLeft(), Colors::TRANSPARENCY, Colors::YELLOW, width);
|
||||
selectSlot(selected);
|
||||
}
|
||||
|
||||
void SelectableSlot::moveSelectionForeground()
|
||||
{
|
||||
moveChildForeground(selection.get());
|
||||
}
|
||||
|
||||
@@ -261,4 +261,5 @@ public:
|
||||
void selectSlot(bool on);
|
||||
bool isSelected() const;
|
||||
void setSelectionWidth(int width);
|
||||
void moveSelectionForeground();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user