Change minimum map window size to make the map square at its minimum size#3193
Merged
AaronVanGeffen merged 3 commits intoOpenLoco:masterfrom Aug 14, 2025
Merged
Conversation
AaronVanGeffen
approved these changes
Aug 14, 2025
80bbeb2 to
5df6815
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)


After:
(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)
