Skip to content

Change minimum map window size to make the map square at its minimum size#3193

Merged
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
LeeSpork:square-minimum-map
Aug 14, 2025
Merged

Change minimum map window size to make the map square at its minimum size#3193
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom
LeeSpork:square-minimum-map

Conversation

@LeeSpork
Copy link
Copy Markdown
Contributor

@LeeSpork LeeSpork commented Aug 8, 2025

This PR is an alternative to #3191.

As mentioned in the code comments, the constraints I chose to determine the new minimum window size was to make the map be square when at minimum size, and to not allow the map to be thinner than the part of the window with the key. This means the user can now make the map window somewhat thinner, but not as short. (The initial window size when the player opens the window for the first time remains unchanged.)

Before: (Minimum window size in original Locomotion)
image
After:
image

(Dotted black square on map in both screenshots above are indicative of 1280x720 game resolution and fully zoomed in).

Additional screenshot: hovering over an item on the industries tab (the key having more items forces the window to be a little taller) (1080p game resolution)
image

@AaronVanGeffen AaronVanGeffen added the changelog Requires a changelog entry label Aug 8, 2025
@AaronVanGeffen AaronVanGeffen enabled auto-merge (squash) August 14, 2025 19:03
@AaronVanGeffen AaronVanGeffen added this to the v25.07+ milestone Aug 14, 2025
@AaronVanGeffen AaronVanGeffen merged commit 28e9bfd into OpenLoco:master Aug 14, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog Requires a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants