Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
5e61768d61
Allow filename input directly in file browser window ( #23405 )
2024-12-29 19:39:23 +00:00
Aaron van Geffen
7274c67c6c
Load/save window: show folder icon next to folders ( #23404 )
2024-12-14 16:14:22 +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
Michael Steenbeek
0d6ed8efc5
Close windows before loading another save
2024-10-18 09:14:50 +02:00
Harry Hopkinson
5f0d657bf2
Move gScenarioFileName to GameState
2024-09-07 12:20:32 +02: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
Harry Hopkinson
c1ac7c0700
Cleanup gameState usage
2024-09-02 22:42:37 +02:00
Aaron van Geffen
c9874c950d
Fix FPS tanking on mouse move in load/save window ( #22677 )
2024-09-01 19:30:22 +00:00
Aaron van Geffen
3d5c19de08
Drop Localisation.h include where not required
2024-07-13 13:33:32 +02:00
Gymnasiast
624aa53038
Pass TrackDesign by reference
2024-07-04 00:29:41 +02:00
Gymnasiast
8a181b5513
Split colours and colour flags
2024-05-26 12:35:40 +02:00
Aaron van Geffen
fd12a507a0
Pause the game while LoadSave window is open ( #22084 )
2024-05-24 23:32:57 +02:00
Aaron van Geffen
a63d86c488
Introduce Config namespace and struct
2024-05-10 12:10:21 +02:00
Claudio Tiecher
10a5d790c6
Part of #21421 : replace define with constexpr ( #21760 )
...
* Part of #21421 : refactor TUNNEL_MAX_COUNT
* Part of #21421 : deleted unused OBJECT_SELECTION_NOT_...
* Part of #21421 : refactor MAX_SERVER_DESCRIPTION_LENGTH
* Part of #21421 : refactor EXPENDITURE_TABLE_MONTH_COUNT
* Part of #21421 : refactor FINANCE_GRAPH_SIZE
* Part of #21421 : refactor NETWORK_STREAM_VERSION and _ID
* Part of #21421 : MONEY_STRING_MAXLENGTH
* Part of #21421 : deleted MAX_USER_STRINGS
* Part of #21421 : refactor USER_STRING_MAX_LENGTH
* Part of #21421 : deleted USER_STRING_END
* Part of #21421 : refactor REAL_NAME_START
* Part of #21421 : refactor REAL_NAME_END
* Part of #21421 : deleted FONT(X) and FONT_OPENRCT2_SPRITE
* Part of #21421 : refactor CURRENCY_SYMBOL_MAX_SIZE
* Part of #21421 : refactor CURRENCY_RATE_MAX_NUM_DIGITS
* Part of #21421 : refactor SCROLLABLE_ROW_HEIGHT
* Part of #21421 : refactor ADD_CLAMP_BODY
* Part of #21421 : applied clang-format to Util.cpp
* Part of #21421 : incorporate feedback from #21760
* Part of #21421 : revert to nbsp in Currency.cpp
* Part of #21421 : fix merge conflict
* Part of #21421 : fix more merge conflict
* Part of #21421 : apply clang format
* Part of #21421 : using std::numerics for finding bounds
* Part of #21421 : fix reference to kAddClampBody
* Part of #21421 : improved on comments about AddClamp func
* Part of #21421 : apply correct network stream version number
* Part of #21421 : apply clang-format
2024-05-09 08:59:03 -03:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02:00
Aaron van Geffen and ζeh Matt
255e89ec37
Refactor TitleScreen to TitleScene; introduce GameScene
...
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com >
2024-04-23 21:31:05 +02:00
Gymnasiast
c158854a7f
Move Park into namespace, add other park-related things to struct
2024-04-04 18:14:27 +02:00
Gymnasiast
4f3b7aa8a9
Turn Park into struct
2024-04-04 18:12:36 +02:00
Gymnasiast
28451027b1
Move Park to GameState_t
2024-04-04 18:12:08 +02:00
reversebottle
854d4e6fa4
Fix #21652 : set correct color on save overwrite first open ( #21666 )
2024-03-27 23:12:55 +00:00
CoryY and Tulio 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
Michael Steenbeek
b219ab1ed4
Use LanguageGetString() if there is nothing to format
2024-03-10 18:48:23 +01: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
Harry Hopkinson and Gymnasiast
701bbda164
Move gEditorStep to GameState_t ( #21492 )
...
* Move gEditorStep to GameState_t
* Fix compilation on GCC
---------
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com >
2024-03-01 20:26:20 +00:00
Hielke Morsink
13351d996e
#21193 : Move gParkFlags to GameState_t, refactor uses
...
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01:00
ζeh Matt
9b2a79faf1
Adjust the import/export code to have the game state passed
2024-01-19 16:32:19 +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
Silent
6bc6b63ed4
Fix #18199 : Dots in the game save's name get truncated ( #20691 )
2023-10-11 21:45:43 +01:00
Matt
09dca6bb79
Merge pull request #20700 from ZehMatt/string-refactor
...
String refactor
2023-09-28 20:36:45 +03:00
Michael Steenbeek
a070604d7b
Remove outdated comment ( #20804 )
...
The comment dated from the time where the "All files" filter was still hardcoded at index [1], rather than being added to a vector like it is now.
2023-09-23 05:25:00 +01:00
Duncan
77dd3cf8e2
Move all construction related logic into OnOpen ( #20632 )
2023-09-07 08:20:28 +02:00
ζeh Matt
3ff527fb78
Refactor uses of ShortenPath
2023-08-10 14:39:47 +03:00
Matthias Moninger
3ef6003671
Replace openrct2_assert with Guard::Assert, remove openrct2_assert
2023-07-02 16:42:46 +02:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Duncan
95463c015c
Actually refactor last window ( #20436 )
...
This one was hiding
2023-06-21 21:15:13 +01:00
Silent
c4b70358c8
More MAX_PATH removals ( #20113 )
...
* Refactor FileScanner to lift a MAX_PATH limit
* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory
* Remove MAX_PATH from Platform.Posix.cpp
2023-05-09 20:08:46 +01:00
Gymnasiast
bb83a80eab
Use dpi ref in rect and line drawing functions
2023-04-11 22:59:01 +01:00
Gymnasiast
96d77ed8f7
Using dpi refs in most remaining window defs
2023-04-11 22:57:23 +01:00
Hielke Morsink
e6d439dc5b
Fix #19801 : Cannot resize load/save window anymore ( #19872 )
...
The main issue was that the min/max sizes of the window were set in the constructor, then being overwritten by the WindowCreate function. That function calls the OnOpen function, which can be used to set them properly.
The other two changes are just minor cleanups; a pixel difference in padding on the right side, and an overriden function that's identical to the base.
2023-04-08 07:25:46 +02:00
Gymnasiast
a15f72da87
Pass DPI by ref to string drawing
2023-02-24 22:05:07 +01: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
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
Hielke Morsink and duncanspumpkin
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
Michael Steenbeek and duncanspumpkin
bf5f7e8e71
Rename format_string(2) and is_user_string_id() ( #19178 )
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 08:59:07 +00:00