Commit Graph
309 Commits
Author SHA1 Message Date
Gymnasiast 2398d91fb2 Rename DrawTextBasic() to DrawText() 2026-03-25 23:15:49 +01:00
Michael Steenbeek 571745d38f Merge pull request #26129 from Gymnasiast/refactor/track-data-more
Finish move to a TrackElementDescriptor per element
2026-03-08 10:40:57 +01:00
frozensnowy 1dffdc3cf6 Refactor: Rename internal track design window methods to camelCase (#26165)
* Rename internal TrackListWindow methods to camelCase

* Rename private TrackDesignPlaceWindow methods to camelCase
2026-03-07 20:36:45 +01:00
Gymnasiast f999cab0a7 Stop using common formatter for window captions 2026-03-03 14:47:00 +01:00
Gymnasiast da7272dec9 Finish move to a TrackElementDescriptor per element 2026-03-02 20:39:35 +01:00
Gymnasiast 8b104d04b3 Rename TrackMetaData to TrackMetadata 2026-03-01 12:40:51 +01:00
Gymnasiast 56082daa5f Split off TrackElementDescriptor and a few other things into their own headers 2026-03-01 12:40:47 +01:00
frozensnowy 4c88430ebb Preview images from different windows overwrite each other when using OpenGL (#25986)
The Map, Track Design List, Track Design Placement, Install Track, and Park Preview windows all shared a single SPR_TEMP sprite ID for rendering dynamic preview images. In OpenGL mode, this caused them to overwrite each other's textures when multiple windows were open simultaneously. To fix it I added separate temp sprite IDs for each window that needs one, with an array of G1Elements to store each separetely
2026-02-10 19:42:32 +01:00
Aaron van Geffen 1cc7006127 Reorganise game actions into folders (#25987) 2026-02-10 08:57:40 +01:00
Aaron van Geffen 773ba479cd Create separate unit for GameActionRunner 2026-02-09 16:06:56 +01:00
Michael Steenbeek 3e4261323a Rename some palette indices (#25843) 2026-01-18 21:24:45 +00:00
matheusvb3 bba937a03d Remove more redundant namespace qualifiers (#25828) 2026-01-16 08:38:20 +01:00
Gymnasiast a13b1c4e11 Make PaletteIndex into a strong enum and move into namespace 2026-01-07 23:55:30 +01:00
Michael Steenbeek 78a654fcbd Rename missed occurrences of DrawPixelInfo/DPI to RenderTarget/RT (#25768) 2026-01-07 19:58:49 +00:00
Aaron van Geffen b5cd780b3e Rework drawing header includes (#25744)
* Move Csg unit into OpenRCT2 namespace

* Move G1Element into its own header file

* Clean up SpriteCommands.h

* Add trailing namespace comment to Csg.cpp

* Remove Drawing.h dependency from Graph.h

* Add <memory> include to G1Element.h

* Remove Drawing.h include from ImageTable.h (used by all objects!)

* Drop Drawing.h dependency from OpenGLFramebuffer.h

* Drop Drawing.h dependency from TextureCache.h

* Drop Drawing.h include from TitleScene.h

* Drop Drawing.h dependency from Widget.h

* Add <optional> include to SpriteFile.h

* Add Drawing.h to PlayTests, S6ImportExportTests

* Include <cstdint> in TitleScene.h for SIZE_MAX
2026-01-05 19:09:34 +00:00
Aaron van Geffen 40aaf97c07 Update copyright years to 2026 (#25741) 2026-01-05 13:42:59 +00:00
Michael Steenbeek c8445ebbeb Merge pull request #25641 from Gymnasiast/refactor/inspection
Refactor inspection interval and fix bugs
2025-12-31 12:54:19 +01: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
Gymnasiast f97b6e8cbe Pass inspection interval as a parameter to game actions 2025-12-25 12:25:08 +01:00
mix 6414cf26a3 Rename InputFlag::unk6 to allowRightMouseRemoval 2025-12-14 02:51:38 +00:00
Spacek531 c5cd9ac5de Rename SequenceFlag flags again 2025-12-12 18:35:43 +01:00
Spacek531 fa124330fa Convert flags field to FlagHolder 2025-12-12 18:35:40 +01:00
Gymnasiast c744b76632 Rename members of GameActions::Result 2025-12-12 12:11:49 +01:00
Gymnasiast 5ffee91c8a Rename members of GameActions::Status 2025-12-12 11:41:49 +01:00
Michael Steenbeek 31344adc61 Fix missed 'using' in Finance.h 2025-12-11 00:18:27 +00:00
Michael Steenbeek 355bb5d58d Refactor GAME_COMMAND_FLAG_* to enum+FlagHolder 2025-12-11 00:12:21 +01:00
mix f3cedcc1d9 Remove manual map selection invalidation calls 2025-11-23 00:17:15 +00:00
Michał Janiszewski c20d9add1c Capture track location for callback by value (#25455)
Previously it was getting captured by reference and the action using it
was queued up for execution in next tick, resulting in reference going
out of scope. Capturing it by value fixes this issue as it is POD
struct.
2025-11-09 01:25:02 +01:00
mix ed25fbcb3a Fix track design mini preview enlarged UI position 2025-11-09 01:20:34 +01:00
Michael Steenbeek 32b034a8a1 Merge pull request #25427 from Gymnasiast/refactor/string-drawing-2
Refactor string drawing
2025-11-06 13:46:56 +01:00
mix b216ebd11e Rename gPlacingTrackDesign to _placingTrackDesign 2025-11-05 14:11:30 +00:00
mix 719dcbb650 Prevent track design ghost add/delete when shift height is invalid 2025-11-05 04:19:05 +00:00
mix 8d93ac4448 Fix track design paths breaking if ghost is removed after placing 2025-11-05 04:19:05 +00:00
Gymnasiast 124352c922 Update members of TextAlignment 2025-11-03 23:25:29 +01:00
Matt 0630cc6f71 Fix #20486: Multiplayer desync when placing track designs without any scenery. (#25337)
* Fix #20486: Placing track designs with scenery disabled desyncs

* Remove pointless error logging, too much log spam

* Don't entirely disable all scenery when one element is obstructed

* Update changelog.txt

* Bump up network version

* clang-format
2025-10-16 23:05:30 +02:00
Gymnasiast 1f8c9af9ce Rename methods of InputManager 2025-10-01 20:35:35 +02:00
Gymnasiast 45912ec9a3 Rename members of SoundId 2025-10-01 20:35:34 +02:00
Michael Steenbeek eb38b7227f Change WindowFlag to strong enum 2025-09-20 21:46:42 +02:00
Gymnasiast aab21c4747 Rename validate_global_widx to VALIDATE_GLOBAL_WIDX 2025-09-17 23:50:28 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Aaron van Geffen 51b4bbbce5 Allow shifting track designs underground
Since about a year ago, OpenRCT2 has allowed players to shift ride/track designs using modifier keys (#22669). This was, however, limited to heights above-ground. This PR changes this by omitting the 'Z placement assist' when ctrl/shift modifiers are used. This means the helpful 'nudge' to overground is now omitted if (and only if) these modifier keys are involved.

Below is an example of what placement now looks like (with clearance checks disabled for easier debugging):

https://github.com/user-attachments/assets/3b23bc1d-ab7b-43a2-ad40-216ab83952d2
2025-09-17 23:09:07 +02:00
Gymnasiast 3a803e13e2 Change window functions to use lowerCamelCase 2025-09-17 20:10:12 +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
Gymnasiast 6f7987e1c7 Turn MapSelectFlags into FlagHolder 2025-09-11 22:06:10 +02:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen 013fcb3798 Split off MapSelection.h from Map.h 2025-09-04 21:57:36 +02:00
Aaron van Geffen abe58f6439 Move ClearAction, GameAction, ScenarioSetSettingAction into GameActions (#25045) 2025-08-29 06:32:05 -03:00
Aaron van Geffen 86a001875e Move Track game actions to GameActions namespace 2025-08-26 21:28:10 +02:00