Commit Graph
1251 Commits
Author SHA1 Message Date
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
Silent c4b70358c8 More MAX_PATH removals (#20113)
* Refactor FileScanner to lift a MAX_PATH limit

* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory

* Remove MAX_PATH from Platform.Posix.cpp
2023-05-09 20:08:46 +01:00
Michael Steenbeek 58baa85a27 Small path additions cleanup (#20076)
* Split off path addition paint calls

* Replace occurences of “path bit” with “path addition”

* Replace occurences of “footpath item“ with “path addition”
2023-05-09 20:08:25 +01:00
Michał Janiszewski 0871525850 Use precompiled headers for libopenrct2 with MSVC (#15997)
* Use precompiled headers for libopenrct2 with MSVC

* Exclude PCH from duktape

duktape needs all the warnings turned off and forcing PCH also enables
warnings. As there is nothing duktape would consume from our header,
remove forcing inclusion of that header into duktape.

* Provide msbuild parameter for using PCH only in CI
2023-05-07 21:53:50 +02:00
Meehoi 936f017147 Fix #20096: Server list window scroll is glitched when server list is empty (#20099)
* Fix initial scroll size of server list and change cast to int32_t

* set actual width for server list too

* add indentation

* fix pixel size of other scroll

* revert unnecessary changes

* add changelog entry
2023-05-06 17:01:14 +03:00
Chase d6ebeca483 Fix #19935: Part of old multiplayer name remains when entering a shorter name (#20004)
* clear _playerName

* Change _playerName to a u8string

* Explicitly set underlying string ptr on change
2023-04-26 08:34:39 +01:00
Duncan cdccb21dd5 Refactor of colours (#19998)
* Move dropdown functions to dropdown code

* Use a map for the colour tip

* Keep dropdownidx and colour seperated

* Allow number of rows to match vanilla

* Apply review comment

* Bump network version
2023-04-22 08:58:13 +00:00
Matthias Moninger e614584f65 Fix #19991: Crash when using cut-away view (#19968)
* Fix #19991: Crash using cut-away view

* Update changelog.txt

* Document the use of temporary paint head
2023-04-20 16:00:22 +01:00
Matthias Moninger e88d606925 Merge pull request #19888 from ZehMatt/cleanup-paint
Refactor paint sort code
2023-04-16 17:20:43 +03:00
Rik Smeets a31ff7e02e Add prompt before resetting shortcut keys (#19905) 2023-04-16 09:22:05 +00:00
ζeh Matt a1c3f38469 Rename next to NextEntry 2023-04-14 03:37:26 +03:00
ζeh Matt d35933dc9f Use ScreenCoordsXY in AttachedPaintStruct 2023-04-14 03:22:32 +03:00
ζeh Matt fc75f8b0e9 Use ScreenCoordsXY, refactor uses 2023-04-14 03:14:37 +03:00
ζeh Matt 31e1a5dbcd Use CoordsXY for map position 2023-04-14 03:09:29 +03:00
ζeh Matt 5ea09be0f8 Rename some fields in PaintStruct 2023-04-14 03:06:53 +03:00
Gymnasiast bb83a80eab Use dpi ref in rect and line drawing functions 2023-04-11 22:59:01 +01:00
Gymnasiast 0139c8d19e Use dpi ref in everything outside the drawing folder 2023-04-11 22:57:25 +01:00