Commit Graph
86 Commits
Author SHA1 Message Date
Gymnasiast 38eccc4e2c Rename enum members of WoodenSupportType to lowerCamelCase 2025-06-21 14:36:46 +02:00
Matt 94be70f8a8 Merge pull request #24034 from Gymnasiast/refactor/gamestate-t-lower-camel-case
Change GameState_t members to lowerCamelCase
2025-03-21 23:32:02 +02:00
mix 7a9041c7f3 Shorten PaintSegment enum variant names 2025-03-21 09:17:15 +01:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
matheusvb3 6c1be793fb Update constexpr with k prefix 2025-02-11 20:26:22 -03:00
matheusvb3 54404e4c8d Simplify garden clock paint algorithm 2025-02-11 04:16:11 -03:00
Aaron van Geffen 2302f0d2e3 Rework Localisation includes (#23789)
* Clean up internal localisation header includes

* Remove some external localisation includes

* Remove dependency on FormatCodes.h from InteractiveConsole.h

* Reduce Formatter.h, Localisation.Date.h includes
2025-02-07 22:36:42 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Aaron van Geffen 6ee798337a Introduce EnumUtils header (#23407) 2024-12-15 17:39:52 +01:00
Aaron van Geffen b3aa852a8d Consolidate util/Math.hpp into core/Numerics.hpp (#23319)
* Consolidate util/Math.hpp into core/Numerics.hpp

* Remove branching; replace isPowerOf2 with std::has_single_bit

* Add templated types to floor2 and ceil2
2024-12-04 21:00:26 +00:00
Michael Steenbeek a2ed026264 Split up remaining tile elements 2024-10-15 22:02:31 +02:00
Aaron van Geffen 3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Gymnasiast 09dc7077c1 Drop 3rd parameter to PaintUtilSetGeneralSupportHeight()
It’s always 0x20
2024-05-10 20:15:51 +02:00
Aaron van Geffen ca6f142a97 Remove Config.h include from many places 2024-05-08 22:29:32 +02:00
Gymnasiast 369996809c Add PaintSegment header, add constant for straight flat track 2024-05-02 18:12:51 +02:00
Claudio Tiecher a94e6c54d8 Part of #21421: replace define with constexpr (#21679) 2024-04-01 07:00:32 -03:00
Gymnasiast 7ae98f7421 Use EnumsToFlags() and create a proper enum 2024-03-11 01:12:35 +01:00
Gymnasiast 632f29e6a9 Name segment constants 2024-03-11 00:22:35 +01:00
Gymnasiast 849af8c2d8 Split Supports.{cpp,h} into two 2024-02-19 21:59:59 +01:00
ζeh Matt a5dde0f8dc Replace gCurrentTicks with the one in GameState_t 2024-01-19 16:32:19 +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
Gymnasiast f47cfa79c0 Use WoodenBSupportsSetupRotated() for scenery supports drawing 2023-11-14 20:30:09 +01:00
Michael Bernardi a26464b897 Selected TileElement now stored in paint session 2023-08-12 22:00:29 +02:00
Aaron van Geffen d425e0a8bb Remove const qualifier from constexpr statements 2023-06-24 11:45:26 +02:00
Matthias Moninger 98aa816e5f Fix #19989: Crash with small scenery objects having no offsets defined (#19990) 2023-04-19 06:35:09 +01:00
Duncan 01d9be4609 Name a lot of the palettes (#19889) 2023-04-09 20:29:35 +00:00
Duncan d811c9a9ba Add Object Entry Manager (#19332)
* Add object entry manager

Port over wall and banner

* Port over small scenery to ObjectEntryManager

Clang format files

Actually make things safe

Fix build
2023-02-12 20:43:11 +00:00
Duncan d51b4d3191 Split off SmallSceneryEntry into dedicated file (#19115)
* Split off small scenery entry to new file

* Move flags to new file
2023-01-25 19:25:33 +00:00
Hielke Morsink 0762fcb601 Rename snake_case functions in OpenRCT2/util folder 2023-01-18 22:44:13 +01:00
Stephan Spengler 76b918e7ed Change openrct2/ride methods to UpperCamelCase, part 1 2023-01-17 01:32:54 +01: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
Rik Smeets c80bd455e9 Code style: Remove struct snakes from Paint (#18341) 2022-10-14 20:26:36 +02:00
Rik Smeets 29f61fd403 Code style: Remove snakes from wooden supports 2022-10-08 19:20:59 +02:00
Rik Smeets c5904d81d6 Code Style: Remove snakes from paint tile elements (#18212) 2022-10-05 21:27:38 +02: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
Michael Steenbeek 7bb7d97bdc More bound box refactors 2022-09-27 21:20:49 +02:00
Michael Steenbeek ce03c228ad Fix #17616: Quarter-tile scenery is misaligned 2022-08-11 00:50:42 +02:00
Greg 176c2f1e57 Fix OpenRCT2#16974: Small scenery ghosts can be deleted (#17062) 2022-04-26 12:25:56 +02:00
Ted John 793acf67ae Implement small scenery ternary colours 2022-03-20 18:53:11 +00:00
Ted John 9794be6a09 Hide trees using colourify function 2022-03-14 21:55:15 +00:00
Ted John 79989a5e84 Fix transparency issues 2022-03-14 21:55:15 +00:00
Kane 1c306e0a1a Fix supports changing when trees were invisible 2022-03-14 21:38:49 +00:00
Kane e134be9538 Implement more options
- Invisible guests
- Invisible staff
- See-through trees
- Invisible trees
- Strings/Ids
2022-03-14 21:38:46 +00:00
ζeh Matt 269673e3aa Profiler update (#16463)
* Add more functions to be profiled

* Add isEnabled method to Profiler scripting interface

* Bump up scripting version

* Apply review suggestions
2022-01-29 15:29:08 +02:00
Michael Steenbeek 25cb49f8ce Pass paint_session as reference 2021-12-19 14:48:00 +00:00
Ted John 5cc776c622 Fix #16206: Wooden supports for scenery are not drawn 2021-12-14 14:25:41 +01:00
Michał Janiszewski 7b0e6ad0b6 Reformat with clang-format-12 from updated CI image 2021-12-12 17:48:52 +01:00
Ted John 7ad1e257d3 Update formatting of files 2021-12-11 23:07:56 +00:00
Ted John 3fa2af3f6b Refactor paint small scenery to use ImageId 2021-12-11 23:07:56 +00:00