mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 20:36:19 -05:00
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
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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user