Commit Graph
1267 Commits
Author SHA1 Message Date
Martin Mizzi f5a9846ea2 Move gBankLoan and gBankLoanInterestRate to GameState_t 2024-02-19 04:42:44 -05:00
Harry Hopkinson 1c285dbf9f Move gMaxBankLoan to GameState 2024-02-13 21:36:35 +01:00
Matt 19be093569 Fix #21208: Error messages disappear too quickly if the game runs for a while (#21394)
* Reset gCurrentRealTimeTicks when the map is initialized

* Use 32 bit for gWindowUpdateTicks

* Update changelog.txt
2024-02-13 16:03:30 -03:00
Harry-Hopkinson b755c873e5 Move gMapSize to GameState_t 2024-02-12 21:32:08 +00:00
Michael Steenbeek 70b9d0ca47 Add button to reload object 2024-02-11 20:45:31 +00:00
Hielke Morsink 0c10435b7e #21193: Move gParkValue to GameState_t 2024-01-25 14:30:44 +01:00
Harry Hopkinson 42336915cd Move gClimateCurrent to GameState_t 2024-01-24 11:18:54 +01:00
Hielke Morsink f85cac627d #21193: Move gParkRating to GameState_t 2024-01-23 00:11:34 +01:00
Michael Steenbeek b5786c2a86 Move gGuestInitial* to GameState 2024-01-22 22:28:16 +00:00
Hielke Morsink 13351d996e #21193: Move gParkFlags to GameState_t, refactor uses
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01:00
Harry Hopkinson 0f283dc2a9 Move gClimate to GameState_t 2024-01-21 21:05:22 +00:00
ζeh Matt c493e22b9b #21193: Move gInitialCash to GameState_t, refactor uses 2024-01-20 17:13:57 +02:00
ζeh Matt 3518a638bb #21193: Move gCash to GameState_t, refactor uses 2024-01-20 15:46:35 +02:00
James103 1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
mrmbernardi 98a52efb7e Fix #5677: Balloons pass through the ground and objects (#20483) 2023-12-26 08:28:19 -03:00
Michael Bernardi 8c7d1d149a Added OpenGL TTF hinting 2023-12-08 01:13:17 +01:00
Gymnasiast 6d87e3e56d Make remove_park_fences multiplayer-safe 2023-11-02 22:40:11 +01:00
fidwell 95169f9632 Tile inspector invisibility shortcut does not use a game action 2023-10-02 22:26:55 -04:00
Michael Bernardi 29c3f08b69 Add a window method to resize dropdowns 2023-08-19 00:13:47 +02:00
Matthias Moninger 22996b5fe8 Merge pull request #20545 from mrmbernardi/resize_spinners
Add a window method to resize spinners
2023-08-19 00:24:08 +03:00
Duncan 4349688de4 These function names have not reflected their use for a while (#20656) 2023-08-01 20:19:33 +01:00
Duncan 5adf8cd35c Remove track_list member var from window base (#20626)
* Remove track_list member var from window base

* Address review comment and readd OnOpen
2023-07-19 08:02:31 +01:00
Matthias Moninger 5924185a6b Fix tab index being overwritten for scripted windows (#20630) 2023-07-18 21:08:42 +01:00
Duncan ce86aa029f Remove custom_info pointer (#20480)
* Remove custom_info pointer

* Formatting
2023-07-18 06:24:42 +01:00
Michael Bernardi 1159c9d0bc Add a window method to resize spinners 2023-07-16 15:34:31 +02:00
Matthias Moninger 14f007c049 Merge pull request #20489 from ZehMatt/code-overhaul
Remove TestPaint and remove benchmark code
2023-07-05 01:55:46 +03:00
duncanspumpkin 5beadb4f17 Remove unused array 2023-07-03 08:14:03 +01:00
Matthias Moninger 379287ed0f Remove legacy stuff in common.h (#20523)
* Remove old interop macro

* Remove legacy string macro things

* Unbreak the posix/linux/unix builds

* Add String::IEquals and use it for case insensitive compare

* Add missing include for posix

* Replace _strnicmp with String::StartsWith

* Add LoByte and HiByte into Util.h, swap macros

* Fix android build

* Hopefully last of the string things

* Replace STUB directly with the warning
2023-07-02 12:59:20 +03:00
ζeh Matt d61ce4e38c Remove BenchGfx 2023-06-30 16:37:11 +03:00
ζeh Matt bcb0c069c3 Remove dead code of TestPaint and remove BenchSpriteSort 2023-06-30 16:34:55 +03:00
Aram Kazorian 3f603542ec Refactoring by deleting dead WindowEventList struct (#20513) 2023-06-30 06:05:23 +01:00
Matthias Moninger a7bbe77148 Merge pull request #20502 from ZehMatt/platform-cleanup
Cleanup Platform code
2023-06-28 16:25:17 +03:00
Matthias Moninger 39771217c8 Merge pull request #20493 from ZehMatt/delayed-window-delete
Refactor window deletion to be delayed
2023-06-28 01:40:12 +03:00
Duncan 0747ad7497 Remove even more window uncommon vars (#20495)
* Break uncommon union

* Move uncommon highlightedScenario into derived

* Split off multi use variable

* Adjust name
2023-06-27 22:33:26 +01:00
ζeh Matt ac583569da Remove Platform::CoreInit 2023-06-27 23:35:11 +03:00
ζeh Matt 905f1ea094 Shorten the lambda 2023-06-27 17:55:03 +03:00
ζeh Matt 5497601d42 Refactor window deletion to be delayed 2023-06-27 15:41:25 +03:00
Duncan d40102aa9d Remove some uncommon variables and break unions (#20440) 2023-06-27 06:34:06 +01:00
Duncan 0c5a35993e Remove union from window internal (#20429)
* Remove campaign vars from union

* Remove error union

* Remove new_ride union

* Remove Unknown5

* Update changelog
2023-06-26 16:31:04 +01:00
Aaron van Geffen d425e0a8bb Remove const qualifier from constexpr statements 2023-06-24 11:45:26 +02:00
Duncan 4a3a1e4e7f Remove event handlers (#20439) 2023-06-23 08:31:31 +01:00
Duncan 622c8cdb7e Fix #20433. Dropdown default selections not working (#20437)
This fixes it for rides but it is also an issue effecting a few different dropdowns
2023-06-23 06:20:02 +01:00
Duncan a6d3dbc6d9 Remove player specific window vars from common 2023-06-23 00:44:17 +02:00
Matthias Moninger 42ff471617 Fix periodic window update function being called every frame 2023-06-22 15:52:14 +02:00
duncanspumpkin f0658202ef Fix mistake 2023-06-20 08:52:00 +01:00
duncanspumpkin 9b8b672507 Finish linking up parts 2023-06-20 08:42:25 +01:00
Tiago A. Reul 93c1a9724e Remove flag RIDE_TYPE_FLAG_HAS_NO_TRACK (#20239) (#20249)
* Remove flag RIDE_TYPE_FLAG_HAS_NO_TRACK (#20239)

* Fix a couple of logical conditions in entity/Staff.cpp

* Bump NETWORK_STREAM_VERSION and add myself to contributors.md
2023-05-26 14:08:28 +03:00
870c78001e Add new roller coaster ride colour presets (#20119)
* Fix G2 order and format

PR #19446 did not follow the correct G2 order so this is fixing that.

Also adds the added icons to the [Plugin] chart as should when adding icons to G2.

* Add colour documentation

* Joker's Jinx colour

For the LIM Launched, based on Premier rides LIM RC.

* Poltergeist colour

Based on a Premier rides LIM RC

* Flight of Fear colour

* Add Mega-Lite colour scheme

* Add colours for Vertical Drop RC

* Add two HyperCoaster presets

Suggested by Kyphii

* Add Mako colour scheme

Suggestion by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add two colours to BM Invert

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Bobsleigh Preset

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Woodie Presets

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Looping RC preset

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Flying RC preset

Not based on one specifically, it just looks very nice.

* Update GCI Woodie preset

* Update Inverted RC's presets

Removed the skinworm and added a banshee colour scheme that you could find in the renders. Supports were a tad difficult but I think Violet pops the best with the rails so I decided to go for that.

* Change default Woodie LB Bl Bl to LB Bl DB

* Update ride presets for Twister RC

Removed Aquamarine and Moss Green because you can find Moss Green on the Flying already and Aquamarine is very close to the white.

The white I would probably change to Black & White and move it to the Wing RC once that ride type becomes available.

* Add colour presets for the 4th Dimension RC

* Add Hybrid RC presets

* Add two yellow themes for Impulse

May both rides rest in pieces

* Add colour documentation

* Joker's Jinx colour

For the LIM Launched, based on Premier rides LIM RC.

* Poltergeist colour

Based on a Premier rides LIM RC

* Flight of Fear colour

* Add Mega-Lite colour scheme

* Add colours for Vertical Drop RC

* Add two HyperCoaster presets

Suggested by Kyphii

* Add Mako colour scheme

Suggestion by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add two colours to BM Invert

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Bobsleigh Preset

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Woodie Presets

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Looping RC preset

Suggested by Kyphii

Co-Authored-By: kyphii <8711258+kyphii@users.noreply.github.com>

* Add Flying RC preset

Not based on one specifically, it just looks very nice.

* Update GCI Woodie preset

* Update Inverted RC's presets

Removed the skinworm and added a banshee colour scheme that you could find in the renders. Supports were a tad difficult but I think Violet pops the best with the rails so I decided to go for that.

* Change default Woodie LB Bl Bl to LB Bl DB

* Update ride presets for Twister RC

Removed Aquamarine and Moss Green because you can find Moss Green on the Flying already and Aquamarine is very close to the white.

The white I would probably change to Black & White and move it to the Wing RC once that ride type becomes available.

* Add colour presets for the 4th Dimension RC

* Add Hybrid RC presets

* Add two yellow themes for Impulse

May both rides rest in pieces

* Add changelog entry

* Add Water Coaster colour preset

---------

Co-authored-by: kyphii <8711258+kyphii@users.noreply.github.com>
Co-authored-by: Rik Smeets <30838294+rik-smeets@users.noreply.github.com>
2023-05-21 18:02:28 +02:00
Michael Steenbeek 5e495d63c7 Close #15660: Allow showing window buttons on the left (#20176) 2023-05-19 10:17:38 +02:00
Michael Steenbeek 4a79af7b20 Use strong enum for ViewportSetVisibility (#20230) 2023-05-17 19:27:22 +01:00