1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00
Commit Graph

173 Commits

Author SHA1 Message Date
Michael Steenbeek
92f493b28a Merge pull request #25010 from Gymnasiast/refactor/more-code-style
More code style refactors
2025-08-21 22:26:52 +02:00
Gymnasiast
5365e10196 Rename MaxBankLoanInterestRate to kMaxBankLoanInterestRate 2025-08-21 22:12:42 +02:00
Gymnasiast
9c810d9e32 Update ParkData fields to new code style 2025-08-21 22:12:41 +02:00
Gymnasiast
8fd9658cd3 Update dropdown item fields and functions to new code style 2025-08-21 21:33:22 +02:00
Tulio Leao
80b5187da9 Rename ride_rating to RideRating_t 2025-08-17 08:49:03 -03:00
Tulio Leao
8a542a348d Move MakeRideRating into namespace 2025-08-17 08:47:21 -03:00
Aaron van Geffen
51f17c5754 Move .bankLoanInterestRate into ParkData struct 2025-08-13 23:15:24 +02:00
Aaron van Geffen
e300ca8277 Move .maxBankLoan into ParkData struct 2025-08-13 22:29:25 +02:00
Aaron van Geffen
68a4991971 Move .bankLoan into ParkData struct 2025-08-13 21:24:06 +02:00
Garv Changrani
b47506dd90 Close #24665: Don't return empty strings with quotes for std::string 2025-07-02 13:33:54 +02:00
Matt
d8964c5641 Fix #24509: Use std::sort instead of std::stable_sort (#24664) 2025-06-23 18:46:31 +02:00
Michael Steenbeek
7b322d825a Refactor constants in window .cpp files 2025-06-16 23:10:47 +02:00
Gymnasiast
81e3181ebb Pass ScreenSize to makeWindowShim() 2025-06-10 23:21:15 +02:00
Gymnasiast
bdba89f428 Pass ScreenSize to window creation functions 2025-06-10 23:20:28 +02:00
Aaron van Geffen
ec3f9d1272 Disable scenario options rather than hiding them (#24559) 2025-06-10 20:05:06 +00:00
Gymnasiast
650fa3ae2e Rename WindowWidgetType to WidgetType and change for new code style 2025-06-10 19:55:12 +02:00
Gymnasiast
149468406b Update WindowColour enum for new code style 2025-06-10 19:53:12 +02:00
Gymnasiast
86e265f093 Make widget creation functions lowerCamelCase 2025-06-10 19:51:21 +02:00
Aaron van Geffen
0779b9f0ab Replace window shim and widget macros with constexpr functions (#24566) 2025-06-07 23:02:14 +02:00
Harry Hopkinson
cd63cd34d1 Close #24400: Sort rides with preservation order alphabetically 2025-05-23 12:48:06 +00:00
Matt
6335c31336 Rename DrawPixelInfo to RenderTarget (#24339)
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget

* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
Aaron van Geffen
3f87e2b67a Centralise ResizeFrame in WindowBase and call when setting widgets or resizing 2025-04-11 20:37:54 +02:00
Aaron van Geffen
bbcc0e2413 Rework manually drawn labels into label widgets
* Introduce label widgets for land tab

* Introduce label widgets for guest tab

* Introduce label widgets for rides tab

* Introduce label widgets for financial tab
2025-03-28 16:04:02 +01:00
Aaron van Geffen
9b5596d18b Store tab sizes in ScreenSize structs 2025-03-28 16:01:31 +01:00
Aaron van Geffen
c881d2e17e Internally rename 'park' tab into 'land' tab for consistency 2025-03-28 15:55:20 +01:00
Aaron van Geffen
b0b050d42f Add extra editor step for entering scenario details 2025-03-20 16:37:47 +01:00
Aaron van Geffen
50f58d4c4f Change: allow going back in editor when converting a save 2025-03-20 16:34:09 +01:00
Aaron van Geffen
42126cd35d Move 'RCT1 interest' checkbox into the same place as regular interest spinner 2025-03-13 19:18:37 +01:00
Aaron van Geffen
e2d4a25c8a Move 'hard park rating' option to objective tab 2025-03-13 19:15:31 +01:00
Aaron van Geffen
d4478e7814 Fix widget recovery after "no money" toggle 2025-03-13 17:50:34 +01:00
Aaron van Geffen
eca3b4bddd Rework financial options tab with groupboxes 2025-03-13 17:36:41 +01:00
Aaron van Geffen
c2c598e4c2 Add new window titles and tooltips 2025-03-13 16:25:25 +01:00
Aaron van Geffen
d593a50bf7 Split off Scenario Details from Objective tab 2025-03-13 15:56:10 +01:00
Aaron van Geffen
0d141224ba Change dimensions for park tab; use terraform icon 2025-03-13 15:27:05 +01:00
Aaron van Geffen
3a0240f6c4 Move earning model / park entrance price widgets to financial tab 2025-03-13 15:23:07 +01:00
Aaron van Geffen
094a5950b9 Move hard park rating option to finances tab 2025-03-13 14:12:07 +01:00
Aaron van Geffen
49727c62b9 Move difficult guest generation option to guests tab 2025-03-13 14:09:19 +01:00
Aaron van Geffen
11d72d4968 Tweak and use constants more 2025-03-13 14:04:31 +01:00
Aaron van Geffen
807a2fa7c9 Merge objective options into scenario options 2025-03-13 13:57:03 +01:00
Gymnasiast
4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Aaron van Geffen
92212369d4 Skip setting page/widgets if we're already on the page (#23975) 2025-03-12 19:50:19 +01:00
Aaron van Geffen
1dd1564904 Clarify 'guests prefer more/less intense rides' settings (#23937)
* Turn guests' intensity preferences into a dropdown

* Update changelog.txt
2025-03-11 20:10:44 +00:00
Aaron van Geffen
d59580bd80 Remove climate setting from scenario options window 2025-02-01 18:35:36 +01:00
Michael Steenbeek
06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Aaron van Geffen
7a823bf928 Use WindowSetResize to set min/max dimensions in most places (#23929)
* Refactor WindowSetResize to use ScreenSize structs

* Let WindowSetResize return whether or not window was resized

* Use WindowSetResize to set min/max dimensions in most places
2025-03-05 15:58:59 +00:00
73
b9b2c96c97 Rename sprites.h to SpriteIds.h (#23804) 2025-02-13 15:51:46 +00:00
Aaron van Geffen
cf448753c1 Move WindowInvalidate and WidgetInvalidate families into WindowManager (#23692)
* Move WindowInvalidate and WidgetInvalidate families into WindowManager

* Use InvalidateWidget shorthand in more places

* Cut back on UiContext includes

* Cut back on Window.h includes

* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Michael Steenbeek
b0c99fcb6c Refactor more constants to kConstant notation 2025-01-22 16:16:55 +00:00
Aaron van Geffen
a8773dd805 Move WindowClose family into WindowManager (#23646)
* Replace WindowClose() calls with Close method calls where possible

* Move WindowClose family into WindowManager

* Remove UpdateSceneryGroupIndexes hack
2025-01-19 18:49:18 +01:00
Michael Steenbeek
be9f27e4f9 Mass rename constants (#23656) 2025-01-19 15:59:45 +00:00