diff options
-rw-r--r-- | sigscript/MapEffectWrapper.cpp | 6 | ||||
-rw-r--r-- | sigscript/MapEffectWrapper.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/MapEffectWrapper.cpp b/sigscript/MapEffectWrapper.cpp index c9b61296..491a3d3c 100644 --- a/sigscript/MapEffectWrapper.cpp +++ b/sigscript/MapEffectWrapper.cpp @@ -48,10 +48,10 @@ QString MapEffectWrapper::name() const return m_effect->name(); } -QPoint MapEffectWrapper::position() const +QRect MapEffectWrapper::area() const { - ALLOW_OVERRIDE_SO(effect, QPoint, position); - return m_effect->position(); + ALLOW_OVERRIDE_SO(effect, QRect, area); + return m_effect->area(); } SkinWrapper* MapEffectWrapper::skin() diff --git a/sigscript/MapEffectWrapper.h b/sigscript/MapEffectWrapper.h index 3f344fe7..52b6d84c 100644 --- a/sigscript/MapEffectWrapper.h +++ b/sigscript/MapEffectWrapper.h @@ -43,7 +43,7 @@ class SIGSCRIPT_EXPORT MapEffectWrapper : public ObjectWrapper static MapEffectWrapper* create(const Sigmod::MapEffect* effect, MapWrapper* parent); Q_SCRIPTABLE QString name() const; - Q_SCRIPTABLE QPoint position() const; + Q_SCRIPTABLE QRect area() const; Q_SCRIPTABLE SkinWrapper* skin(); Q_SCRIPTABLE bool isGhost() const; Q_SCRIPTABLE Sigcore::Script script() const; |