1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00
Commit Graph

496 Commits

Author SHA1 Message Date
Aaron van Geffen
30fa3128a6 Merge pull request #22812 from AaronVanGeffen/name-peep-var
Rename Peep properties to better distinguish Actions and Animations
2024-09-22 21:47:10 +02:00
Michael Steenbeek
a53784551b Move _legacy.cpp contents to UI project (#22811) 2024-09-22 21:00:52 +02:00
Aaron van Geffen
97acb793e8 Rename InteractionInfo::SpriteType to interactionType 2024-09-22 16:53:43 +02:00
Gymnasiast
5f92d1920b Group all sequence-bound properties 2024-09-18 22:43:55 +02:00
Gymnasiast
4ff99d6fd1 Confine provisional paths to Footpath.cpp 2024-09-06 23:31:50 +02:00
Aaron van Geffen
b971d1596e Indent window widget definitions (#22700)
* Indent definitions in About, AssetPacks windows

* Indent definitions in Banner, Changelog, CustomCurrency windows

* Indent DebugPaint, DemolishRidePrompt windows

* Indent EditorBottomToolbar, EditorInventionsList

* Indent EditorObjectiveOptions, EditorScenarioOptions

* Indent Finances

* Indent Footpath

* Indent GameBottomToolbar

* Indent Guest window

* Indent GuestList, InstallTrack windows

* Indent Land, LandRights windows

* Indent LoadSave, Main, MapGen, MapTooltip windows

* Indent MazeConstruction

* Indent Multiplayer

* Indent NetworkStatus

* Indent NewCampaign

* Indent NewRide window

* Indent News window

* Indent NewsOptions window

* Indent ObjectLoadError window

* Indent Options window

* Indent Park window

* Indent PatrolArea window

* Indent Player window

* Indent RefurbishRidePrompt window

* Indent Research window

* Indent Ride window

* Indent RideConstruction

* Indent RideList

* Indent SavePrompt

* Indent ScenarioSelect widgets

* Indent scenario window

* Indent scenery scatter window defs

* Indent server list window

* Indent server start window§

* Indent ShortcutKeys window

* Indent Sign window

* Indent Staff window

* Indent StaffFirePrompt window

* Indent StaffList window defs

* Indent Themes window defs

* Indent TileInspector window defs

* Indent TitleExit, TitleMenu, TitleOptions, Tooltip windows

* Indent TrackDesignManage window defs

* Indent TrackDesignPlace defs

* Indent TrackList def

* Indent Transparency window defs

* Indent ViewClipping window defs

* Indent Viewport window defs

* Indent Water window defs
2024-09-04 21:11:26 +02:00
Harry Hopkinson
003c196eb8 Cleanup gameState usage (#22692) 2024-09-04 07:34:37 +02:00
Harry Hopkinson
c1ac7c0700 Cleanup gameState usage 2024-09-02 22:42:37 +02:00
Aaron van Geffen
31527edbea Use named flags in RideGetPlacePositionFromScreenPosition (#22607) 2024-08-21 22:25:44 +02:00
Aaron van Geffen
5f37ba6615 Rename footpath height related constants 2024-08-16 21:18:33 +00:00
Aaron van Geffen
2a99b2f1f9 Rework modifier key state into strong enum class (#22558)
* Rework modifier key state into strong enum class

* Move modifier key state into InputManager
2024-08-14 16:36:05 +02:00
Michael Steenbeek
47800cddcf Change RTD flags to a strong enum 2024-08-13 20:20:25 +00:00
Michael Steenbeek
8ebacc1821 Close #19003: Change _currentTrackCurve to a struct 2024-08-11 21:35:29 +02:00
Gymnasiast
a436801d64 Remove TrackDrawerDescriptor::SupportsTrackGroup() 2024-08-11 15:27:12 +02:00
Gymnasiast
803f683f58 Update PreviewTrack field names 2024-08-11 15:15:45 +02:00
Gymnasiast
0ea9c5a2c2 Update TrackDefinition field names 2024-08-11 14:52:25 +02:00
Michael Steenbeek
f0c73cb9ef Specify track style icon and tooltip in RTD 2024-08-11 10:42:11 +00:00
Michael Steenbeek
07f54c22bd Create named enum for track group (#22523) 2024-08-11 09:26:19 +02:00
Aaron van Geffen
03bc1e5707 Introduce isToolActive function as alternative for globals (#22430)
* Introduce isToolActive function
* Ride window: use isToolActive instead of gCurrentToolWidget
* Footpath window: use isToolActive instead of gCurrentToolWidget
* Staff window: use isToolActive instead of gCurrentToolWidget
* MazeConstruction window: use isToolActive instead of gCurrentToolWidget
* Guest window: use isToolActive instead of gCurrentToolWidget
* Map window: use isToolActive instead of gCurrentToolWidget
* LandRights window: use isToolActive instead of gCurrentToolWidget
* Replace SceneryToolIsActive legacy function with calls to isToolActive
* ClearScenery window: use isToolActive instead of gCurrentToolWidget
* Scenery window: use isToolActive instead of gCurrentToolWidget
* Water window: use isToolActive instead of gCurrentToolWidget
* Land window: use isToolActive instead of gCurrentToolWidget
* Widget: replace WidgetIsActiveTool with isToolActive
* RideConstruction window: use isToolActive instead of gCurrentToolWidget
* Ride: use isToolActive instead of gCurrentToolWidget
* TrackDesignPlace window: use isToolActive instead of gCurrentToolWidget
* StaffList window: use isToolActive instead of gCurrentToolWidget
* ViewClipping window: use isToolActive instead of gCurrentToolWidget
* PatrolArea window: use isToolActive instead of gCurrentToolWidget
* TileInspector window: use isToolActive instead of gCurrentToolWidget
* Park window: use isToolActive instead of gCurrentToolWidget
2024-08-05 10:47:36 +02:00
Gymnasiast
9294a58e98 Change TrackDescriptor field names to lowerCamelCase 2024-08-03 12:51:25 +02:00
Duncan
a07b56a655 Move Viewport functions into Ui (#22454)
* Move viewport functions into ui

* Move footpath function to ui

* Don't include viewport in footpath.h

* Include missing includes
2024-08-02 06:01:31 +01:00
Aaron van Geffen
e782635498 RideConstruction: move virtual floor to UI counterpart (#22428) 2024-07-31 22:01:34 +02:00
Aaron van Geffen
89ccda19ce Move WindowRideConstructionUpdateActiveElements out of _legacy.cpp 2024-07-31 20:12:23 +02:00
mrmbernardi
9ed5c63857 Rename Location.hpp constants (#22385) 2024-07-26 10:23:25 +02:00
lewyche
62467199ed Fix #22265: Track button doesn't stay pressed 2024-07-25 09:44:11 +02:00
Aaron van Geffen
3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Gymnasiast
2c7d2fff7c Move track design appearance to its own struct 2024-07-02 22:35:19 +02:00
Aaron van Geffen
15ee05dfb0 Rename kNumOrthogonalDirections constant 2024-07-01 17:29:37 +02:00
Arnold Zhou
4975e79bac Close #22171: Make track section navigation buttons holdable 2024-06-26 08:33:14 +02:00
spacek531
a25daf2fc1 Small max speed changes 2024-06-05 02:45:44 +02:00
spacek531
6ba33b735a Fix #22038: Upward helix button missing 2024-05-16 12:53:55 +02:00
spacek531
6df16c7946 Clean up more ride type references 2024-05-13 09:20:51 +02:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen
fa90a84d22 Make construction and removal buttons holdable (#21950)
* Footpath: make construction button holdable

* RideConstruction: make construction button holdable

* Allow repeated removal as well

* Amend changelog
2024-05-05 11:38:49 +00:00
Michał Janiszewski
7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
Michael Steenbeek
921860729b Merge pull request #21850 from Gymnasiast/backport/brake-stuff
Small backport of changes for #15314
2024-04-30 13:57:37 +02:00
Michael Steenbeek
44c442f832 Fix #21870: Demolishing flat ride in pause mode allows copies 2024-04-30 13:50:04 +02:00
Gymnasiast
00618c79d2 Rename _currentBrakeSpeed2 to _currentBrakeSpeed 2024-04-30 13:39:49 +02:00
Gymnasiast
dbbfc2f1d1 Create kMaximumBrakeSpeed 2024-04-30 13:39:49 +02:00
Michael Steenbeek
c4c706c59c Merge pull request #21796 from Harry-Hopkinson/refactor-constants-Window.h
Replace constant notation in Window.h
2024-04-21 01:18:40 +02:00
Karsten Van Fossan
137099a429 Close #18305: Move Translate3DTo2DWithZ() from Map.h into Viewport.h
Translate3DTo2DWithZ move to Viewport.h as suggested by ducanspumpkin and update references. Remove redundant function Translate3Dto2D.
2024-04-21 01:18:11 +02:00
Harry Hopkinson
b05dcb3dfe Close #21837: Formatter is overwritten in RideConstruction.cpp
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2024-04-20 13:49:36 +00:00
Harry-Hopkinson
9fa917ae57 Rename SPINNER_HEIGHT to kSpinnerHeight 2024-04-14 16:56:33 +00:00
Gymnasiast
c158854a7f Move Park into namespace, add other park-related things to struct 2024-04-04 18:14:27 +02:00
Gymnasiast
96c9b7d85d Refactor track paint functions and available pieces in RTD 2024-03-30 00:33:35 +01:00
Claudio Tiecher
ffb8b4d44b Part of #21421: Refactor MAXIMUM_MAP_SIZE_TECHNICAL 2024-03-25 16:17:32 +01:00
CoryY
3f81a491b0 Close #21569: Remove 'Window' from Window Open function names (#21613)
* Close #21569: Remove 'Window' from Window Open function names

Windows are all under the OpenRCT2::Ui::Windows namespace. As such, "Window" is removed from the Open functions names.

* Update Contributors.md

* Fix formatting TrackMangeOpen

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

* Fix formatting TrackPlaceOpen

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-03-17 06:37:46 +00:00
Michael Steenbeek
9ebe65b55a Fix building sloped banked 3×3 turns when coaster also has 1×1 turns
This fixes a bug that would prevent the user from building 3×3 banked sloped turns, if the roller coaster also had 1×1 flat turns enabled.
The Spinning Roller Coaster that @RealSteel89 is working on is the first one to do so, revealing this bug.
2024-03-10 14:35:18 +00:00
Duncan
7a60e7f2e0 OpenRCT2::Ui::Windows namespace for OpenRCT2 Ui Windows (#21559)
* Move all the windows into OpenRCT2::Ui::Windows namespace

* Fix missing symbol

* Clang format

* Call the correct FormatStringID
2024-03-10 13:52:35 +00:00
Duncan
3146d463bd Move Ui header items to OpenRCT2::Ui (#21546)
* Move ui definitions to ui project

* Enforce coding style

* Apply clang format

* Add clang tidy ignore

* Increase compiler happiness
2024-03-09 14:15:45 +00:00