Commit Graph
179 Commits
Author SHA1 Message Date
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
ζeh Matt 9dfd4f3b19 Rename the callback types 2024-12-04 20:43:55 +02:00
ζeh Matt 53d1c27771 Fix a few more missing callback misuses 2024-12-04 18:46:56 +02:00
Michael Bernardi 8cc53324b6 Remove view width and height from Viewport struct 2024-09-27 00:07:40 +10:00
Michael Steenbeek a53784551b Move _legacy.cpp contents to UI project (#22811) 2024-09-22 21:00:52 +02:00
Gymnasiast 4ff99d6fd1 Confine provisional paths to Footpath.cpp 2024-09-06 23:31:50 +02:00
Gymnasiast ab3e919678 Move removal/restoring of provisional elements to UI project 2024-09-06 23:31:50 +02:00
Aaron van Geffen 0c97e44be0 Move GetInputManager and GetShortcutManager declarations (#22565) 2024-08-14 14:15:44 +01:00
Aaron van Geffen 6e444ea170 Split off MouseInput.h from Input.h (#22564)
* Move declarations from Input.h into new MouseInput.h

* Remove unused GetNextKey function from MouseInput.cpp
2024-08-14 14:14:16 +01:00
Michael SteenbeekandAaron van Geffen 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 706fd8f3f0 Fix #21175: Some hotkeys don't work when toolbars are hidden 2024-07-31 21:54:10 +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 5ae97d4d3b Move title version info to its own window (#22302) 2024-07-15 22:33:01 +03:00
Aaron van Geffen c9de56471d Allow customising the progress string format
Fixup: deal with -Wdeprecated-anon-enum-enum-conversion warning
2024-05-20 21:37:40 +02:00
Aaron van Geffen 804f63e52a Use new progress window for network transfers 2024-05-20 20:53:37 +02:00
Aaron van Geffen 539bb5487e Introduce context functions and intents for progress window 2024-05-20 16:28:00 +02:00
Aaron van Geffen e6fac7f870 Introduce progress/loader window 2024-05-19 22:05:05 +02:00
Aaron van Geffen a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Aaron van Geffen 347ce53f26 Re-introduce message on successful screenshot (#21983)
* Re-introduce message on successful screenshot

* Automatically close previous screenshot notices before new ones
2024-05-10 15:04:12 +02:00
Duncan 5a70fd97fb Move vehicle sounds update into Ui library (#21577)
* Move vehicle sounds update into Ui library

* Add missing statics

* Apply review comments

* Sprinkle some const

* Clang format accumulate
2024-03-20 11:14:52 +00:00
CoryYandTulio Leao 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
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
ζeh Matt 2661cf8772 Refactor out all uses of gCurrentRotation, remove gCurrentRotation 2024-03-05 10:23:28 +02:00
James103 1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Michael Bernardi d2b6419055 Add intents to the TileManager UI 2023-08-12 22:00:29 +02:00
mrmbernardi d2db5f0f16 No longer limit banner count in intent (#20650) 2023-07-25 06:22:21 +01:00
duncanspumpkin a68865d016 Remove all references to title editor
The title editor is now a plugin and these codepaths could only be reached during bugs :)
2023-06-29 08:14:29 +01:00
Duncan d40102aa9d Remove some uncommon variables and break unions (#20440) 2023-06-27 06:34:06 +01:00
duncanspumpkin 9b8b672507 Finish linking up parts 2023-06-20 08:42:25 +01:00
ζeh Matt 2f8e208a9d Refactor sprite_index to Id 2023-01-27 19:21:57 +02:00
Duncan e09f27df3c Rename snake_case Class names (Remaining Bits) (#19237)
* Rename snake_case Class names

* Clang format

* Fix build issues
2023-01-21 19:57:17 +00:00
Hielke Morsinkandduncanspumpkin 6b7dc8fcdb Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01:00
Stephan Spengler 76b918e7ed Change openrct2/ride methods to UpperCamelCase, part 1 2023-01-17 01:32:54 +01:00
Gymnasiast 5309c80e29 Remove snake_case in interface folder 2023-01-16 22:20:41 +01:00
Hielke Morsink 6dafbbfb65 Rename global window functions to TitleCase (#19167) 2023-01-16 20:13:42 +00:00
Gymnasiast 5c916bbaea Create a Contributors window instead of a tab 2023-01-14 00:57:16 +01:00
Michael Steenbeek 412bf8f8be Use ride references instead of pointers 2023-01-07 14:02:18 +01:00
James103 73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Rik Smeets 9688d93e46 Open campaign tab from finished campaign news
When a marketing campaign is finished, it is likely the player wants to renew it.
This change allows the ‘Campaigns’ tab in the 'Finances' window to be opened from the news item of the finished campaign.
2022-11-18 13:26:52 +01:00
Hielke Morsink f91df4138c Merge pull request #18359 2022-10-18 23:39:49 +02:00
Thamara Andrade 9edb3966fb Close #13785: Refactor NetworkStatus window to class (#18302) 2022-10-18 06:54:01 -03:00
Hielke Morsink f605b02630 Rename public interface config data members 2022-10-16 21:46:05 +02:00
Ted John 331a5961b1 Implement asset packs for audio 2022-10-01 13:06:52 +01:00
73 b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Michael Steenbeek 31e2d7692c Rename more instances of “vehicle” to “train” 2022-09-22 11:22:18 +02:00
Hielke Morsink 7f29e4e39c Make rct_windowclass strong type WindowClass
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Gymnasiast d3fd31c611 Rename rct_string_id to StringId 2022-07-31 22:30:13 +02:00
Raymond Zhao 7399163a3c Use more smart ptrs and u8strings (#17611)
* Use smart ptr for PlatformUiContext and WindowManager

* Remove more delete calls

* Apply PR feedback
2022-07-28 18:19:38 +01:00
Michael Steenbeek 1a8660d59d Pass window reference to tool_set (#17625) 2022-07-27 22:22:22 -03:00
Raymond Zhao 4f23e5e9ec Refactor struct TrackDesignFileRef
- Refactors track_design_file_ref to TrackDesignFileRef and replaces the utf8* fields of that struct with u8string
- Gets rid of some String::Duplicate() and delete calls
- Uses a bunch of c_str() calls to interface with older functions
2022-07-26 16:12:46 +00:00