Merge pull request #673 from GriffinRichards/event-selection

Add event selection settings
This commit is contained in:
GriffinR
2025-02-14 13:11:38 -05:00
committed by GitHub
7 changed files with 63 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
#include <QDateTime>
#include <QUrl>
#include <QVersionNumber>
#include <QGraphicsPixmapItem>
#include "events.h"
@@ -84,6 +85,7 @@ public:
this->lastUpdateCheckTime = QDateTime();
this->lastUpdateCheckVersion = porymapVersion;
this->rateLimitTimes.clear();
this->eventSelectionShapeMode = QGraphicsPixmapItem::MaskShape;
}
void addRecentProject(QString project);
void setRecentProjects(QStringList projects);
@@ -138,6 +140,7 @@ public:
QDateTime lastUpdateCheckTime;
QVersionNumber lastUpdateCheckVersion;
QMap<QUrl, QDateTime> rateLimitTimes;
QGraphicsPixmapItem::ShapeMode eventSelectionShapeMode;
QByteArray wildMonChartGeometry;
QByteArray newMapDialogGeometry;
QByteArray newLayoutDialogGeometry;

View File

@@ -115,6 +115,8 @@ public:
DraggablePixmapItem *addNewEvent(Event::Type type);
void updateSelectedEvents();
void duplicateSelectedEvents();
void redrawAllEvents();
void redrawEvents(const QList<Event*> &events);
void redrawEventPixmapItem(DraggablePixmapItem *item);
QList<DraggablePixmapItem *> getEventPixmapItems();