mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-14 12:57:06 -05:00
more undo commands
- add edit command for duplicating map events - add edit commands for painting map collision - edit commands that delete events now select the proper next event
This commit is contained in:
@@ -14,6 +14,7 @@ public:
|
||||
: MapPixmapItem(map, metatileSelector, settings){
|
||||
this->movementPermissionsSelector = movementPermissionsSelector;
|
||||
this->opacity = opacity;
|
||||
map->setCollisionItem(this);
|
||||
}
|
||||
MovementPermissionsSelector *movementPermissionsSelector;
|
||||
qreal *opacity;
|
||||
@@ -24,6 +25,9 @@ public:
|
||||
virtual void pick(QGraphicsSceneMouseEvent*);
|
||||
void draw(bool ignoreCache = false);
|
||||
|
||||
private:
|
||||
unsigned actionId_ = 0;
|
||||
|
||||
signals:
|
||||
void mouseEvent(QGraphicsSceneMouseEvent *, CollisionPixmapItem *);
|
||||
void hoveredMapMovementPermissionChanged(int, int);
|
||||
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
void paintSmartPath(int x, int y, bool fromScriptCall = false);
|
||||
static QList<int> smartPathTable;
|
||||
|
||||
unsigned eventId_ = 0;
|
||||
unsigned actionId_ = 0;
|
||||
|
||||
signals:
|
||||
void startPaint(QGraphicsSceneMouseEvent *, MapPixmapItem *);
|
||||
|
||||
Reference in New Issue
Block a user