Commit Graph
45 Commits
Author SHA1 Message Date
ZeeMaji 58396ac30d Add missing tygrysek90 station object to whitelist (#27171) 2026-09-20 22:24:23 +02:00
Harry Hopkinson c7bee6257d Create enum and flagholder for StationObjectFlags 2026-08-28 22:26:03 +00:00
Harry Hopkinson 6b2fb43861 Move interface types from Location.hpp to ScreenCoords.hpp (#26945) 2026-08-19 19:20:50 +02:00
Harry Hopkinson 430bb95b63 Rework includes in openrct2/object and openrct2/paint (#26852)
* Remove unused includes in openrct2/object

* Remove unused includes in openrct2/paint
2026-08-02 15:44:24 +02:00
Harry Hopkinson df2a210fd8 Rework openrct2/drawing includes (#26815) 2026-07-21 17:00:55 +02:00
Michael Steenbeek 95fbd1f6c8 Add station style whitelist to prepare for split (#26476) 2026-05-01 11:42:00 +02:00
Aaron van Geffen f8aad1576e Populate StationObject::iconIndex property 2026-02-17 15:14:35 +01:00
Aaron van Geffen 8a0fef3d9b Refactor StationObject image indices (#26042)
* Refactor StationObject image indices

* Minor rewrite to avoid kNumOrthogonalDirections

* Return early in StationObject::Load if there are no images

* Unset all indices when unloading a station object
2026-02-23 23:53:56 +01:00
Michael Steenbeek 343c7a70d7 Change colour to a strong enum (#25873) 2026-01-28 10:06:45 +01:00
Michael Steenbeek 85cc79b31a Move kScrollingModeNone to ScrollingText.h (#25797) 2026-01-11 18:18:53 +00:00
Aaron van Geffen 40aaf97c07 Update copyright years to 2026 (#25741) 2026-01-05 13:42:59 +00:00
Aaron van Geffen 8a0a655025 Unwrangle Drawing.h and Paint.h (#25706)
* Drop Drawing.h include from Paint.h

* Split off RenderTarget to its own header/unit

* Move FilterPaletteID to its own header
2025-12-26 12:58:33 +01:00
Aaron van Geffen a053a84486 Move all object units into OpenRCT2 namespace (#24980)
* Move all object units into OpenRCT2 namespace

* Dealing with fallout, part 1

* Dealing with fallout, part 2

* Dealing with fallout, part 3

* Apply clang-format in a few more places

* Remove redundant 'virtual' keyword
2025-08-17 06:46:03 -03:00
Gymnasiast ddacaacc71 Change SCROLLING_MODE_NONE to kScrollingModeNone 2025-05-20 22:57:59 +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
Gymnasiast d0368a7f02 Rename STATION_OBJECT_FLAGS and its members 2025-03-25 22:05:53 +01:00
Michael Steenbeek be9f27e4f9 Mass rename constants (#23656) 2025-01-19 15:59:45 +00:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Michael Steenbeek 0ec76e09d4 Remove unused IStream::ReadString() function and fix includes 2024-10-15 17:39:54 +02:00
Aaron van Geffen 05e56517ab Adopt existing namespaces into OpenRCT2 namespace (#22368)
* Put all of TitleSequenceManager into the same namespace

* Move RideConstructionState into the OpenRCT2 namespace

* Adopt existing namespaces into OpenRCT2 namespace

This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen 3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +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
Nikolas ParshookandDuncan ef35dfa40a Expose obj image offset and num images to plugins (#17567)
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2023-04-13 19:09:15 +00:00
Gymnasiast 9c2d5b9fef Make GfxDrawSprite() take reference 2023-04-11 22:53:30 +01:00
Michael Steenbeek 049164c400 Pass dpi as ref when drawing object preview 2023-03-13 16:52:49 +01:00
Duncan 859b071ddc Rename classes with snakes OpenRCT2/A*-F* (#19215)
* Rename classes with snakes OpenRCT2/A*-F*

* Clang format files
2023-01-19 08:16:44 +00:00
Michael Steenbeek b4480b344e Rename snake_case functions from localisation folder 2023-01-16 23:12:35 +00:00
Duncan 8504c8d05e Finish Removing snake_case from Drawing Methods 2023-01-16 22:31:34 +00:00
Duncan 7f5934cc95 Remove snake_case from second chunk of Drawing (#19166) 2023-01-16 18:52:17 +00:00
James103 73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
73 8c3ff1bfa8 Replace Transparancy with Transparency 2022-10-04 18:28:15 +02:00
73 b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Ted John efca2852c4 Refactor remaining object preview to ImageId 2021-12-16 21:39:10 +01:00
Ted John 4e9ca39c4a Refactor station covers to use ImageId 2021-12-11 23:07:55 +00:00
Ted John a324bfab63 Add image manager plugin API (#16144) 2021-12-07 20:55:27 +00:00
34128dc262 Add new .park save format
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Gymnasiast bb682ca09d Hide brown base on flat rides if "no platform" station style is selected 2021-07-28 11:22:44 +02:00
Łukasz Pękalski 4adf745237 Close #12403: Refactor FILTER_PALETTE_ID to use strong enum (#13273) 2020-12-05 15:13:59 -03:00
Simon Jarrett 9c5e9f8dbc Replace includes of Json.hpp in header files with json_fwd.hpp 2020-10-02 11:31:20 +01:00
Simon Jarrett 0c58dfa1b3 Refactor objects to use new JSON library 2020-09-16 20:18:53 +01:00
Aaron van Geffen 7b5087f057 Update copyright year to 2020 2020-07-21 15:04:34 +02:00
TomasZilinekandTulio Leao 9d965ccfb6 Part of #12017 - create gfx_draw_sprite overload (#12026)
* Part of #12017 - create gfx_draw_sprite overload

Part 1. Creates the overload and replaces about a half of the calls since there are too many for one PR.

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-06-23 18:32:34 -03:00
Aaron van Geffen 2af13904c5 Update copyright notices for 2019. (#8903) 2019-03-17 07:16:15 +00:00
Michael Steenbeek 1c0877fc6c Fix missed occurrence of SCROLLING_MODE_NONE 2019-03-16 14:20:03 +01:00
Ted John 06f203a7e7 Implement surfaces, edges and stations as objects 2018-12-09 23:30:40 +00:00