Add dividing line for tilesets in Tileset Editor

This commit is contained in:
GriffinR
2024-12-18 14:25:51 -05:00
parent 883087d161
commit 64a9e2cacb
10 changed files with 60 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ public:
this->showGrid = false;
this->showTilesetEditorMetatileGrid = false;
this->showTilesetEditorLayerGrid = true;
this->showTilesetEditorDivider = false;
this->monitorFiles = true;
this->tilesetCheckerboardFill = true;
this->theme = "default";
@@ -119,6 +120,7 @@ public:
bool showGrid;
bool showTilesetEditorMetatileGrid;
bool showTilesetEditorLayerGrid;
bool showTilesetEditorDivider;
bool monitorFiles;
bool tilesetCheckerboardFill;
QString theme;

View File

@@ -88,6 +88,7 @@ private slots:
void on_actionShow_UnusedTiles_toggled(bool checked);
void on_actionMetatile_Grid_triggered(bool checked);
void on_actionLayer_Grid_triggered(bool checked);
void on_actionShow_Tileset_Divider_triggered(bool checked);
void on_actionUndo_triggered();

View File

@@ -23,7 +23,8 @@ public:
QVector<uint16_t> usedMetatiles;
bool selectorShowUnused = false;
bool selectorShowCounts = false;
bool showGrid;
bool showGrid = false;
bool showDivider = false;
protected:
void mousePressEvent(QGraphicsSceneMouseEvent*);
@@ -44,6 +45,7 @@ private:
int numRows(int numMetatiles);
int numRows();
void drawGrid();
void drawDivider();
void drawFilters();
void drawUnused();
void drawCounts();

View File

@@ -33,6 +33,7 @@ public:
QVector<uint16_t> usedTiles;
bool showUnused = false;
bool showDivider = false;
protected:
void mousePressEvent(QGraphicsSceneMouseEvent*);