Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
35e117aca2
Rename String methods to use lowerCamelCase
2024-12-11 22:49:37 +01:00
Aaron van Geffen
a24dc2e60a
Reduce includes in and of Util.h/cpp
2024-12-11 20:42:43 +01:00
Aaron van Geffen
5442b20a7a
Move StrLogicalCmp, SafeStrCpy, SafeStrCat to String.hpp
2024-12-11 20:42:43 +01:00
ζeh Matt
9dfd4f3b19
Rename the callback types
2024-12-04 20:43:55 +02:00
Aaron van Geffen
9436a9501e
Move bitScanForward from Util.h to Numerics.hpp
2024-10-29 11:08:39 +01:00
Aaron van Geffen
b971d1596e
Indent window widget definitions ( #22700 )
...
* Indent definitions in About, AssetPacks windows
* Indent definitions in Banner, Changelog, CustomCurrency windows
* Indent DebugPaint, DemolishRidePrompt windows
* Indent EditorBottomToolbar, EditorInventionsList
* Indent EditorObjectiveOptions, EditorScenarioOptions
* Indent Finances
* Indent Footpath
* Indent GameBottomToolbar
* Indent Guest window
* Indent GuestList, InstallTrack windows
* Indent Land, LandRights windows
* Indent LoadSave, Main, MapGen, MapTooltip windows
* Indent MazeConstruction
* Indent Multiplayer
* Indent NetworkStatus
* Indent NewCampaign
* Indent NewRide window
* Indent News window
* Indent NewsOptions window
* Indent ObjectLoadError window
* Indent Options window
* Indent Park window
* Indent PatrolArea window
* Indent Player window
* Indent RefurbishRidePrompt window
* Indent Research window
* Indent Ride window
* Indent RideConstruction
* Indent RideList
* Indent SavePrompt
* Indent ScenarioSelect widgets
* Indent scenario window
* Indent scenery scatter window defs
* Indent server list window
* Indent server start window§
* Indent ShortcutKeys window
* Indent Sign window
* Indent Staff window
* Indent StaffFirePrompt window
* Indent StaffList window defs
* Indent Themes window defs
* Indent TileInspector window defs
* Indent TitleExit, TitleMenu, TitleOptions, Tooltip windows
* Indent TrackDesignManage window defs
* Indent TrackDesignPlace defs
* Indent TrackList def
* Indent Transparency window defs
* Indent ViewClipping window defs
* Indent Viewport window defs
* Indent Water window defs
2024-09-04 21:11:26 +02:00
Matt
d72e535117
Fix #22457 : Potential crash opening the scenario select window
2024-08-15 18:31:27 +02:00
Aaron van Geffen
51816d2bd5
Disambiguate calls to UtilBitScanForward ( #22402 )
2024-07-28 18:44:59 +02:00
Aaron van Geffen
3d5c19de08
Drop Localisation.h include where not required
2024-07-13 13:33:32 +02:00
Aaron van Geffen
c08541efc7
Remove gCommonStringFormatBuffer, CommonTextBufferSize
2024-07-13 13:25:55 +02:00
Aaron van Geffen
2a6061001b
Move kObjectiveNames to Objective unit
2024-07-12 23:50:59 +02:00
Aaron van Geffen
3fd91038c3
Rename Date.h to Localisation.Date.h to match unit file
2024-07-12 22:18:43 +02:00
Gymnasiast
8a181b5513
Split colours and colour flags
2024-05-26 12:35:40 +02:00
Aaron van Geffen
828aeadf5b
Deal with -Wdeprecated-anon-enum-enum-conversion warnings
2024-05-11 11:24:01 +02:00
Aaron van Geffen
a63d86c488
Introduce Config namespace and struct
2024-05-10 12:10:21 +02:00
Harry-Hopkinson
cd9ca1debb
Rename TOP_TOOLBAR_HEIGHT to kTopToolbarHeight
2024-04-14 18:12:58 +00:00
Michael Steenbeek
6eb96b1b07
Fix #21604 : Scenario selector shows incorrect guest objectives
2024-03-22 21:39:04 +01:00
CoryY
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
Harry Hopkinson
78d95fc0bd
Pass DrawPixelInfo by reference ( #21563 )
2024-03-10 12:00:08 -03: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
Duncan
3146d463bd
Move Ui header items to OpenRCT2::Ui ( #21546 )
...
* Move ui definitions to ui project
* Enforce coding style
* Apply clang format
* Add clang tidy ignore
* Increase compiler happiness
2024-03-09 14:15:45 +00: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
ζeh Matt
3ff527fb78
Refactor uses of ShortenPath
2023-08-10 14:39:47 +03: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
duncanspumpkin
aa93b8d041
Fix crash when selection scenarios
2023-06-29 08:07:35 +01:00
Duncan
0747ad7497
Remove even more window uncommon vars ( #20495 )
...
* Break uncommon union
* Move uncommon highlightedScenario into derived
* Split off multi use variable
* Adjust name
2023-06-27 22:33:26 +01:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Meehoi
936f017147
Fix #20096 : Server list window scroll is glitched when server list is empty ( #20099 )
...
* Fix initial scroll size of server list and change cast to int32_t
* set actual width for server list too
* add indentation
* fix pixel size of other scroll
* revert unnecessary changes
* add changelog entry
2023-05-06 17:01:14 +03:00
Gymnasiast
bb83a80eab
Use dpi ref in rect and line drawing functions
2023-04-11 22:59:01 +01:00
Gymnasiast
9c2d5b9fef
Make GfxDrawSprite() take reference
2023-04-11 22:53:30 +01:00
Duncan
437329bb13
Scenario select cleanup ( #19899 )
...
* Move private functions to privat
Fix init
* Minor style cleanup
* Apply review comments
* Apply further review comments
2023-04-11 22:47:53 +01:00
John Mulcahy
681f22748d
#13798 : Refactor ScenarioSelect to the new window system ( #19693 )
...
* reset branch and readd changes to clear unnecessary commits
* Apply suggestions from code review
Will include another commit addressing more in depth comments
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
* continued PR cleanup
* Clang formatting
* remainder of PR feedback corrections
* return from function to destroy window
* PR Feedback
* Apply minor feedback points
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2023-04-10 21:29:28 +01:00
Matthias Moninger
30e6eb9f08
Merge pull request #19422 from ZehMatt/string-duplicate
...
Remove String::Duplicate
2023-03-06 23:29:32 +02:00
Gymnasiast
a15f72da87
Pass DPI by ref to string drawing
2023-02-24 22:05:07 +01:00
ζeh Matt
b465b9d6e5
Use string to store ScenarioIndexEntry name
2023-02-19 23:59:15 +02:00
Matthias Moninger
7b61c6352a
Desnake some stuff, small string passing cleanup ( #19388 )
...
* Rename scenario_index_entry to ScenarioIndexEntry
* Desnake members of ScenarioIndexEntry
* Pass const u8string& instead of utf8 pointer
2023-02-13 20:30:16 +00: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
Duncan
859b071ddc
Rename classes with snakes OpenRCT2/A*-F* ( #19215 )
...
* Rename classes with snakes OpenRCT2/A*-F*
* Clang format files
2023-01-19 08:16:44 +00:00
Hielke Morsink
0762fcb601
Rename snake_case functions in OpenRCT2/util folder
2023-01-18 22:44:13 +01:00
Michael Steenbeek
12874f2af7
Replace format_string(4) with OpenRCT2::FormatStringLegacy() ( #19190 )
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 21:56:30 +01:00
Michael Steenbeek
bb55c6ce66
Remove loadsasnakes ( #19192 )
...
* Rename snake_case methods in scenario folder
* Rename snake_case methods in title folder
* Rename snake_case methods in object folder
* Rename snake_case methods in platform folder
* Rename snake_case methods in windows folder
* Rename tile_inspector.h to TileInspectorGlobals.h
* Rename snake_case methods in ui/windows folder
2023-01-17 19:46:55 +00:00
Michael Steenbeek
b4480b344e
Rename snake_case functions from localisation folder
2023-01-16 23:12:35 +00:00
Duncan
8504c8d05e
Finish Removing snake_case from Drawing Methods
2023-01-16 22:31:34 +00:00
Hielke Morsink
6dafbbfb65
Rename global window functions to TitleCase ( #19167 )
2023-01-16 20:13:42 +00:00
Duncan
7f5934cc95
Remove snake_case from second chunk of Drawing ( #19166 )
2023-01-16 18:52:17 +00:00
Duncan
8a8d3105f3
Remove snake_case from first chunk of Drawing ( #19164 )
...
* Remove snake_case from first chunk of Drawing
* Address formatting
2023-01-16 13:50:43 +00:00
Gymnasiast
a516dc507e
Replace str_is_null_or_empty() with String::IsNullOrEmpty()
2023-01-08 16:19: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
Gymnasiast
162b01204d
Rename rct_widget to Widget
2022-12-31 15:18:22 +01:00