mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 12:26:05 -05:00
Add menu to 'add event' button
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "editor.h"
|
||||
#include "event.h"
|
||||
#include <QCheckBox>
|
||||
#include <QPainter>
|
||||
#include <QMouseEvent>
|
||||
@@ -1297,10 +1298,6 @@ void Editor::selectMapEvent(DraggablePixmapItem *object, bool toggle) {
|
||||
}
|
||||
}
|
||||
|
||||
DraggablePixmapItem* Editor::addNewEvent() {
|
||||
return addNewEvent("object");
|
||||
}
|
||||
|
||||
DraggablePixmapItem* Editor::addNewEvent(QString event_type) {
|
||||
if (project && map) {
|
||||
Event *event = new Event;
|
||||
|
||||
Reference in New Issue
Block a user