1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00
Commit Graph

655 Commits

Author SHA1 Message Date
Gymnasiast
650fa3ae2e Rename WindowWidgetType to WidgetType and change for new code style 2025-06-10 19:55:12 +02:00
Gymnasiast
149468406b Update WindowColour enum for new code style 2025-06-10 19:53:12 +02:00
Gymnasiast
86e265f093 Make widget creation functions lowerCamelCase 2025-06-10 19:51:21 +02:00
Aaron van Geffen
0779b9f0ab Replace window shim and widget macros with constexpr functions (#24566) 2025-06-07 23:02:14 +02:00
Aaron van Geffen
ac21ff24c5 Remove const_cast in GetWidgetByIndex (#24554) 2025-06-02 19:48:57 +02:00
mix
c37fc885c5 Prevent windows invalidating every frame if any button is pressed 2025-05-22 20:58:54 +01:00
mix
0b5fb11be9 Remove unnecessary window OnResize calls 2025-05-22 20:58:54 +01:00
Gymnasiast
d2f9d34123 Differentiate formatTextTo() from formatTextWithColourTo() 2025-05-21 00:15:16 +02:00
Gymnasiast
068112c1ee Rename Banner methods to use camelCase 2025-05-21 00:15:16 +02:00
Gymnasiast
ddacaacc71 Change SCROLLING_MODE_NONE to kScrollingModeNone 2025-05-20 22:57:59 +02:00
Matt
42df41efdb Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs

* Fix all the users

* clang-format fix

* Fix linux builds
2025-05-15 22:46:06 +03:00
Matt
6335c31336 Rename DrawPixelInfo to RenderTarget (#24339)
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget

* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
Aaron van Geffen
7e9cc6df5d Merge pull request #24288 from AaronVanGeffen/close-buttons
Generalise white close button strings to all translucent title bars
2025-04-26 11:30:29 +02:00
Michael Steenbeek
293ca0db33 Touch up some RCT1 window colours 2025-04-19 13:48:56 +02:00
Aaron van Geffen
a8267412c2 Move title height helper functions to WindowBase and fix FlexUI plugins 2025-04-11 23:26:34 +02:00
Aaron van Geffen
883845bcf9 Use larger cross glyph for close button when title bar is enlarged 2025-04-11 20:39:26 +02:00
Aaron van Geffen
3f87e2b67a Centralise ResizeFrame in WindowBase and call when setting widgets or resizing 2025-04-11 20:37:54 +02:00
Michael Steenbeek
8d1bb273d8 WIP: Make title bar bigger in Enlarged UI mode 2025-02-24 18:18:12 +01:00
Aaron van Geffen
1691cb187e Advance editor step when saving (and go back if user cancels) 2025-04-09 18:37:32 +02:00
Aaron van Geffen
807a2fa7c9 Merge objective options into scenario options 2025-03-13 13:57:03 +01:00
Aaron van Geffen
d2d9c15cc3 Consolidate groupbox drawing code 2025-04-17 00:02:29 +02:00
Aaron van Geffen
2de3e96dfb Let checkbox widgets respect widget width for their labels 2025-04-11 16:22:08 +02:00
Aaron van Geffen
af40589170 Use WINDOW_SHIM in NetworkStatus and SceneryScatter windows (#24208) 2025-04-13 18:41:58 +02:00
Michael Steenbeek
cfb4b008b2 Create weak enum for PaletteIndex 2025-04-09 16:47:22 +02:00
Aaron van Geffen
99836faeff Rename Window_internal unit to WindowBase for consistency (#24163) 2025-04-06 17:43:36 +02:00
Aaron van Geffen
30cd526325 Window: rename WindowResize to WindowResizeByDelta to prevent mistakes (#24145) 2025-04-04 09:30:09 +02:00
Gymnasiast
2002f697e0 Refactor INPUT_FLAGS into FlagHolder 2025-03-26 13:00:54 +01:00
Gymnasiast
14b881e22b Rename DIRID and its members 2025-03-25 23:39:27 +01:00
Gymnasiast
622a8dc525 Rename DIRBASE and its members 2025-03-25 22:47:09 +01:00
Aaron van Geffen
7efb6e7835 Generalise dropdown tooltips and add tooltips to footpath window (#24070) 2025-03-25 08:59:30 +01:00
Gymnasiast
4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Bart Ribbers
1ea87b93f1 Add missing ctime include to FileBrowser.h (#24029)
time_t is used which is defined in ctime. At least on musl libc systems this
header is not implicitly included and needs to be includex explicitly.

Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com>
2025-03-19 22:59:30 +00:00
Gymnasiast
835f45523d Create widget type for horizontal separator 2025-03-17 22:43:09 +01:00
Aaron van Geffen
2c8c37c09d Reduce Map.h includes (#24007) 2025-03-16 18:41:51 +01:00
Matt
e89312a319 Fix #23983: Ordering files by size not working and potentially crashing (#23991) 2025-03-14 09:32:28 +01:00
Aaron van Geffen
cf8740acf0 Fix saving scenarios in editor (#23956) 2025-03-09 18:35:13 +01:00
Michael Steenbeek
05b64985f4 Update Ride struct to new codestyle 2025-03-09 00:26:25 +01:00
Gymnasiast
e35c7fdb5c Update RideStatus to current code style 2025-03-06 23:01:46 +01:00
Michael Steenbeek
8266447904 Split LOADSAVETYPE_* into LoadSaveAction and LoadSaveType 2025-03-06 21:06:39 +00:00
Aaron van Geffen
3561b9e607 Change load/save window to be coloured green by default 2025-02-20 12:39:26 +01:00
Michael Steenbeek
06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Aaron van Geffen
7a823bf928 Use WindowSetResize to set min/max dimensions in most places (#23929)
* Refactor WindowSetResize to use ScreenSize structs

* Let WindowSetResize return whether or not window was resized

* Use WindowSetResize to set min/max dimensions in most places
2025-03-05 15:58:59 +00:00
Gymnasiast
9982f74cb7 Change CloseWindowModifier members to new codestyle 2025-03-01 20:12:12 +01:00
Gymnasiast
9cf02f3635 Refactor MODAL_RESULT_* to enum 2025-03-01 20:12:11 +01:00
Aaron van Geffen
a380413c56 Remove Scenario.h include from many units (#23901)
* Reduce includes/dependencies for Scenario.h

* Remove Scenario.h include from many units
2025-03-01 17:32:32 +01:00
Michael Steenbeek
e0f9a33923 Rename kCloseButtonWidth to kCloseButtonSize 2025-02-26 21:05:57 +01:00
Michael Steenbeek
87bb2f10dd Introduce WindowBase::canBeResized 2025-02-26 21:05:57 +01:00
Aaron van Geffen
5561c53bd3 Split FileBrowser and OverwritePrompt from LoadSave unit (#23851)
* Split FileBrowser and OverwritePrompt from LoadSave unit

* Introduce FileBrowser::OpenPreferred

* Refactor FileBrowser::GetTitleStringId into its own function

* Rewrite OpenSystemFileBrowser using designated initalisers

* Rename dateModified, dateFormatted, timeFormatted properties
2025-02-22 17:22:27 +01:00
73
c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01:00
73
b9b2c96c97 Rename sprites.h to SpriteIds.h (#23804) 2025-02-13 15:51:46 +00:00