diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-27 13:08:36 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-27 13:08:36 +0100 |
| commit | eb6f4d6d8cc6d895c7c6185b20eb93da1fdd8b3b (patch) | |
| tree | 363713e712254d9248866f0176780af301284525 /Source/MapEditor/mainwindow.h | |
| parent | 88526570da1d3b8db0db11e232172ab9e8175d8a (diff) | |
| download | airport-eb6f4d6d8cc6d895c7c6185b20eb93da1fdd8b3b.tar.gz | |
* Added "Save map" function to MapEditor.
* Tiles can be now modified runtime.
+ tileset.ini now allows configuring tileset layout in an easy way.
Diffstat (limited to 'Source/MapEditor/mainwindow.h')
| -rw-r--r-- | Source/MapEditor/mainwindow.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/MapEditor/mainwindow.h b/Source/MapEditor/mainwindow.h index d9c04d8..52bb957 100644 --- a/Source/MapEditor/mainwindow.h +++ b/Source/MapEditor/mainwindow.h @@ -9,6 +9,10 @@ #include "mygraphicsscene.h"
#include "ui_mainwindow.h"
+#define TILE_SIZE 64
+#define DATA_HEADER_SIZE 0x3F
+#define TILE_MIRROR_FLAG ((char) 0x80)
+
namespace Ui {
class MainWindow;
}
@@ -24,15 +28,24 @@ public: private:
Ui::MainWindow *ui;
- bool checkFile(QFile &f);
+ bool checkFile(QFile &f, QFile::OpenModeFlag flags = QFile::ReadOnly);
void appSettings(void);
+ void loadTilesetData(void);
QString _last_dir;
MyGraphicsScene *gscene;
+ int level_size;
+ QByteArray map_buffer;
+ int selected_item;
+ QHash<int, QString> tilesetData;
protected slots:
void onLoadMap(void);
void onCreateMap(void);
void onProcessMapFile(QByteArray data);
+ void onMapItemClicked(QPointF);
+ void onNoItemSelected(void);
+ void onListItemSelected(void);
+ void onSaveMap(void);
};
#endif // MAINWINDOW_H
|
