1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00
Commit Graph

26719 Commits

Author SHA1 Message Date
Aaron van Geffen
482071a5ba LandRights: deduplicate OnToolDown, OnToolDrag 2024-08-02 14:37:10 +02:00
Greg
dae5b00f05 Close #22509: Refactor SPR_NONE to ImageIndex (#22517)
* ImageIndex typedef moved from ImageId.hpp to new file ImageIndexType.h.

* SPR_NONE redefined as ImageIndex type in ImageIndexType.h.

* SPR_NONE renamed to kSpriteIdNull

* Remove casts and enum all sprites as ImageIndex

* Remove sprites.h include from LandTool.h, RideData.h

* Ensure all RTD headers include sprites.h

---------

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-08-11 09:58:28 +00:00
mrmbernardi
c7159aa81e Variable padding for finance graph Y axis labels (#22498)
Also fixes overflows during plotting
2024-08-11 11:35:00 +02:00
lewyche
e2551821f3 Close #20942: Add button to remove park fences
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
2024-08-11 09:31:57 +00:00
Aaron van Geffen
924f7ec6c3 Fix scenery window scrollbar disappearing 2024-08-11 10:56:39 +02:00
Matt
bbba91de78 Actually toggle vsync instead of re-initialising the entire thing again 2024-08-11 09:54:40 +02:00
Michael Steenbeek
07f54c22bd Create named enum for track group (#22523) 2024-08-11 09:26:19 +02:00
Aaron van Geffen
af2544a50f Merge pull request #22491 from AaronVanGeffen/hide-scroll
Hide scrollbars when there is nothing to scroll
2024-08-09 20:03:25 +02:00
Aaron van Geffen
bc055f4031 Replace SCROLLBAR_SIZE macro with kScrollBarWidth constant 2024-08-09 19:48:04 +02:00
Aaron van Geffen
cbf739cf55 Map window: don't add padding for invisible scrollbars 2024-08-09 19:48:04 +02:00
Aaron van Geffen
44e8c0dc68 Ride window: remove logic to hide scrollbars manually 2024-08-09 19:48:04 +02:00
Aaron van Geffen
97c14f27ed Hide scrollbars when there is nothing to scroll 2024-08-09 19:48:04 +02:00
Michael Steenbeek
6255ebe1e1 Merge pull request #22504 from Gymnasiast/refactor/support-tables
Use tables for wooden support placement
2024-08-09 19:28:58 +02:00
Gymnasiast
2e9db4bc9b Use new support calls in APVC
Exluding the slope up
2024-08-09 19:18:30 +02:00
Gymnasiast
a0613327c3 Use new support call in Heartline Twister C 2024-08-09 19:18:30 +02:00
Gymnasiast
1cf0a415f2 Update WoodenWildMouse.cpp with new support call 2024-08-09 19:18:30 +02:00
Gymnasiast
0a33719a96 Add wooden support data to TED
Co-authored-by: AaronVanGeffen <AaronVanGeffen@users.noreply.github.com>
2024-08-09 19:17:59 +02:00
Michael Steenbeek
1a0b585d1b Merge pull request #22507 from Gymnasiast/refactor/path-supports-call
Condense common wooden support code
2024-08-09 16:10:38 +02:00
AuraSpecs
f9f6bca14c Consistify & genericify lattice triangle track
This PR renames all instances of "Giga" or "Intamin" with "Lattice Triangle" to prepare for 3 additional ride types using this track type.
2024-08-09 13:19:48 +02:00
Matt
41a6e9d252 Fix #21908: Errors showing up when placing/moving track design previews 2024-08-07 22:36:50 +02:00
Michael Steenbeek
37859f4728 Merge pull request #21999 from spacek531/add-flag-too-json
Allow setting “no draw on zoom flag” in image JSON
2024-08-07 20:34:47 +02:00
Gymnasiast
d90897fbee Refactor import flags 2024-08-07 20:15:59 +02:00
Gymnasiast
a70591e160 Condense common wooden support code 2024-08-07 20:04:08 +02:00
Guy Sviry
332df0f1db expose Vehicle.spin_sprite to Car scripting (#22392)
* expose spinSprite to Car scripting

---------

Co-authored-by: Guy Sviry <guy@axissecurity.com>
2024-08-07 18:13:33 +01:00
Gymnasiast
7236b119ec Refactor Byte98D8D4 to kSlopedPathSupportsDescriptor 2024-08-07 19:10:24 +02:00
Gymnasiast
c22a7466f1 Rename UnkSupportsDescriptor to SlopedSupportsDescriptor 2024-08-07 19:07:52 +02:00
Gymnasiast
89d8185bb4 Extract PaintSlopeTransitions() 2024-08-07 19:07:30 +02:00
Gymnasiast
24fa24e2ce Extract PaintRepeatedWoodenSupports() 2024-08-07 18:57:19 +02:00
Spacek531
9f5b344a46 Allow setting “no draw on zoom flag” in image JSON 2024-08-07 18:19:30 +02:00
Michael Steenbeek
2f39ee55f7 S4: Remove duplicate call to CreateAvailableObjectMappings() 2024-08-07 13:20:19 +02:00
mrmbernardi
9f0125b509 Fix finance graph maximum finding algorithm. (#22488) 2024-08-06 02:29:21 +10:00
mrmbernardi
0e1ba1cacd Merge pull request #22414 from mrmbernardi/fix-graphs
Improve financial and park history graphs
2024-08-06 01:10:05 +10: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
Michael Bernardi
380cdb0c45 Added changelog for graphing improvements 2024-08-05 15:55:37 +10:00
Michael Bernardi
5742577c95 New Y axis label algorithm for finance graphs. 2024-08-05 15:37:22 +10:00
Michael Bernardi
82f658963f Improve readability of hover tooltip
Also removed reliance on the localisation table.
2024-08-05 15:37:22 +10:00
Michael Bernardi
f4a1d22662 Draw park graphs with new method.
Also clean up constants and includes.
2024-08-05 15:37:21 +10:00
Michael Bernardi
9e2eb73aa7 Extract window specific logic from Graph.cpp 2024-08-05 15:37:21 +10:00
Michael Bernardi
56dd6c9bdf Refactor finance graphs in Graph.cpp 2024-08-05 15:37:21 +10:00
Michael Bernardi
713858bba3 Refactor Finances.cpp graphs 2024-08-05 15:37:21 +10:00
Aaron van Geffen
7f46cc8bd0 Update ClearScenery tool events to use Tool::Bulldozer (#22485) 2024-08-04 20:19:28 -03:00
Michael Steenbeek
e813532efb Close #15750: Multiple park entrance types in one park (#21909)
* Add new park entrance placement window

* Start entrance tool as soon as window opens;

* Rename constants to conform to current code standards

* Increment PARK_FILE_CURRENT_VERSION

* Increment kNetworkStreamVersion

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-08-04 23:02:16 +00:00
Aaron van Geffen
b637bcb60a Merge pull request #22466 from AaronVanGeffen/refactor-cursors
Replace hardcoded cursor bytes with ASCII art bitmaps
2024-08-04 23:32:50 +02:00
Michał Janiszewski
23c0274012 Drop release version from readme.txt 2024-08-04 20:23:27 +00:00
AuraSpecs
cdc5fd0a27 Update Hybrid RC maximum lift speed 2024-08-04 20:17:14 +00:00
Michael Steenbeek
069002641e Do not rotate kSegmentsAll
Rotating kSegmentsAll is unnecessary (the result always being the same as the input), so save a few cycles by not bothering.
2024-08-04 21:53:50 +02:00
Michael Steenbeek
465f62fbc9 Condense Mine Ride drawing code a bit (#22436) 2024-08-04 21:50:16 +02:00
Michael Steenbeek
ceb04733ee Merge pull request #22453 from Gymnasiast/refactor/track-data-in-namespace
Refactor TrackData.h
2024-08-04 21:46:43 +02:00
Harry Hopkinson
9ff90adf87 Adjust more constants to new constexpr notation (#22463)
* Rename DUCK_MAX_STATES to kDuckMaxStates

* Rename DuckMoveOffset to kDuckMoveOffset

* Rename DuckAnimationFlyToWater to kDuckAnimationFlyToWater

* Rename DuckAnimationSwim to kDuckAnimationSwim

* Rename DuckAnimationDrink to kDuckAnimationDrink

* Rename DuckAnimationDoubleDrink to kDuckAnimationDoubleDrink

* Rename DuckAnimationFlyAway to kDuckAnimationFlyAway

* Rename DuckAnimations to kDuckAnimations

* Rename ReplayVersion to kReplayVersion

* Rename ReplayMagic to kReplayMagic

* Rename ReplayCompressionLevel to kReplayCompressionLevel

* Rename NormalRecordingChecksumTicks to kNormalRecordingChecksumTicks

* Rename SilentRecordingChecksumTicks to kSilentRecordingChecksumTicks

* Rename WindowButtonsOnTheLeftDefault to kWindowButtonsOnTheLeftDefault
2024-08-04 21:46:32 +02:00
Michael Steenbeek
4d377e26b0 Small Cyrillic font fixes (#22469)
The Cyrillic `ј` was still using the old RCT2 glyph, rather than the new one we added. Also removed a copy-pasted, incorrect comment on `є`.
2024-08-04 21:45:26 +02:00