Add opacity to scripting overlay

This commit is contained in:
GriffinR
2021-12-31 16:12:04 -05:00
committed by huderlem
parent 98f4bae728
commit fd88184b47
6 changed files with 46 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ public:
void setOverlaysY(int y);
void setOverlaysPosition(int x, int y);
void moveOverlays(int deltaX, int deltaY);
void setOverlaysOpacity(int opacity);
public:
QMap<int, Overlay*> overlayMap;

View File

@@ -75,12 +75,15 @@ public:
this->x = 0;
this->y = 0;
this->hidden = false;
this->opacity = 1.0;
}
~Overlay() {
this->clearItems();
}
bool getHidden();
void setHidden(bool hidden);
int getOpacity();
void setOpacity(int opacity);
int getX();
int getY();
void setX(int x);
@@ -99,6 +102,7 @@ private:
int x;
int y;
bool hidden;
qreal opacity;
};
#endif // OVERLAY_H