-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ui): switch to TextBounds for UI sizing
The UI no longer uses GetTextBoundsAsync to size the UI based on its contents. This should be more performant and fix various issues, the main issue being that the UI was not sized correctly (elements would overflow) - this was very easy to reproduce on higher (1440p+) resolutions from my testing, but it's probably still possible to reproduce on lower resolutions such as 1080p. Text preloading (previously used to avoid issues with GetTextBounds) has also been removed; the UI should resize properly once the font has been loaded.
- Loading branch information
1 parent
c982672
commit 25b0068
Showing
11 changed files
with
178 additions
and
291 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.