diff --git a/CHANGELOG.md b/CHANGELOG.md index 6651d841..af00b5f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d - Porymap now saves map and encounter json data in an order consistent with the upstream repos. This will provide more comprehensible diffs when files are saved. - Update Porymap icon. - The "Map" and "Events" tabs now render using the same view, so jumping between them is smooth. +- Extend connection min and max offsets to player's view boundary, rather than the map's boundary. ### Fixed - Fix bug where pressing TAB key did not navigate through widgets in the wild encounter tables. diff --git a/src/ui/connectionpixmapitem.cpp b/src/ui/connectionpixmapitem.cpp index c0a25bb9..221c1911 100644 --- a/src/ui/connectionpixmapitem.cpp +++ b/src/ui/connectionpixmapitem.cpp @@ -15,16 +15,16 @@ void ConnectionPixmapItem::render(qreal opacity) { int ConnectionPixmapItem::getMinOffset() { if (this->connection->direction == "up" || this->connection->direction == "down") - return 1 - (this->pixmap().width() / 16); + return -(this->pixmap().width() / 16) - 6; else - return 1 - (this->pixmap().height() / 16); + return -(this->pixmap().height() / 16) - 6; } int ConnectionPixmapItem::getMaxOffset() { if (this->connection->direction == "up" || this->connection->direction == "down") - return this->baseMapWidth - 1; + return this->baseMapWidth + 6; else - return this->baseMapHeight - 1; + return this->baseMapHeight + 6; } QVariant ConnectionPixmapItem::itemChange(GraphicsItemChange change, const QVariant &value)