Display metatile selection dimensions
Some checks failed
Build Porymap / build-linux (, 5.14.2) (push) Has been cancelled
Build Porymap / build-linux (, 6.8.*) (push) Has been cancelled
Build Porymap / build-linux (minimal, 5.14.2) (push) Has been cancelled
Build Porymap / build-macos (macos-15-intel) (push) Has been cancelled
Build Porymap / build-macos (macos-latest) (push) Has been cancelled
Build Porymap / build-static-windows (push) Has been cancelled

This commit is contained in:
GriffinR
2026-03-24 23:08:19 -04:00
parent 79f2ff5e78
commit 8e672b4f58
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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();
}