mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-01 20:36:42 -05:00
Add Tileset Editor window
This commit is contained in:
@@ -71,6 +71,7 @@ public:
|
||||
void updatePrimaryTileset(QString tilesetLabel);
|
||||
void updateSecondaryTileset(QString tilesetLabel);
|
||||
void toggleBorderVisibility(bool visible);
|
||||
Tileset *getCurrentMapPrimaryTileset();
|
||||
|
||||
DraggablePixmapItem *addMapEvent(Event *event);
|
||||
void selectMapEvent(DraggablePixmapItem *object);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "project.h"
|
||||
#include "map.h"
|
||||
#include "editor.h"
|
||||
#include "tileseteditor.h"
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
@@ -123,8 +124,11 @@ private slots:
|
||||
|
||||
void resetMapViewScale();
|
||||
|
||||
void on_actionTileset_Editor_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
TilesetEditor *tilesetEditor;
|
||||
QStandardItemModel *mapListModel;
|
||||
QList<QStandardItem*> *mapGroupsModel;
|
||||
QMap<QString, QModelIndex> mapListIndexes;
|
||||
|
||||
26
include/ui/tileseteditor.h
Normal file
26
include/ui/tileseteditor.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef TILESETEDITOR_H
|
||||
#define TILESETEDITOR_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "project.h"
|
||||
|
||||
namespace Ui {
|
||||
class TilesetEditor;
|
||||
}
|
||||
|
||||
class TilesetEditor : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TilesetEditor(QWidget *parent = nullptr, Project *project = nullptr);
|
||||
~TilesetEditor();
|
||||
|
||||
private:
|
||||
void displayPrimaryTilesetTiles();
|
||||
Ui::TilesetEditor *ui;
|
||||
Project *project;
|
||||
QString primaryTilesetLabel;
|
||||
};
|
||||
|
||||
#endif // TILESETEDITOR_H
|
||||
Reference in New Issue
Block a user