Commit Graph
166 Commits
Author SHA1 Message Date
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
DuncanandHielke Morsink a73df7e376 Remove Editor Main (#17348)
* Remove editor main window

* Remove editor main completely

* Update src/openrct2/Editor.cpp

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-06-07 08:26:58 +01:00
Kane 204f8ceac1 Add new Transparency options window.
Remove added options from Top Toolbar.
Move invisible ride code into ride paint functions.
Move invisible vehicle code into sprite paint function.
2022-03-14 21:37:41 +00:00
Hielke Morsink ba85cf4873 Close #15896: Refactor out the ZoomLevel operators 2022-02-26 23:14:59 +01:00
ζeh Matt d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
ζeh Matt 4554d6d883 Fix all uses of RideId 2022-02-12 18:11:18 +02:00
ζeh Matt a2470c0573 Rename ride_id_t to RideId 2022-02-12 18:11:18 +02:00
Duncan cdd3c28b2e Use intents to control scenery window (#16562)
* Use intents to control scenery window
2022-02-03 21:10:21 +00:00
frutiemax adb692b74e Forward declare Formatter 2021-12-30 12:17:51 -05:00
Gymnasiast ef6f2cceee Create RideConstruction.h 2021-12-18 20:27:13 +01:00
Hielke Morsink 53d9bfa8b4 Update implicit zoom conversions 2021-12-01 00:08:35 +01:00
ζeh Matt 56e78d5733 Merge pull request #15985 from ZehMatt/refactor/entities2
Refactor Sprite to Entity
2021-11-25 12:53:50 -08:00
ζeh Matt 03fb9b390f Rename Sprite to EntityRegistry 2021-11-24 17:04:12 +02:00
ζeh Matt 7c726e2a0c Fix includes 2021-11-24 16:48:33 +02:00