29775 Commits
Author SHA1 Message Date
Michael Steenbeek 7af3adeca7 Merge pull request #25243 from Gymnasiast/refactor/drawing-refactor
Code style change in Drawing.{cpp,h}
2025-09-24 10:07:12 +02:00
Michael Steenbeek df9e874e75 Fix missing word in changelog
[ci skip]
2025-09-23 23:56:47 +02:00
Gymnasiast a03613df35 Change FilterPaletteID to lowerCamelCase 2025-09-23 21:09:54 +02:00
Gymnasiast c3ac626cd5 Update kTranslucentWindowPalettes name, replace defines 2025-09-23 21:03:57 +02:00
Aaron van Geffen 253d8484bf Make S4Importer::CorrectRCT1ParkValue independent of global game state (#25178) 2025-09-23 19:40:27 +02:00
Michael Steenbeek e9c8a76344 Merge pull request #25199 from spacek531/vehicle/cleanup-car-entry-flags
Convert legacy sprite groups to FlagHolder
2025-09-23 19:07:57 +02:00
Gymnasiast 73f31b707b Pass car by reference 2025-09-23 18:33:42 +02:00
Spacek531 e656602f83 Convert legacy sprite groups to FlagHolder 2025-09-23 18:33:42 +02:00
Michael Steenbeek 744c1fd5a3 Fix #25207: No switch to block sectioned mode after building one on the LIM LRC 2025-09-23 17:34:38 +02:00
Michał Janiszewski 41dd05ea43 Include crashing scenario in breakpad upload (#25204)
Fixes missing park for #25202
2025-09-23 15:40:46 +02:00
Gymnasiast 04af97ec74 Remove repository from IReadObjectContext, ObjectFileIndex and helper functions 2025-09-23 14:10:07 +02:00
Gymnasiast f768d2873e Do not read from repository when loading objects 2025-09-23 14:09:09 +02:00
Michael Steenbeek 3e11a8efdf Fix #24998: Some custom small scenery objects do not load 2025-09-23 14:06:20 +02:00
Michael Steenbeek 9e02ba453e Merge pull request #25225 from Gymnasiast/feature/sprite-exportobject
Create `sprite exportobject` command
2025-09-23 13:58:33 +02:00
Michał Janiszewski 7f5a56e047 Update default permissions for pull requests (#25224)
Update permissions for actions for #25211 .

It needs to be done this way and *not* via token, because pull
requests have no access to secrets.

The default branch dictates what kind of access the default actions token has
(constrained by repo config in https://github.com/OpenRCT2/OpenRCT2/settings/actions)
2025-09-22 22:54:12 +02:00
Gymnasiast 73d3e4f0e3 Change "sprite exportalldat" into "sprite exportobject", take a filename instead of an already loaded DAT 2025-09-21 21:18:59 +02:00
Gymnasiast 161a8359fc Create function to create object from file 2025-09-21 21:18:22 +02:00
Aaron van Geffen db5f56f4aa Scripting: order available costumes array by display name (#25228) 2025-09-21 15:31:36 +00:00
Aaron van Geffen f9e9cefb46 Add missing getCostumeStrings to openrct2.d.ts (#25227) 2025-09-21 17:11:39 +02:00
rarbor b160210259 Update name in contributors.md 2025-09-21 17:10:08 +02:00
matheusvb3 72c6908cf0 Check if we're in shop tab before drawing track design info 2025-09-21 17:06:12 +02:00
Michael Steenbeek eb38b7227f Change WindowFlag to strong enum 2025-09-20 21:46:42 +02:00
matheusvb3 f60dac165f Don't print the trailing comma in sprite exportalldat JSON output 2025-09-20 13:35:53 +02:00
spacek531 e5aa3b33f2 Use regular interval for swing sprite threshold (#25171)
* use regular interval for swing sprite threshold

* bump network

* bump park file version
2025-09-20 09:39:50 +02:00
Michał Janiszewski 263857a752 Merge pull request #25212 from janisozaur/update-formatter
Update clang-format runner
2025-09-20 00:13:00 +02:00
Aaron van Geffen 80badee58d Skip drawing accessories whilst peep is clapping 2025-09-20 00:11:47 +02:00
Michał Janiszewski 37112e42b0 Add information about run-clang-format licence 2025-09-19 21:08:00 +02:00
Michael Steenbeek 77d330a004 Merge pull request #25205 from Gymnasiast/refactor/more-code-style-b
Refactor more UI code style
2025-09-19 16:15:30 +02:00
Michał Janiszewski fdcfd8704b Mark git directory as safe for formatting job 2025-09-19 14:55:10 +02:00
Michał Janiszewski 814f54fe34 Format files in-place so the changes can be viewed with git diff 2025-09-19 14:55:10 +02:00
Michał Janiszewski 159b705593 Update CI images to 24
This introduces git to formatting image
2025-09-19 14:55:10 +02:00
Michał Janiszewski ef3b5c7567 Update run-clang-format.py to 39081c9c42768ab5e8321127a7494ad1647c6a2f
https://github.com/Sarcasm/run-clang-format/commit/39081c9c42768ab5e8321127a7494ad1647c6a2f
2025-09-19 14:55:10 +02:00
Aaron van Geffen 1d956b6dfb Pass ParkData& to scenario objective checks (#25209) 2025-09-19 12:51:17 +02:00
Kyphii 0ba2f62271 Fix bugged states involving simulating with block sections 2025-09-18 09:21:23 -04:00
Aaron van Geffen f5faef7bea Scenery window: increase minimum height
This increases the minimum height of the Scenery window to fit at least 1.5 rows of scenery items, instead of 1 row. This is done to ensure the eyedropper and scatter tools are visible with multiple rows of tabs as well.

Before:
<img width="634" height="224" alt="Imagination Megapark 2025-09-15 22-38-56" src="https://github.com/user-attachments/assets/dcce9fad-a8e1-4001-9552-dd1ff97c082c" />

After:
<img width="634" height="264" alt="Imagination Megapark 2025-09-15 22-38-46" src="https://github.com/user-attachments/assets/8e545aa7-8aef-4642-b78e-858bed2db1e8" />
2025-09-17 21:51:12 +00:00
Gymnasiast aab21c4747 Rename validate_global_widx to VALIDATE_GLOBAL_WIDX 2025-09-17 23:50:28 +02:00
Gymnasiast 472e048f69 Make WindowView into strong enum 2025-09-17 23:49:17 +02:00
Gymnasiast ea5fc03dd0 Turn WindowDetail into strong enum 2025-09-17 23:35:10 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Gymnasiast c94babb06e Rename g_window_list to gWindowList 2025-09-17 23:16:17 +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
Michael Steenbeek 3330513511 Merge pull request #25194 from Gymnasiast/refactor/more-lcc
Code style updates in UI-related files
2025-09-17 23:06:01 +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 a613b2604a Replace RCT_WINDOW_{RIGHT,BOTTOM} defines 2025-09-17 20:10:12 +02:00
Gymnasiast f46fea3bff Rename rct_windownumber to WindowNumber 2025-09-17 20:10:12 +02:00
Gymnasiast 8a7a265639 Rename member of WidgetIdentifier and WidgetRef 2025-09-17 20:10:12 +02:00
Gymnasiast 2a792987a7 Rename local variables like ‘pressedWidgets’ in anticipation of field renames 2025-09-17 20:10:12 +02:00
Gymnasiast 0dd36af869 Rename centre_2d_coordinates to centre2dCoordinates 2025-09-17 20:10:11 +02:00
Gymnasiast eca7870818 Make ViewportCreate take a reference to a window 2025-09-17 20:10:11 +02:00