feat: Improved alternate resolution support #23
+24
−9
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.






Description
Added ultrawide resolution support. In general, improves support for alternate resolutions. Addresses #3.
Fair note: I'm not a Unity dev, and most of what I've done here was based on some googling I did in the last 24 hours. As such, I'm not entirely sure this is the best solution for this.
Primarily what I've done is change the pivot of the menus and theScreenMatchModeattribute to properly scale things in resolutions wider than 1920 x 1080. This isn't a perfect solution: due to scaling, I needed to move some of the panels upwards to prevent them from clipping into each other. This causes an issue with the top bar drop down menus, especially the "Cheats" menu. See the screenshots in testing for an example of this.I've made some additional changes that negate the need for moving the panels. Instead, images are stretched according to the current resolution. This requires a restart whenever the resolution is changed but otherwise provides a cleaner layout.
Testing
See the comments below for newer screenshots of the changes.
Tested with both 1920 x 1080 and 3440 x 1440 resolutions.
1920 x 1080:
3440 x 1440: