-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Make title bar bigger in Enlarged UI mode #23590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
598b4d7
to
c2aa949
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
c563db9
to
cb36e98
Compare
cb36e98
to
a46b505
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
a46b505
to
9fe2248
Compare
9fe2248
to
2327ec5
Compare
Refit the code to make more efficient use of the foundations laid by On a side note, I think we should just fold Below is a screencast of what the PR looks like in its current state. Screen.Recording.2025-03-01.at.15.39.11.mp4 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
76a218f
to
ffa1ec6
Compare
174b5c9
to
8e7eafc
Compare
e38a9d2
to
e147cf2
Compare
e147cf2
to
dcddb54
Compare
This comment was marked as resolved.
This comment was marked as resolved.
fd0cb32
to
c915ef6
Compare
// Not sure why plugin windows have to be treated differently, | ||
// but they currently show a deviation if we don't. | ||
if (w.classification == WindowClass::Custom) | ||
{ | ||
w.min_height += w.getTitleBarDiffTarget(); | ||
w.max_height += w.getTitleBarDiffTarget(); | ||
} | ||
else | ||
{ | ||
w.min_height += w.getTitleBarDiffNormal(); | ||
w.max_height += w.getTitleBarDiffNormal(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This distinction has me stumped. If leave just the else
block, however, plugin windows will look off. Conversely, if I leave just the other block, in-game windows like Park and NewRide will look slightly too short.
It works fine, this way, but yes, it has me stumped.
f177a51
to
6884495
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fa3f6b4
to
0509091
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0509091
to
cd286c8
Compare
The hydra has been vanquished! 🙌 |
- Feature: [#24206] [Plugin] Add APIs for breaking down rides, reading the current breakdown, and for fixing broken down rides. - Improved: [#20073] The OpenGL drawing engine now supports screen invalidation which avoids the redrawing of unchanged regions. - Improved: [#21767] RCT Classic for macOS can now be used as the source game. - Improved: [#23590] Title bars are now drawn bigger when “Enlarged UI” is enabled. - Improved: [#23626] Add small, medium and large flat and sloped turns, S-bends and diagonal track to the Go-Karts. - Improved: [#23982] The scenario objective window has been merged into the scenario options window. - Improved: [#24233] RCT Classic+ from Apple Arcade can now be used as the source game, and is detected automatically. - Improved: [#24260] Better performance on parks that have a lot of Guests and Entertainers. - Improved: [#24319] RCT Classic installs via Steam are now detected automatically on Windows. - Change: [#23803] Lightning strikes and thunder now happen at the same frequency independently of the game speed. - Change: [#23857] Replace display options tab with custom sprites. - Change: [#24069] [Plugin] Plugins are now available in the scenario editor and track designer. - Change: [#24135] Compress Emscripten js/wasm files. - Change: [#24194] The advanced options tab has been reworked to make it easier to find the RCT1 path setting. - Change: [#24235] Small changes to RCT1 theme. - Change: [#24236] Controls and Interface options now both have their own tabs in the Options window. - Change: [#24308] “Software” and “Software (hardware display)” renderers have been merged into a single “Software” renderer. - Change: [#24317] The scenery window now shows at least one row of scenery objects, even if there are multiple rows of tabs. - Fix: [#18479] Tile elements ordered beneath water do not draw correctly. - Fix: [#19782] Game stops counting inversions and golf holes after 31 (original bug). - Fix: [#21207] Track List window gets positioned incorrectly. - Fix: [#21919] Non-recolourable cars still show colour picker (original bug). - Fix: [#22182] [Plugin] Crash when using map.getAllEntities("car"). - Fix: [#22634] Asset packs with sound effect overrides are not loaded correctly at startup. - Fix: [#23108] Missing pieces on Hypercoaster and Hyper-Twister, even with the ‘all drawable track pieces’ cheat enabled. - Fix: [#24013] Failure to load a scenario preview image (minimap) could lead to an uncaught exception error message. - Fix: [#24045] [Plugin] Data storage is not cleared when converting save game to scenario. - Fix: [#24121] Checkbox labels run beyond the edge of the window if they’re too long to fit. - Fix: [#24142] [Plugin] Track origin is miscalculated on downward slopes. - Fix: [#24220] Narrow station platforms have missing sides on certain rotations. - Fix: [#24286] Steam installs of RCT1 and RCT2 are not autodetected on macOS. - Fix: [#24310] [Plugin] Missing invalidation on various plugin api setters for entities.
Due to our window system being old and clunky, this required quite a lot of refactoring, mostly to replace coordinates being calculated from the topleft of the window with calculating them from the top left of the window body instead. Also splits the title bar and window body height, as windows have no good way of determining their full height in advance - and frankly, how big or small the title bars are is more of a concern to the window manager than to the window itself anyway.
Screen.Recording.2025-03-01.at.15.39.11.mp4