1.12.2 Options GUI #18

Merged
embeddedt merged 8 commits from karnatour/celeritas:stonecutter into stonecutter 2025-08-04 12:29:10 -04:00
Contributor

This PR restores the modern options GUI to version 1.12.2.

While testing it, I noticed two bugs that I couldn't figure out, but they're pretty rare in real-world use cases.

  1. When the GUI is set to AUTO, all pages are broken. I "fixed" this by setting the maximum possible scale when AUTO is selected. (So this could be considered as fixed ?)
  2. When the GUI scale is too large, for example, if I set 3x at my full-screen resolution and then change the window size to something smaller where 3x scale wouldn't be possible, pages with a vertical scroll bar get broken. I don't know if this is a bug in my port or if it is caused by the vanilla GuiScreen.

I wired up the options states to Celeritas and tried to implement new features such as the CPU Render-ahead limit. Features that are missing in 1.12.2, I marked as disabled. The question is if we should delete them or someday you will implement them ?
Another problem is that 1.10.2 is not buildable after these changes, should I mark all gui code with stonecutter or try making 1.10.2 work ?? I don't know how much 1.10.2 vanilla gui code is different from 1.12.2.

This PR restores the modern options GUI to version 1.12.2. While testing it, I noticed two bugs that I couldn't figure out, but they're pretty rare in real-world use cases. 1. When the GUI is set to AUTO, all pages are broken. I "fixed" this by setting the maximum possible scale when AUTO is selected. (So this could be considered as fixed ?) 2. When the GUI scale is too large, for example, if I set 3x at my full-screen resolution and then change the window size to something smaller where 3x scale wouldn't be possible, pages with a vertical scroll bar get broken. I don't know if this is a bug in my port or if it is caused by the vanilla GuiScreen. I wired up the options states to Celeritas and tried to implement new features such as the CPU Render-ahead limit. Features that are missing in 1.12.2, I marked as disabled. The question is if we should delete them or someday you will implement them ? Another problem is that 1.10.2 is not buildable after these changes, should I mark all gui code with stonecutter or try making 1.10.2 work ?? I don't know how much 1.10.2 vanilla gui code is different from 1.12.2.
karnatour added 5 commits 2025-08-04 07:42:16 -04:00
embeddedt added 2 commits 2025-08-04 12:22:16 -04:00
embeddedt added 1 commit 2025-08-04 12:26:59 -04:00
embeddedt approved these changes 2025-08-04 12:27:04 -04:00
embeddedt left a comment
Owner

A bunch of this needs to be moved into the common project in the future (i.e. I do not want to duplicate the implementation a third time for 1.7.10). But that doesn't need to block this PR.

A bunch of this needs to be moved into the common project in the future (i.e. I do not want to duplicate the implementation a third time for 1.7.10). But that doesn't need to block this PR.
embeddedt merged commit 91ef370b84 into stonecutter 2025-08-04 12:29:10 -04:00
embeddedt referenced this issue from a commit 2025-08-04 12:29:12 -04:00
embeddedt referenced this issue from a commit 2025-08-05 19:14:19 -04:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: embeddedt/celeritas#18