Michał Janiszewski
f68411b4eb
Ensure linenoise can be safely used from multiple threads ( #16388 )
...
This addresses a data race for `linenoise::lnstate` and
`StdInOutConsole::_isPromptShowing` which could result in openrct2
crashing and misreporting values when inspected in debugger.
2022-01-07 16:37:41 +01:00
Gymnasiast
e4496c41bd
Upgrade platform_sanitise_filename()
2022-01-05 15:26:52 +01:00
Gymnasiast
1e1f370c8d
Create PaletteIndex
2022-01-01 18:38:31 +01:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Duncan
ee297e9ed3
Fix #16287 : Incorrect sv6 extension using console or system browser
2021-12-22 16:19:02 +01:00
Michael Steenbeek
25cb49f8ce
Pass paint_session as reference
2021-12-19 14:48:00 +00:00
Ted John
e165de7482
Refactor paint structs to use ImageId and extend size of image list ( #16258 )
...
* Move to image ID for paint struct
* Move image list to be past the end of legacy limit
* Extend image list size
* Introduce constants for image list size
* Use std::array to store internal paint struct
2021-12-18 07:40:10 +00:00
Michael Steenbeek
b4f256be87
Merge pull request #16151 from IntelOrca/refactor/imageid-painting
...
Refactor most map paint routines to use ImageId
2021-12-12 11:43:31 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
Ted John
a17f1990f2
Refactor some viewport code to use ImageId
2021-12-11 23:06:21 +00:00
Michael Steenbeek
b83f7c3859
Merge pull request #16150 from IntelOrca/refactor/imageid-ui
...
Refactor footpath, scenery, terrain and mapgen windows to use ImageId
2021-12-11 23:21:19 +01:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
Ted John
a324bfab63
Add image manager plugin API ( #16144 )
2021-12-07 20:55:27 +00:00
Ted John
2108322806
Use ImageId for picked up peep
2021-12-07 20:17:22 +00:00
Ted John
5f9d03e9df
Refactor ImageId and use in more functions
2021-12-03 19:59:33 +01:00
Hielke Morsink
98db974b49
Merge pull request #16085
2021-12-03 19:10:03 +01:00
Hielke Morsink
9615dda192
Reimplement hotkey handler for toggling visibility
2021-12-03 00:24:56 +01:00
Hielke Morsink
1035725fd2
Fix shortcuts for top-toolbar buttons
2021-12-03 00:18:54 +01:00
Hielke Morsink
325b986c56
Merge pull request #15489
2021-12-03 00:16:06 +01:00
Duncan
79b12d2953
Introduce DATLimits.h for RCT2 Dat file object limits ( #16034 )
2021-12-01 21:55:52 +00:00
Hielke Morsink
e4fc0d8388
Fix #16083 : Tile Inspector shortcuts mapped incorrectly
...
This really needs to be refactored so that this does not need manual updating every time the order of widgets changes.
2021-12-01 09:51:40 +01:00
Hielke Morsink
1ba75205e9
Add comment and use more consistent naming
2021-12-01 00:17:49 +01:00
Hielke Morsink
bd338fc7d2
Add DISABLE_OPENGL guard in ZoomLevel::min
2021-12-01 00:11:48 +01:00
Hielke Morsink
0f2dffcc16
Apply review suggestions
2021-12-01 00:11:45 +01:00
Hielke Morsink
dbd50d08c6
Split double meaning of "max zoom" in screenshot code
...
One being the max value, the other being the max amount of zoom levels.
2021-12-01 00:08:41 +01:00
Hielke Morsink
53d9bfa8b4
Update implicit zoom conversions
2021-12-01 00:08:35 +01:00
Hielke Morsink
fdce5df6db
Reduce nested ifs and remove ?: in main_window_zoom
2021-11-30 19:11:36 +01:00
Hielke Morsink
3f669cae85
Use zoomlevel some more
2021-11-30 19:11:32 +01:00
Hielke Morsink
f3735dc076
Use ZoomLevel for viewport and ride window
2021-11-30 19:11:08 +01:00
Hielke Morsink
95ba1654c7
Make ZoomLevel operators constexpr
2021-11-30 19:11:07 +01:00
ζeh Matt
c4ad5fcd15
Adjust includes
2021-11-26 21:01:44 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
ζeh Matt
0024252328
Fix includes
2021-11-24 17:19:52 +02: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
ζeh Matt
c6242fd310
More renaming
2021-11-24 15:50:18 +02:00
IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com >
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com >
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com >
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com >
2021-11-21 22:43:22 +01:00
Hielke Morsink
0b691fa09a
Fix #15928 : Tile inspector hotkeys mapped incorrectly
2021-11-18 23:02:36 +01:00
Michael Steenbeek
9134bd4788
Update RCT1 path names + British spelling for ‘grey’
2021-11-13 23:38:04 +01:00
Michael Steenbeek
36bbb01352
Merge pull request #12869 from Broxzier/feature/TI-widget-code-cleanup
...
Refactor Tile Inspector widget definitions
2021-11-07 19:35:49 +01:00
Hielke Morsink
4d72d232f8
Remove the now-unused SPINNER_WIDGETS macro
2021-11-01 21:29:39 +01:00
Duncan
3f19d6f7d7
Split Peep header Guest into separate header ( #15810 )
...
* Move guest functions and classes to guest header
* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
Sijmen
cec8447c6f
Refactor Viewport.cpp to use ScreenRect ( #15790 )
2021-10-27 00:13:38 -03:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
Michał Janiszewski
1b4875e528
Extract math-related functions from common.h to Math.hpp
...
Saves wide inclusion of <stdexcept> header, which pulls in <string>
2021-10-09 21:43:06 +02:00
Michael Steenbeek
15897c23a1
Merge pull request #15498 from duncanspumpkin/sceneryWindow
...
Backport scenery window from NSF
2021-10-09 17:13:36 +02:00
ζeh Matt
05e58cda11
Merge pull request #15538 from ZehMatt/feature/parallel-draw
...
Implement multithreaded drawing
2021-10-09 05:53:48 -07:00
Ted John
6b965074ec
Merge pull request #15527 from hjort96/refactor-window-ViewClipping
...
Close #13813 : Refactor window to class: ViewClipping
2021-10-08 13:57:25 +01:00
duncanspumpkin
fea69cc86c
Backport scenery window from NSF
...
Co-authored-by: IntelOrca <IntelOrca@users.noreply.github.com >
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com >
2021-10-06 16:44:05 +01:00