mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-23 17:16:17 -05:00
Add opacity to scripting overlay
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user