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

26696 Commits

Author SHA1 Message Date
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
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
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
Michał Janiszewski
f0dde413d2 Start v0.4.14 2024-08-04 21:38:43 +02:00
Michał Janiszewski
3ca42fdaf1 Merge branch 'master' into develop 2024-08-04 21:38:12 +02:00
Michał Janiszewski
caacd4d7be Release v0.4.13
- Feature: [#19596] Allow for playing back a replay without camera movement or alert box.
- Feature: [#20831] The ride selection window now shows object authors if debugging tools are active.
- Feature: [#20832] The ride music tab now shows a track listing for the current music style.
- Feature: [#22172] [Plugin] Expose ride satisfaction ratings to the plugin API.
- Feature: [#22184] [Plugin] Expose staff statistics to the plugin API.
- Feature: [#22213] [Plugin] Allow plugins to focus on textboxes in custom windows.
- Feature: [#22272] [Plugin] Expose ride vehicle’s current track type via car trackLocation.
- Feature: [#22301] Loading save games or scenarios now indicates loading progress.
- Feature: [OpenMusic#54] Added Progressive ride music style (feat. Approaching Nirvana).
- Improved: [#22352] The object selection window now groups relevant object tabs together.
- Improved: [#22357] Error messages are now themeable and easier to read.
- Improved: [#22361, objects#342, objects#343] Add additional colour presets to the Observation Tower, Twist, and Ferris Wheel.
- Improved: [#22433] Increase the network timeout from 7 to 20 seconds, should help slow clients getting disconnected.
- Improved: [#22437] File indexing now properly uses all CPU power, improving object and scenario indexing.
- Improved: [#22449] Reduced the time it takes to load and index objects, scenarios and tracks.
- Change: [#12292] The ‘Toggle visibility of toolbars’ shortcut is no longer assigned by default.
- Change: [#21494] Display pixel density is now taken into account for the initial window scale setting.
- Change: [#22230] The plugin/script engine is now initialised off the main thread.
- Change: [#22251] Hide author info in the scenery window unless debug tools are active.
- Change: [#22283] Let heavy snow and blizzard increase chance of brakes failure.
- Change: [#22309] The scenario editor now supports loading landscapes from .sea save files.
- Fix: [#17390] Glitchy animations for the ride type tabs in the object selection window.
- Fix: [#19210] The load/save window executes the loading code twice, resulting in a slowdown.
- Fix: [#21175] Terraform tool hotkeys don't work when toolbars are hidden.
- Fix: [#22056] Potential crash upon exiting the game.
- Fix: [#22101] Wrong tunnel shapes on Log Flume and Giga, Hybrid, Single-Rail and Alpine Coasters.
- Fix: [#22208] Cursor may fail to register hits in some cases (original bug).
- Fix: [#22209] Water tool selection may disappear near edge of map.
- Fix: [#22222] Staff list may remain invalid when changing tabs.
- Fix: [#22265] Button for switching covered tracks on slides doesn’t stay pressed.
- Fix: [#22284] Unrated rides cause high amount of nausea.
- Fix: [#22292] Progress bar widgets in guest and ride windows are not updating correctly.
- Fix: [#22304] Graphs don’t draw lines on the left edge of the screen.
- Fix: [#22308] OpenGL draws lines incorrectly in some cases.
- Fix: [#22318] Water sparkles are missing if transparent water is enabled without RCT1 linked.
- Fix: [#22333] Tile inspector closes other tool windows.
- Fix: [#22339] Printing ui.tool.cursor in console crashes the game.
- Fix: [#22348] Progress bar screen doesn’t handle window resizing.
- Fix: [#22389] Alpine coaster has wrong tunnel entrance type.
- Fix: [#22435] [Plugin] Off-by-one pixel issue in active widget width and height setters.
v0.4.13
2024-08-04 19:53:53 +02:00
Michał Janiszewski
e2a9416845 Merge branch 'develop' 2024-08-04 19:44:17 +02:00
Michael Steenbeek
ad3e98f339 Fix #22416: Water tool grid is one tile too small for even sizes (#22471) 2024-08-04 03:17:04 +02:00
Aaron van Geffen
d574946c1a Remove includes of Cursors.h in object header files 2024-08-03 20:46:58 +02:00
Aaron van Geffen
5b1c867f23 Add bulldozer cursor for clear scenery tool 2024-08-03 20:44:12 +02:00
Aaron van Geffen
7aaff77125 Replace hardcoded cursor bytes with ASCII art bitmaps 2024-08-03 20:38:29 +02:00
Aaron van Geffen
54db35397c Introduce CursorData.h; rename constants 2024-08-03 20:07:15 +02:00
Gymnasiast
a73310e2bd Fix formatting of TrackData.cpp 2024-08-03 12:51:29 +02:00
Gymnasiast
a984532ff1 Rename MaxSequencesPerPiece to kMaxSequencesPerPiece 2024-08-03 12:51:29 +02:00
Gymnasiast
9294a58e98 Change TrackDescriptor field names to lowerCamelCase 2024-08-03 12:51:25 +02:00
mrmbernardi
1f411ad792 Merge pull request #22200 from mrmbernardi/fix_lines
Improve line drawing code
2024-08-03 17:15:18 +10:00
OpenRCT2 git bot
e43859636a Merge Localisation/master into OpenRCT2/develop 2024-08-03 04:02:00 +00:00
Gymnasiast
6949c62529 Turn SpinFunction into strong enum 2024-08-02 23:55:23 +02:00
Gymnasiast
4572331409 Move TrackData.{cpp,h} into OpenRCT2::TrackMetaData namespace 2024-08-02 23:55:23 +02:00
tmatale
45d3105508 Fix #22292: Progress bars displayed incorrectly if multiple windows are open 2024-08-02 22:41:40 +02:00
Michael Steenbeek
84d5e80634 Update objects to v1.4.7 2024-08-02 22:25:45 +02:00
Basssiiie
e2641668a4 Fix off-by-one pixel issue in active widget width and height setters 2024-08-02 19:16:22 +00:00
Michael Bernardi
0b50ef6fd2 Added line clipping code to OpenGL renderer 2024-08-03 02:47:57 +10:00
Michael Bernardi
ef97216ea1 Line drawing code now supports all zoom levels. 2024-08-03 02:46:10 +10:00
Aaron van Geffen
b1e2ca94c7 Fix clear scenery window closing (again) (#22456)
* Move ClearSceneryToolIsActive into ClearScenery window

* Actually apply/paint map selection in clear scenery tool

* LandRightsWindow: fix invalidation
2024-08-03 02:17:21 +10: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