Move map cursor UI and grid to foreground

This commit is contained in:
GriffinR
2021-12-12 12:19:59 -05:00
committed by huderlem
parent 39cd1d335b
commit 36dc1c6649
13 changed files with 118 additions and 75 deletions

View File

@@ -20,11 +20,12 @@ public:
void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override
{
if (!(*enabled)) return;
painter->setPen(this->color);
painter->drawRect(-2, -2, this->width + 3, this->height + 3);
painter->drawRect(x() - 2, y() - 2, this->width + 3, this->height + 3);
painter->setPen(QColor(0, 0, 0));
painter->drawRect(-3, -3, this->width + 5, this->height + 5);
painter->drawRect(-1, -1, this->width + 1, this->height + 1);
painter->drawRect(x() - 3, y() - 3, this->width + 5, this->height + 5);
painter->drawRect(x() - 1, y() - 1, this->width + 1, this->height + 1);
}
void updateLocation(int x, int y);
bool *enabled;