Duncan
144fa13a84
Move more Ui functions to Ui library ( #22444 )
...
* Move various methods into the ui library
* Move various zoom functions to ui
2024-08-01 19:09:06 +00:00
Michał Janiszewski
b1e14c676d
Fix renderer creation for HW display engine ( #22445 )
...
SDL requires a renderer to be created in an empty window, i.e. one
without any other renderer nor surface. Leaving the window with earlier
surface from another engine (e.g. when switching from SW to SW+HWD)
caused no renderer to be created (_sdlRenderer set to nullptr) and
setting up a bomb to explode next time we try to render a frame.
I think this can also get triggered when resizing/switching the focus of
a window.
While SDL already has internal checks for window surface presence in
`SDL_DestroyWindowSurface` _in the SDL version I checked_, I have no
certainty if this is correct for all of them. I added check for window
surface presence to better express the code intent as well.
`SDL_DestroyWindowSurface` was introduced in SDL 2.28
This should take care of most of the `BlitPixel`, `DrawRLESpriteMinify`
issues reported by backtrace.
2024-08-01 19:31:34 +02:00
Matt
27febaacce
Increase network timeout, small refactors ( #22433 )
...
* Refactor consts with kNotion, make static
* Increase the no data timeout to 20 seconds, add constant
* Fix debug builds
* Update changelog.txt
2024-08-01 10:50:50 +02:00
Duncan
73d51431fd
Fix vcxproj file compiling headers ( #22443 )
2024-08-01 09:52:21 +02:00
Aaron van Geffen
dcea499327
Fix clear scenery window closing immediately ( #22442 )
2024-08-01 07:48:16 +00:00
Aaron van Geffen
30e890c256
Merge pull request #22411 from AaronVanGeffen/cleanup-top-toolbar
...
Move tool event functions out of top toolbar
2024-07-31 22:13:53 +02:00
Michael Steenbeek
e5a6cccd5c
Split RTD, track and vehicle drawing
2024-07-31 20:10:55 +00:00
Aaron van Geffen
e782635498
RideConstruction: move virtual floor to UI counterpart ( #22428 )
2024-07-31 22:01:34 +02:00
Aaron van Geffen
706fd8f3f0
Fix #21175 : Some hotkeys don't work when toolbars are hidden
2024-07-31 21:54:10 +02:00
Aaron van Geffen
b09e9fdf56
Move ToggleFootpathWindow into Footpath.cpp
2024-07-31 21:54:10 +02:00
Aaron van Geffen
2508a6020c
Clean up tool events for custom scripts in TopToolbar.cpp
2024-07-31 21:54:10 +02:00
Aaron van Geffen
15d87a6aae
Move many terraform related globals into their window classes
2024-07-31 21:54:09 +02:00
Aaron van Geffen
3a54d1b720
Move clear scenery tool functions from TopToolbar.cpp into ClearScenery
2024-07-31 21:53:35 +02:00
Aaron van Geffen
c9915efc11
Move scenery tool functions from TopToolbar.cpp into Scenery.cpp
2024-07-31 21:53:35 +02:00
Aaron van Geffen
bb4a357214
Move water tool functions from TopToolbar.cpp into Water.cpp
2024-07-31 21:53:35 +02:00
Aaron van Geffen
bae80ecfad
Move land tool functions from TopToolBar.cpp into Land.cpp
2024-07-31 21:53:34 +02:00
Aaron van Geffen
d1ca17adef
Remove ScenerySetDefaultPlacementConfiguration from _legacy.cpp
2024-07-31 20:12:23 +02:00
Aaron van Geffen
b0b048f3d5
Remove SceneryInit by using Intent directly instead
2024-07-31 20:12:23 +02:00
Aaron van Geffen
89ccda19ce
Move WindowRideConstructionUpdateActiveElements out of _legacy.cpp
2024-07-31 20:12:23 +02:00
Tomáš Chvojka
5dc782c0ee
Let heavy snow and blizzard increase chance of brakes failure ( #22283 )
2024-07-31 14:13:27 +00:00
Duncan
3393fa36d3
Move Ui window functions into Ui library ( #22426 )
...
* Move scroll widget functions
* Move window move functions
* De-snake
* Move further functions to ui
* Move widget function to widget file
* Move window create to ui
2024-07-31 15:06:19 +01:00
Duncan
681b54dc87
Add Some Items to the OpenRCT2::Ui namespace ( #22423 )
...
* Put widget in the Ui namespace
* Put theme in the Ui namespace
* Put objective in Ui namespace
2024-07-31 05:26:53 +01:00
Aaron van Geffen
bd0dd44c10
Don't assign Toggle Toolbars keyboard shortcut by default ( #22424 )
2024-07-30 21:41:27 +00:00
Gymnasiast
141ad4c810
Fix #22101 : Wrong tunnel type on newly added elements
2024-07-30 23:20:24 +02:00
Gymnasiast
b20a2ccfee
Name tunnel types 12 to 15
2024-07-30 22:46:54 +02:00
lewyche
79ceb2d5cb
Fix #22389 : Alpine coaster has wrong tunnel entrance type
2024-07-30 22:33:13 +02:00
Aaron van Geffen
67fa13f4ac
Move window shim definitions into Widget.h ( #22412 )
...
* Move window shim definitions into Widget.h
* Remove unnecessary TileInspectorGlobals.h include from Window.h
* Remove Ride.h include from Window.h
2024-07-29 22:31:57 +02:00
Aaron van Geffen
ed5f53e652
Set window title for sub-tabs as well
2024-07-28 18:34:02 +02:00
Aaron van Geffen
15944738c7
Update filter dropdown caption with (number of) active source(s)
2024-07-28 15:40:44 +02:00
Aaron van Geffen
2be82c280d
Replace macros with isFilterActive function
2024-07-28 14:57:56 +02:00
Aaron van Geffen
b87e8fd193
Group entrances and terrain objects as well
2024-07-28 14:52:35 +02:00
Aaron van Geffen
a55b1ec17c
Refactor preview pane positioning logic
2024-07-23 14:10:39 +02:00
Aaron van Geffen
bc04f2be65
Make filter dropdown an actual dropdown
2024-07-23 14:29:09 +02:00
Aaron van Geffen
76f295b7be
Make 'advanced' object selection mode the only mode
...
This removes the ObjectPageFlags again
2024-07-23 13:37:01 +02:00
Aaron van Geffen
92c92e6316
Move tabs with sub-tabs to start of the tab strip
2024-07-23 13:29:54 +02:00
Aaron van Geffen
1de7cb433e
Introduce sub-tabs for scenery-related object types
2024-07-23 13:28:59 +02:00
Aaron van Geffen
3b4c5ce3ef
Introduce sub-tabs for path-related object types
2024-07-23 13:26:23 +02:00
Aaron van Geffen
a2a6deaf7b
Object selection window: generalise sub-tab logic
...
* Introduce ObjectSubTab struct and kRideObjectSubTabs
* Make subtab frame non-interactible
* Give sub-tab widgets a more general name
* Integrate TabOrder into ObjectSelectionPages
* Apply filter from subpage definition
* Rewrite GetSelectedObjectType to account for sub-tabs
* Improve sub-tab toggling behaviour
2024-07-22 15:47:34 +02:00
Aaron van Geffen
6b72aaed0c
Make UtilBitScanForward a header implementation ( #22406 )
2024-07-28 19:43:07 +00:00
Aaron van Geffen
51816d2bd5
Disambiguate calls to UtilBitScanForward ( #22402 )
2024-07-28 18:44:59 +02:00
Michael Steenbeek and Aaron van Geffen
a0be444d24
Improve contrast for error messages
...
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2024-07-28 11:19:59 +02:00
Aaron van Geffen
0df7e41f59
Fix #17390 : Object selection ride tab uses wrong animations ( #22351 )
...
* Object selection ride tab uses wrong animations
* Keep track of currently selected sub-tab
* Add changelog entry
2024-07-27 21:54:19 +02:00
Aaron van Geffen
b02d461b02
Make SoftwareWithHardwareDisplay the default drawing engine ( #22346 )
2024-07-27 19:53:11 +02:00
mrmbernardi
9ed5c63857
Rename Location.hpp constants ( #22385 )
2024-07-26 10:23:25 +02:00
Aaron van Geffen
05e56517ab
Adopt existing namespaces into OpenRCT2 namespace ( #22368 )
...
* Put all of TitleSequenceManager into the same namespace
* Move RideConstructionState into the OpenRCT2 namespace
* Adopt existing namespaces into OpenRCT2 namespace
This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Andrew
df07d9cb2b
Close #19596 : Disable replay effects with a startup flag ( #22303 )
2024-07-25 17:29:01 -03:00
Guy Sviry and Guy Sviry
30a555d3c2
Expose vehicle.trackType to scripting ( #22272 )
...
Co-authored-by: Guy Sviry <guy@axissecurity.com >
2024-07-25 17:27:15 -03:00
Duncan
06bb987979
Add missing string includes ( #22378 )
2024-07-25 10:56:32 +02:00
lewyche
62467199ed
Fix #22265 : Track button doesn't stay pressed
2024-07-25 09:44:11 +02:00
Arnold Zhou
a749698566
[Plugin API] Feat: Expose staff statistics ( #22184 )
2024-07-24 20:10:34 -03:00