1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00
Commit Graph

1406 Commits

Author SHA1 Message Date
jason-mills
09b66e9075 Part of #21421: Update FontFamilies.h, audio.h with new constant notation (#22838)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-09-28 07:01:10 -03:00
Michael Bernardi
09fa68a803 Revert DPI accessors 2024-09-27 02:50:50 +10:00
Michael Bernardi
570e1efc8c OpenGL drawing now uses new coordinates 2024-09-27 00:07:40 +10:00
Michael Bernardi
914ff59b3b Line drawing algorithms now use screen coords 2024-09-27 00:07:40 +10:00
Michael Bernardi
cea971790f Fix weather gloom 2024-09-27 00:07:40 +10:00
Michael Bernardi
970848539d Cull sprites and invalidate viewports in screen coordinates 2024-09-27 00:07:40 +10:00
Michael Bernardi
cf9e4ae0f3 Rewrite ViewportRedrawAfterShift to avoid copying Viewport 2024-09-27 00:07:40 +10:00
Michael Bernardi
8cc53324b6 Remove view width and height from Viewport struct 2024-09-27 00:07:40 +10:00
Michael Bernardi
8212c83965 Rewrite ViewportPaint to handle new DPI coords 2024-09-27 00:07:40 +10:00
Michael Bernardi
4cd5548352 Refactor DPI to distinguish screen and world coords 2024-09-27 00:07:40 +10:00
Michael Bernardi
68daa0d735 Debugging code 2024-09-27 00:07:40 +10:00
Harry Hopkinson
d34f17c945 Refactor Colour.h constants to kCamelCase 2024-09-24 20:42:44 +00:00
Aaron van Geffen
30fa3128a6 Merge pull request #22812 from AaronVanGeffen/name-peep-var
Rename Peep properties to better distinguish Actions and Animations
2024-09-22 21:47:10 +02:00
Michael Steenbeek
a53784551b Move _legacy.cpp contents to UI project (#22811) 2024-09-22 21:00:52 +02:00
Aaron van Geffen
97acb793e8 Rename InteractionInfo::SpriteType to interactionType 2024-09-22 16:53:43 +02:00
Aaron van Geffen
cf516db6dc Split StringTypes.h off from String.hpp; adjust header includes 2024-09-10 23:55:53 +02:00
Aaron van Geffen
e8cff5d75f Remove unused ScreenshotDumpPNG32bpp function (#22590) 2024-08-19 16:35:53 +00:00
Michael Steenbeek
47800cddcf Change RTD flags to a strong enum 2024-08-13 20:20:25 +00:00
Aaron van Geffen
aa7eb18d78 Rename ScrollBar struct to ScrollArea and rename its properties (#22539) 2024-08-11 16:21:53 +02:00
Greg
dae5b00f05 Close #22509: Refactor SPR_NONE to ImageIndex (#22517)
* ImageIndex typedef moved from ImageId.hpp to new file ImageIndexType.h.

* SPR_NONE redefined as ImageIndex type in ImageIndexType.h.

* SPR_NONE renamed to kSpriteIdNull

* Remove casts and enum all sprites as ImageIndex

* Remove sprites.h include from LandTool.h, RideData.h

* Ensure all RTD headers include sprites.h

---------

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-08-11 09:58:28 +00:00
lewyche
e2551821f3 Close #20942: Add button to remove park fences
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
2024-08-11 09:31:57 +00:00
Aaron van Geffen
bc055f4031 Replace SCROLLBAR_SIZE macro with kScrollBarWidth constant 2024-08-09 19:48:04 +02:00
Aaron van Geffen
03bc1e5707 Introduce isToolActive function as alternative for globals (#22430)
* Introduce isToolActive function
* Ride window: use isToolActive instead of gCurrentToolWidget
* Footpath window: use isToolActive instead of gCurrentToolWidget
* Staff window: use isToolActive instead of gCurrentToolWidget
* MazeConstruction window: use isToolActive instead of gCurrentToolWidget
* Guest window: use isToolActive instead of gCurrentToolWidget
* Map window: use isToolActive instead of gCurrentToolWidget
* LandRights window: use isToolActive instead of gCurrentToolWidget
* Replace SceneryToolIsActive legacy function with calls to isToolActive
* ClearScenery window: use isToolActive instead of gCurrentToolWidget
* Scenery window: use isToolActive instead of gCurrentToolWidget
* Water window: use isToolActive instead of gCurrentToolWidget
* Land window: use isToolActive instead of gCurrentToolWidget
* Widget: replace WidgetIsActiveTool with isToolActive
* RideConstruction window: use isToolActive instead of gCurrentToolWidget
* Ride: use isToolActive instead of gCurrentToolWidget
* TrackDesignPlace window: use isToolActive instead of gCurrentToolWidget
* StaffList window: use isToolActive instead of gCurrentToolWidget
* ViewClipping window: use isToolActive instead of gCurrentToolWidget
* PatrolArea window: use isToolActive instead of gCurrentToolWidget
* TileInspector window: use isToolActive instead of gCurrentToolWidget
* Park window: use isToolActive instead of gCurrentToolWidget
2024-08-05 10:47:36 +02:00
Michael Steenbeek
e813532efb Close #15750: Multiple park entrance types in one park (#21909)
* Add new park entrance placement window

* Start entrance tool as soon as window opens;

* Rename constants to conform to current code standards

* Increment PARK_FILE_CURRENT_VERSION

* Increment kNetworkStreamVersion

Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-08-04 23:02:16 +00:00
Aaron van Geffen
5b1c867f23 Add bulldozer cursor for clear scenery tool 2024-08-03 20:44:12 +02:00
Aaron van Geffen
54db35397c Introduce CursorData.h; rename constants 2024-08-03 20:07:15 +02:00
Duncan
a07b56a655 Move Viewport functions into Ui (#22454)
* Move viewport functions into ui

* Move footpath function to ui

* Don't include viewport in footpath.h

* Include missing includes
2024-08-02 06:01:31 +01:00
Duncan
144fa13a84 Move more Ui functions to Ui library (#22444)
* Move various methods into the ui library

* Move various zoom functions to ui
2024-08-01 19:09:06 +00:00
Aaron van Geffen
706fd8f3f0 Fix #21175: Some hotkeys don't work when toolbars are hidden 2024-07-31 21:54:10 +02:00
Aaron van Geffen
c9915efc11 Move scenery tool functions from TopToolbar.cpp into Scenery.cpp 2024-07-31 21:53:35 +02:00
Aaron van Geffen
d1ca17adef Remove ScenerySetDefaultPlacementConfiguration from _legacy.cpp 2024-07-31 20:12:23 +02:00
Duncan
3393fa36d3 Move Ui window functions into Ui library (#22426)
* Move scroll widget functions

* Move window move functions

* De-snake

* Move further functions to ui

* Move widget function to widget file

* Move window create to ui
2024-07-31 15:06:19 +01:00
mrmbernardi
9ed5c63857 Rename Location.hpp constants (#22385) 2024-07-26 10:23:25 +02:00
Aaron van Geffen
05e56517ab Adopt existing namespaces into OpenRCT2 namespace (#22368)
* Put all of TitleSequenceManager into the same namespace

* Move RideConstructionState into the OpenRCT2 namespace

* Adopt existing namespaces into OpenRCT2 namespace

This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen
4cef38456a Keep progress bar window centred after resize (#22354) 2024-07-23 17:21:06 +00:00
Aaron van Geffen
ef7dbe496a Introduce VIEWPORT_FLAG_RENDERING_INHIBITED 2024-07-15 01:17:57 +02:00
Aaron van Geffen
5ae97d4d3b Move title version info to its own window (#22302) 2024-07-15 22:33:01 +03:00
Aaron van Geffen
6de514c387 Address minor code style violation in unsigned suffix (#22306) 2024-07-15 21:16:30 +02:00
mrmbernardi
4356ae4f5e Rewrite sprite-cursor interaction code (#22239) 2024-07-14 03:46:40 +10:00
Aaron van Geffen
3d5c19de08 Drop Localisation.h include where not required 2024-07-13 13:33:32 +02:00
Aaron van Geffen
7f2a98cb54 Fix InteractiveConsole.h for MinGW 2024-07-12 23:24:33 +02:00
Aaron van Geffen
44e09149d9 Make isatty warning suppression local to StdInOutConsole.cpp 2024-07-09 17:08:42 +02:00
Aaron van Geffen
3b42bbb2f3 Include cstdint and cstddef as needed at unit level 2024-07-09 16:49:47 +02:00
Aaron van Geffen
b5ef2693b0 Remove common.h include from all units 2024-07-09 16:45:19 +02:00
Aaron van Geffen
8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen
51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
Aaron van Geffen
db17fc6dad Remove pseudo-keyword 'abstract' 2024-07-09 15:17:07 +02:00
Aaron van Geffen
f3834ef2d6 Move colour_t definition to Colour.h 2024-07-09 14:51:11 +02:00
Aaron van Geffen
51bcbe3710 Move UTF8 functions from localisation into core (#22278) 2024-07-12 19:21:15 +03:00
Aaron van Geffen
2e1fa5e644 Move a few more strings to UiStringIds.h (#22257)
* Replace more StringIds.h includes with StringIdType.h

* Move a few more strings to UiStringIds.h

* Tweak: TextComposition.cpp does not need InteractiveConsole.h
2024-07-12 14:59:00 +02:00