diff options
Diffstat (limited to 'pokemod/MapEffect.cpp')
| -rw-r--r-- | pokemod/MapEffect.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp index 4b2fd649..6d29a89c 100644 --- a/pokemod/MapEffect.cpp +++ b/pokemod/MapEffect.cpp @@ -112,6 +112,7 @@ QDomElement MapEffect::save() const void MapEffect::setName(const QString& name) { m_name = name; + emit(changed()); } void MapEffect::setCoordinate(const Point& coordinate) @@ -122,11 +123,13 @@ void MapEffect::setCoordinate(const Point& coordinate) return; } m_coordinate = coordinate; + emit(changed()); } void MapEffect::setExistFlag(const Flag& existFlag) { m_existFlag = existFlag; + emit(changed()); } void MapEffect::setSkin(const QPixmap& skin) @@ -137,6 +140,7 @@ void MapEffect::setSkin(const QPixmap& skin) return; } m_skin = skin; + emit(changed()); } void MapEffect::setEffect(const int effect) @@ -149,6 +153,7 @@ void MapEffect::setEffect(const int effect) m_effect = effect; m_value1 = INT_MAX; m_value2 = INT_MAX; + emit(changed()); } void MapEffect::setValue1(const int value1) @@ -159,6 +164,7 @@ void MapEffect::setValue1(const int value1) return; } m_value1 = value1; + emit(changed()); } void MapEffect::setValue2(const int value2) @@ -192,6 +198,7 @@ void MapEffect::setValue2(const int value2) return; } m_value2 = value2; + emit(changed()); } void MapEffect::setDirection(const int direction) @@ -202,16 +209,19 @@ void MapEffect::setDirection(const int direction) return; } m_direction = direction; + emit(changed()); } void MapEffect::setIsGhost(const bool isGhost) { m_isGhost = isGhost; + emit(changed()); } void MapEffect::setCanMove(const bool canMove) { m_canMove = canMove; + emit(changed()); } void MapEffect::setDialog(const int dialog) @@ -222,6 +232,7 @@ void MapEffect::setDialog(const int dialog) return; } m_dialog = dialog; + emit(changed()); } QString MapEffect::name() const |
