Commit Graph
115 Commits
Author SHA1 Message Date
Gymnasiast 0ec4e3353b Update members of FontStyle 2025-11-03 23:25:30 +01:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Gymnasiast a03613df35 Change FilterPaletteID to lowerCamelCase 2025-09-23 21:09:54 +02:00
Gymnasiast d4a0bca091 Rename Window fields 2025-09-17 20:10:12 +02:00
Gymnasiast b6e09bbc7e Change code style of enums in Viewport.h 2025-09-17 20:10:11 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Gymnasiast 76ad3715bb Rename enum members of WoodenSupportTransitionType to lowerCamelCase 2025-06-21 14:46:32 +02:00
Gymnasiast f267d6025b Rename enum members of WoodenSupportSubType to lowerCamelCase 2025-06-21 14:37:55 +02:00
Gymnasiast 38eccc4e2c Rename enum members of WoodenSupportType to lowerCamelCase 2025-06-21 14:36:46 +02:00
Gymnasiast 068112c1ee Rename Banner methods to use camelCase 2025-05-21 00:15:16 +02:00
Gymnasiast ddacaacc71 Change SCROLLING_MODE_NONE to kScrollingModeNone 2025-05-20 22:57:59 +02:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
mix 76974578b3 Fix #23867: Crash when viewing 2 line 3D signs with 16 spaces 2025-02-22 14:38:06 +01:00
Briar 7de61c791d Fix #23797: 3D sign text from older parks cut off
The origin of this bug is an issue in the logic for determining
when to wrap 3D sign text on multi-line signs in Paint.LargeScenery.cpp.
When processing the second line, no check was made that the full text
could fit within the sign's bounding box, and so spaces or newlines
were always used to wrap to a (nonexistent) third line, even when
the text would otherwise fit.

This fix addresses the issue by adding a check for this case, when
we're at the end of the text string and the max text width still
hasn't been exceeded. In that case, the best display string is set
to the full current string, rather than the string up to the last space glyph.
2025-02-20 17:11:53 +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
Duncan f6582647f5 Large scenery tiles 2 (#22888)
* Use std::span for tiles

* Add an index helper parameter

* Use coordsxyz

* Split up corners and walls

* Use bools for the two flags

* Apply coding style

* Refer only to LargeSceneryObject where required

* Address comments
2024-10-16 22:35:29 +01:00
Michael Steenbeek a2ed026264 Split up remaining tile elements 2024-10-15 22:02:31 +02:00
Aaron van Geffen 1b7bbee608 Move CodepointView class to its own header 2024-09-10 23:36:59 +02:00
Aaron van Geffen 896eb4f488 Consolidate FormatStringIDLegacy, FormatStringToUpper into Formatting 2024-07-13 14:09:58 +02:00
Aaron van Geffen 51bcbe3710 Move UTF8 functions from localisation into core (#22278) 2024-07-12 19:21:15 +03:00
Aaron van Geffen 2f68c7e823 Move STR_NONE, STR_EMPTY to StringIdType.h (#22019) 2024-05-15 20:29:11 +02:00
Aaron van Geffen a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Gymnasiast 09dc7077c1 Drop 3rd parameter to PaintUtilSetGeneralSupportHeight()
It’s always 0x20
2024-05-10 20:15:51 +02:00
Gymnasiast 369996809c Add PaintSegment header, add constant for straight flat track 2024-05-02 18:12:51 +02: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
Duncan 01d9be4609 Name a lot of the palettes (#19889) 2023-04-09 20:29:35 +00:00
Duncan b56748bc82 ObjectEntry Cleanup. FootpathItem, SceneryGroup, Water, LargeScenery (#19385)
* Move footpathitem entry into new getter

* Move scenery group entry into new getter

* Move water entry into new getter

* Move large scenery entry into new getter

* Remove unused header includes

* Fix compile issue

* Include missing header from vcxproj
2023-02-15 21:35:16 +00:00
Michael Steenbeek 70af1c6c0d Clean up PaintAddImageAsParent() calls (#19392) 2023-02-13 22:07:39 +00:00
Duncan 7d08372c80 Remove snake_case from Class names OpenRCT2/Ride*-S* (#19232)
* Remove snake_case from Class names OpenRCT2/Ride*-S*

* Clang format
2023-01-20 20:58:55 +00:00
Hielke Morsink 0762fcb601 Rename snake_case functions in OpenRCT2/util folder 2023-01-18 22:44:13 +01:00
Michael Steenbeekandduncanspumpkin 12874f2af7 Replace format_string(4) with OpenRCT2::FormatStringLegacy() (#19190)
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 21:56:30 +01:00
Stephan Spengler 76b918e7ed Change openrct2/ride methods to UpperCamelCase, part 1 2023-01-17 01:32:54 +01:00
Michael Steenbeek b4480b344e Rename snake_case functions from localisation folder 2023-01-16 23:12:35 +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
frutiemax 76faa77f6b Part of #16152: Use BoundBoxXYZ for PaintAddImageAsChild 2022-11-27 18:33:11 +00:00
Gymnasiast 14f9a75e0a Refactor FontSpriteBase and font size into FontStyle 2022-10-19 11:59:26 +02:00
Hielke Morsink abac080d3e Rename public general config data members 2022-10-16 21:46:01 +02: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 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