1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00
Commit Graph

291 Commits

Author SHA1 Message Date
Gymnasiast
f97b6e8cbe Pass inspection interval as a parameter to game actions 2025-12-25 12:25:08 +01:00
mix
6414cf26a3 Rename InputFlag::unk6 to allowRightMouseRemoval 2025-12-14 02:51:38 +00:00
Spacek531
c5cd9ac5de Rename SequenceFlag flags again 2025-12-12 18:35:43 +01:00
Spacek531
fa124330fa Convert flags field to FlagHolder 2025-12-12 18:35:40 +01:00
Gymnasiast
c744b76632 Rename members of GameActions::Result 2025-12-12 12:11:49 +01:00
Gymnasiast
5ffee91c8a Rename members of GameActions::Status 2025-12-12 11:41:49 +01:00
Michael Steenbeek
31344adc61 Fix missed 'using' in Finance.h 2025-12-11 00:18:27 +00:00
Michael Steenbeek
355bb5d58d Refactor GAME_COMMAND_FLAG_* to enum+FlagHolder 2025-12-11 00:12:21 +01:00
mix
f3cedcc1d9 Remove manual map selection invalidation calls 2025-11-23 00:17:15 +00:00
Michał Janiszewski
c20d9add1c Capture track location for callback by value (#25455)
Previously it was getting captured by reference and the action using it
was queued up for execution in next tick, resulting in reference going
out of scope. Capturing it by value fixes this issue as it is POD
struct.
2025-11-09 01:25:02 +01:00
mix
ed25fbcb3a Fix track design mini preview enlarged UI position 2025-11-09 01:20:34 +01:00
Michael Steenbeek
32b034a8a1 Merge pull request #25427 from Gymnasiast/refactor/string-drawing-2
Refactor string drawing
2025-11-06 13:46:56 +01:00
mix
b216ebd11e Rename gPlacingTrackDesign to _placingTrackDesign 2025-11-05 14:11:30 +00:00
mix
719dcbb650 Prevent track design ghost add/delete when shift height is invalid 2025-11-05 04:19:05 +00:00
mix
8d93ac4448 Fix track design paths breaking if ghost is removed after placing 2025-11-05 04:19:05 +00:00
Gymnasiast
124352c922 Update members of TextAlignment 2025-11-03 23:25:29 +01:00
Matt
0630cc6f71 Fix #20486: Multiplayer desync when placing track designs without any scenery. (#25337)
* Fix #20486: Placing track designs with scenery disabled desyncs

* Remove pointless error logging, too much log spam

* Don't entirely disable all scenery when one element is obstructed

* Update changelog.txt

* Bump up network version

* clang-format
2025-10-16 23:05:30 +02:00
Gymnasiast
1f8c9af9ce Rename methods of InputManager 2025-10-01 20:35:35 +02:00
Gymnasiast
45912ec9a3 Rename members of SoundId 2025-10-01 20:35:34 +02:00
Michael Steenbeek
eb38b7227f Change WindowFlag to strong enum 2025-09-20 21:46:42 +02:00
Gymnasiast
aab21c4747 Rename validate_global_widx to VALIDATE_GLOBAL_WIDX 2025-09-17 23:50:28 +02:00
Gymnasiast
a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Aaron van Geffen
51b4bbbce5 Allow shifting track designs underground
Since about a year ago, OpenRCT2 has allowed players to shift ride/track designs using modifier keys (#22669). This was, however, limited to heights above-ground. This PR changes this by omitting the 'Z placement assist' when ctrl/shift modifiers are used. This means the helpful 'nudge' to overground is now omitted if (and only if) these modifier keys are involved.

Below is an example of what placement now looks like (with clearance checks disabled for easier debugging):

https://github.com/user-attachments/assets/3b23bc1d-ab7b-43a2-ad40-216ab83952d2
2025-09-17 23:09:07 +02:00
Gymnasiast
3a803e13e2 Change window functions to use lowerCamelCase 2025-09-17 20:10:12 +02:00
Gymnasiast
d4a0bca091 Rename Window fields 2025-09-17 20:10:12 +02:00
Gymnasiast
b6e09bbc7e Change code style of enums in Viewport.h 2025-09-17 20:10:11 +02:00
Gymnasiast
6f7987e1c7 Turn MapSelectFlags into FlagHolder 2025-09-11 22:06:10 +02:00
Aaron van Geffen
4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Aaron van Geffen
5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen
013fcb3798 Split off MapSelection.h from Map.h 2025-09-04 21:57:36 +02:00
Aaron van Geffen
abe58f6439 Move ClearAction, GameAction, ScenarioSetSettingAction into GameActions (#25045) 2025-08-29 06:32:05 -03:00
Aaron van Geffen
86a001875e Move Track game actions to GameActions namespace 2025-08-26 21:28:10 +02:00
Gymnasiast
9c810d9e32 Update ParkData fields to new code style 2025-08-21 22:12:41 +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
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
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
Michael Steenbeek
cfb4b008b2 Create weak enum for PaletteIndex 2025-04-09 16:47:22 +02:00
Gymnasiast
2002f697e0 Refactor INPUT_FLAGS into FlagHolder 2025-03-26 13:00:54 +01:00
Gymnasiast
4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Gymnasiast
09da9779a5 Change Tool members to new codestyle 2025-03-01 20:12:12 +01:00
73
c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01: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