diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c4a350a..50726a0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project somewhat adheres to [Semantic Versioning](https://semver.org/sp ### Changed - Porymap's .cfg files were replaced with .json. Any fields not listed in a config file are assumed to be the default value. +- The dimensions of the current metatile selection are now displayed above the metatile selector. - Some UI changes to prioritize horizontal space for the map. ### Fixed diff --git a/src/editor.cpp b/src/editor.cpp index 9e521d78..451171c8 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -1122,7 +1122,9 @@ void Editor::onHoveredMetatileSelectionCleared() { } void Editor::onSelectedMetatilesChanged() { - this->cursorMapTileRect->updateSelectionSize(this->metatile_selector_item->getSelectionDimensions()); + const QSize selectionSize = this->metatile_selector_item->getSelectionDimensions(); + this->cursorMapTileRect->updateSelectionSize(selectionSize); + ui->groupBox_SelectedMetatiles->setTitle(QString("Selection (%1x%2)").arg(selectionSize.width()).arg(selectionSize.height())); this->redrawCurrentMetatilesSelection(); }