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
duncanspumpkin
bd3ae5cbb9
Simplify setting existing text
2024-04-26 18:27:14 +02:00
duncanspumpkin
3448926251
Move text input widget code from game lib to ui lib
2024-04-26 18:25:44 +02:00
Harry-Hopkinson
b294d97f03
Rename DROPDOWN_HEIGHT to kDropdownHeight
2024-04-14 17:27:32 +00:00
Harry-Hopkinson
f242bbf095
Rename LIST_ROW_HEIGHT to kListRowHeight
2024-04-14 16:37:01 +00:00
Harry-Hopkinson
c5cfc65317
Rename SCROLLABLE_ROW_HEIGHT to kScrollableRowHeight
2024-04-14 16:31:53 +00:00
Aaron van Geffen
e898e9211d
Move kObjectEntryGroupCounts to ObjectList.cpp
2024-03-27 20:13:10 +01:00
Michael Steenbeek
03b0c1e884
Fix compilation error on 64-bit MSVC builds ( #21677 )
2024-03-26 16:28:51 +01:00
Harry Hopkinson and Gymnasiast
bf20a6d146
Fix #21317 : Track designer allows proceeding without an object selected
...
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com >
2024-03-26 13:53:32 +01: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
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
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
Michael Steenbeek
70b9d0ca47
Add button to reload object
2024-02-11 20:45:31 +00:00
Severin Paul Höfer
15e0402c63
Fix #20255 : Images not freed in Track Designs Manager ( #21205 )
...
* Add missing deallocation in track manager
* Update changelog.txt
2024-01-15 21:38:46 -03: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
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Michael Steenbeek
58baa85a27
Small path additions cleanup ( #20076 )
...
* Split off path addition paint calls
* Replace occurences of “path bit” with “path addition”
* Replace occurences of “footpath item“ with “path addition”
2023-05-09 20:08:25 +01: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
91f4c1e752
Use dpi ref in misc drawing functions
2023-04-11 22:59:03 +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
Gymnasiast
9c2d5b9fef
Make GfxDrawSprite() take reference
2023-04-11 22:53:30 +01:00
Matthias Moninger
d7923c479e
Merge pull request #19481 from Gymnasiast/feature/compat-object
...
Add flag to mark an object as a compatibility object
2023-04-03 11:17:13 +03:00
Michał Janiszewski
56ff06a8d2
Fix the object editor tab selector
...
Object editor has unusually high WIDX_TAB_1 value making the default
32-bit type not wide enough.
2023-03-28 11:37:38 +02:00
Michał Janiszewski
be82582063
Fix EditorObjectSelection opening of TrackManager
...
Calling `Close()` on a window deletes its object, rendering any future
uses of its members invalid.
In this case `WindowsCloseAll` closed Editor window itself rendering
call to `ManageTracks` on a deleted pointer. Previously
`WindowsCloseAll` was called, but earlier in the same function we have
already closed all windows but Editor itself. It is sufficient to close
the editor once we have opened `TrackDesignList`.
When this got fixed, I noticed `TrackDesignList` could not locate any
rides, which was happening due to calls to `ObjectManager::UnloadAll`
in several places. Code to load the selected ride back was added.
2023-03-28 11:37:38 +02:00
Gymnasiast
af167552fb
Add flag to mark an object as a compatibility object
2023-03-25 14:40:03 +01:00
Michael Steenbeek
049164c400
Pass dpi as ref when drawing object preview
2023-03-13 16:52:49 +01:00
Gymnasiast
a15f72da87
Pass DPI by ref to string drawing
2023-02-24 22:05:07 +01:00
ζeh Matt
bf9efc7f84
Rename some variables
2023-02-05 17:52:47 +02:00
ζeh Matt
a2a06d6dde
Return const RideObjectEntry*, refactor uses and fix related access
2023-02-05 17:36:37 +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
Duncan
7d08372c80
Remove snake_case from Class names OpenRCT2/Ride*-S* ( #19232 )
...
* Remove snake_case from Class names OpenRCT2/Ride*-S*
* Clang format
2023-01-20 20:58:55 +00:00
Duncan and Gymnasiast
9deed6d98a
Replace snakes in Class names OpenRCT2/N*-P* ( #19227 )
...
* Replace snakes in Class names OpenRCT2/N*-P*
* Rename PODDate (and TimeOfDay for good measure)
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com >
2023-01-20 05:24:44 +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
Hielke Morsink
917c091e6b
Rename snake_case functions in OpenRCT2/marketing folder
2023-01-17 23:13:39 +00:00
Michael Steenbeek
d6f58c2f1f
Merge pull request #19194 from Gymnasiast/refactor/sub-loc
...
Rename sub_ and loc_ functions
2023-01-17 21:29:04 +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
Gymnasiast
3cc2d94b1b
Rename sub_ and loc_ functions
2023-01-17 19:05:14 +01:00
Stephan Spengler
31ea968480
Change openrct2/ride methods to UpperCamelCase, part 2
2023-01-17 17:42:29 +01: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
b4480b344e
Rename snake_case functions from localisation folder
2023-01-16 23:12:35 +00: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
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
zzril and Josh Trzebiatowski
f9649795a0
Fix #19112 : Search filter in does not properly clear
...
Co-authored-by: Josh Trzebiatowski <trzejos@users.noreply.github.com >
2023-01-13 23:40:19 +01:00