mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Increase opacity for new objects
This commit is contained in:
@@ -390,7 +390,7 @@ void SelectionObjectsLayer::draw()
|
|||||||
//show translation
|
//show translation
|
||||||
if(selectionMode == SelectionMode::MOVEMENT && (shift.x() || shift.y()))
|
if(selectionMode == SelectionMode::MOVEMENT && (shift.x() || shift.y()))
|
||||||
{
|
{
|
||||||
painter.setOpacity(0.5);
|
painter.setOpacity(0.7);
|
||||||
auto newPos = QPoint(obj->getPosition().x, obj->getPosition().y) + shift;
|
auto newPos = QPoint(obj->getPosition().x, obj->getPosition().y) + shift;
|
||||||
handler->drawObjectAt(painter, obj, newPos.x(), newPos.y());
|
handler->drawObjectAt(painter, obj, newPos.x(), newPos.y());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user