1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00
Commit Graph

14412 Commits

Author SHA1 Message Date
Hielke Morsink
ec0a734511 Fix: Silent replay record message gets overwritten (#11600) 2020-05-02 11:40:21 -03:00
Tulio Leao
1f7ef019fc Merge pull request #11580 from IntelOrca/plugin/custom-tool
[Plugin] Implement custom tool API
2020-05-02 08:28:59 -03:00
Ted John
e3016cdc03 Fix plugin game action hook player and result (#11587)
- Player was not being attached to the game action event args.
- OpenRCT2 was looking for error on the event args object rather than the result sub object.
2020-05-02 11:45:05 +01:00
Ted John
e5b05747d3 Apply code review refactors 2020-05-02 11:38:33 +01:00
Ted John
be0e4a2869 Implement custom tools 2020-05-02 11:08:43 +01:00
Ted John
0ca52e58fd Implement tile selection API 2020-05-02 11:08:43 +01:00
Duncan
32eb7071a1 Fix #11550: Use std::nullopt instead of empty brace (#11595)
This is technically a gcc bug from the looks of it but since std::nullopt is slightly easier to read I've gone through the codebase and used that over empty braces. In addition noticed a mistake on the scripting viewport get widgetIndex function where it would return an incorrect widgetIndex.
2020-05-02 10:09:12 +02:00
hdpoliveira
d78638c17a Part of #9473: Create Vehicle::TrainReadToDepart (#11593)
Converted from train_ready_to_depart
2020-05-02 00:41:11 -03:00
hdpoliveira
3b099f52d0 Part of #9473: Create Vehicle::SimulateCrash
Converted from vehicle_simulate_crash
2020-05-02 00:00:09 -03:00
hdpoliveira
0fdc6531dc Part of #9473: Create Vehicle::CrashOnLand
Converted from vehicle_crash_on_land
2020-05-02 00:00:09 -03:00
hdpoliveira
7c291c330e Part of #9473: Create Vehicle::CrashOnWater
Converted from vehicle_crash_on_water
2020-05-02 00:00:08 -03:00
hdpoliveira
efbdbee3fa Part of #9473: Create Vehicle::CloseRestraints
Converted from vehicle_close_restraints
2020-05-01 23:29:31 -03:00
hdpoliveira
f129fb55af Part of #9473: Create Vehicle::OpenRestraints()
Converted from vehicle_open_restraints
2020-05-01 23:29:31 -03:00
hdpoliveira
bfe5366dbe Part of #9473: Create Vehicle::UpdateVelocity
Converted from update_velocity
2020-05-01 22:04:17 -03:00
hdpoliveira
48045950c1 Part of #9473: Create Vehicle::CheckAndApplyBlockSectionStopSite
Converted from check_and_apply_block_section_stop_site
2020-05-01 22:04:17 -03:00
hdpoliveira
dd8633499a Part of #9473: Create Vehicle::UpdateTrackMotionUpStopCheck
Converted from vehicle_update_track_motion_up_stop_check
2020-05-01 22:04:17 -03:00
hdpoliveira
55aae04ff5 Part of #9473: Create Vehicle::Claxon
Converted from vehicle_claxon
2020-05-01 22:04:17 -03:00
hdpoliveira
24ec443ff5 Vehicle update 9473 05 (#11586)
* Part of #9473: Create Vehicle::CanDepartSynchronised

Converted from vehicle_can_depart_synchronised

* Part of #9473: Create Vehicle::ReverseReverserCar

Converted from vehicle_reverse_reverser_car

* Part of #9473: Create Vehicle::UpdateReverserCarBogies

Converted from vehicle_update_reverser_car_bogies

* Part of #9473: Create Vehicle::UpdateHandleWaterSplash

Converted from vehicle_update_handle_water_splash
2020-05-01 21:50:40 -03:00
hdpoliveira
4649b573f4 Part of #9473: Create Vehicle::GetGForces
Converted from vehicle_get_g_forces
2020-05-01 19:49:03 -03:00
hdpoliveira
acc6b9f878 Part of #9473: Create Vehicle::SetMapToolbar
Converted from vehicle_set_map_toolbar
2020-05-01 19:49:02 -03:00
hdpoliveira
e8c95e6e3a Part of #9473: Create Vehicle::IsUsedInPairs
Converted from vehicle_is_used_in_pairs
2020-05-01 19:49:01 -03:00
Tulio Leao
21beb2368e Merge pull request #11579 from hdpoliveira/vehicle_update_9473_03
Vehicle update 9473 03
2020-05-01 19:09:45 -03:00
Tulio Leao
b5749ac8f6 Merge pull request #11578 from tupaschoal/more-coordz-1
Keep scouring openrct2-ui to reduce individual {x, y} usage
2020-05-01 18:57:38 -03:00
Tulio Leao
76ff67d4c8 Use CoordsXY in windows/RideConstruction.cpp 2020-05-01 18:06:30 -03:00
Tulio Leao
4589560a15 Make sub_6C683D() use CoordsXYZ on parameter and return 2020-05-01 18:06:26 -03:00
hdpoliveira
4d7ad5f92b Part of #9473: Create Vehicle::NumPeepsUntilTrainTail
Converted from vehicle_get_total_num_peeps
2020-05-01 17:24:55 -03:00
hdpoliveira
421fc5bc59 Part of #9473: Create Vehicle::InvalidateWindow
Converted from vehicle_invalidate_window
2020-05-01 17:24:54 -03:00
hdpoliveira
49be02dbfd Part of #9473: Create Vehicle::UpdateTestFinish
Converted from vehicle_update_test_finish
2020-05-01 17:24:53 -03:00
hdpoliveira
28c861ee7e Part of #9473: Create Vehicle::TestReset
Converted from vehicle_test_reset
2020-05-01 17:24:53 -03:00
Gymnasiast
cc65564521 Use (RCT12)ObjectEntryIndex in more places 2020-05-01 22:06:13 +02:00
tylerleamon
30e6b475a9 Fix #5451: Guests scream on every descent, no matter how small 2020-05-01 22:05:52 +02:00
Tulio Leao
c5180a00b8 Merge individual x,y variables into ScreenCoordsXY object 2020-05-01 16:03:21 -03:00
Tulio Leao
d0704baab2 Make window_dropdown_show_text() use ScreenCoordsXY 2020-05-01 15:58:36 -03:00
Tulio Leao
4933785b1c Make window_dropdown_show_text_custom_width() use ScreenCoordsXY 2020-05-01 15:48:20 -03:00
Michael Steenbeek
158adfba82 Merge pull request #11560 from tupaschoal/more-coordz
Scours through openrct2-ui to use more coords structs
2020-05-01 19:01:37 +02:00
Ted John
65a9c7a1b1 Implement expenditureType on GameActionResult plugin API (#11514)
* Implement expenditureType on GameActionResult plugin API

* Update src/openrct2/scripting/ScriptEngine.cpp

Co-Authored-By: Michael Steenbeek <m.o.steenbeek@gmail.com>

* Improve formatting of ExpenditureTypes

* Apply code review comments

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-05-01 17:50:11 +01:00
Tulio Leao
9960e4b563 Merge pull request #11552 from IntelOrca/plugin/window-tabs
[Plugin] Implement custom window tabs
2020-05-01 13:49:31 -03:00
Ted John
b36e4794e8 Update src/openrct2-ui/scripting/CustomWindow.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-05-01 17:19:19 +01:00
Tulio Leao
9299228f07 Use ScreenCoordsXY on windows/Ride.cpp 2020-05-01 12:58:10 -03:00
Tulio Leao
0c51528425 Use ScreenCoordsXY on windows/TopToolbar.cpp 2020-05-01 12:52:07 -03:00
Tulio Leao
1f2cf2674a Use ScreenCoordsXY on windows/TrackList.cpp 2020-05-01 12:28:26 -03:00
Tulio Leao
28b2010838 Use ScreenCoordsXY on interface/Window.cpp 2020-05-01 12:26:01 -03:00
Tulio Leao
1da24fed40 Use CoordsXY on windows/Sign.cpp 2020-05-01 12:19:20 -03:00
Ted John
00f78cc8fa Use ScreenCoordsXY for tab image offset 2020-05-01 13:53:28 +01:00
Michael Steenbeek
fc860e8b6e Merge pull request #11521 from Gymnasiast/refactor/oein3
Make ResearchItem use ObjectEntryIndex
2020-05-01 13:28:21 +02:00
Michael Steenbeek
7895a6911e Bump network version 2020-05-01 13:28:11 +02:00
hdpoliveira
83d88c0939 Use const& in DodgemsCarWouldCollideAt 2020-04-30 21:03:05 -03:00
hdpoliveira
864a40e22c Use const& in wouldCollideWithDodgemsTrackEdge 2020-04-30 20:56:48 -03:00
hdpoliveira
4389670939 Improve names in UpdateDodgemsCollision 2020-04-30 20:53:18 -03:00
hdpoliveira
53f6bd8340 Part of #9473: Create Vehicle::PeepEasterEggHereWeAre
Converted from vehicle_peep_easteregg_here_we_are
2020-04-30 20:53:17 -03:00