diff --git a/forms/tileseteditor.ui b/forms/tileseteditor.ui index 3a2a2efb..54919db6 100644 --- a/forms/tileseteditor.ui +++ b/forms/tileseteditor.ui @@ -25,7 +25,7 @@ 0 0 - 308 + 386 539 @@ -99,37 +99,54 @@ - QFrame::StyledPanel + QFrame::NoFrame QFrame::Raised + + 0 + + + 0 + + + 0 + + + 0 + - QFrame::StyledPanel + QFrame::NoFrame QFrame::Raised + + 0 + + + 0 + + + 0 + + + 0 + - - - QFrame::StyledPanel + + + Tile Properties - - QFrame::Raised + + false - - - - - Y Flip - - - + @@ -147,6 +164,26 @@ + + + + Y Flip + + + + + + + + 0 + 0 + + + + Selection + + + @@ -164,30 +201,65 @@ + + + + + 16 + 16 + + + + + 32 + 32 + + + + QFrame::StyledPanel + + + Qt::ScrollBarAlwaysOff + + + Qt::ScrollBarAlwaysOff + + + - - - QFrame::StyledPanel + + + Metatile Properties - - QFrame::Raised + + false - + + false + + - + + + Bottom/Top + + + + + - 32 + 64 32 64 - 64 + 32 @@ -198,6 +270,26 @@ + + + + Metatile Behavior + + + + + + + + + + Layer Type + + + + + + @@ -214,8 +306,8 @@ 0 0 - 309 - 409 + 386 + 361 @@ -288,85 +380,6 @@ - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - - 0 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - Bottom/Top - - - - - - - - 64 - 32 - - - - - 64 - 32 - - - - Qt::ScrollBarAlwaysOff - - - Qt::ScrollBarAlwaysOff - - - - - - - Metatile Behavior - - - - - - - - - - Layer Type - - - - - - - - - - - - diff --git a/src/ui/tileseteditor.cpp b/src/ui/tileseteditor.cpp index c61116b4..540c5bf4 100644 --- a/src/ui/tileseteditor.cpp +++ b/src/ui/tileseteditor.cpp @@ -126,16 +126,16 @@ void TilesetEditor::drawSelectedTiles() { this->selectedTileScene->clear(); QList tiles = this->tileSelector->getSelectedTiles(); QPoint dimensions = this->tileSelector->getSelectionDimensions(); - QImage selectionImage(32 * dimensions.x(), 32 * dimensions.y(), QImage::Format_RGBA8888); + QImage selectionImage(16 * dimensions.x(), 16 * dimensions.y(), QImage::Format_RGBA8888); QPainter painter(&selectionImage); int tileIndex = 0; for (int j = 0; j < dimensions.y(); j++) { for (int i = 0; i < dimensions.x(); i++) { QImage tileImage = getColoredTileImage(tiles.at(tileIndex), this->primaryTileset, this->secondaryTileset, this->paletteId) .mirrored(this->tileXFlip, this->tileYFlip) - .scaled(32, 32); + .scaled(16, 16); tileIndex++; - painter.drawImage(i * 32, j * 32, tileImage); + painter.drawImage(i * 16, j * 16, tileImage); } }