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
Aaron van Geffen
2302f0d2e3
Rework Localisation includes ( #23789 )
...
* Clean up internal localisation header includes
* Remove some external localisation includes
* Remove dependency on FormatCodes.h from InteractiveConsole.h
* Reduce Formatter.h, Localisation.Date.h includes
2025-02-07 22:36:42 +01:00
Aaron van Geffen
9a8abf2b74
Dropdown: allow specifying number of rows per column ( #23713 )
...
* Dropdown: allow specifying number of rows per column
* Dropdown: fix indentation for kColoursDropdownOrder
* Dropdown: minor header cleanup
2025-01-27 21:49:24 +01:00
Matt
fa0e7342ec
Fix #23701 : Potential crash when using mouse wheel on some widgets
2025-01-25 15:33:14 +01:00
Aaron van Geffen
cf448753c1
Move WindowInvalidate and WidgetInvalidate families into WindowManager ( #23692 )
...
* Move WindowInvalidate and WidgetInvalidate families into WindowManager
* Use InvalidateWidget shorthand in more places
* Cut back on UiContext includes
* Cut back on Window.h includes
* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Michael Steenbeek
a3d5b4e0c3
Change FIXED_XDP from macros to constexprs
2025-01-25 13:42:22 +01:00
Aaron van Geffen
c8da126c95
Move Viewport struct to Viewport.h
2025-01-24 22:44:21 +01:00
ζeh Matt
fe950f75d1
Add some assertions
2025-01-23 11:05:20 +02:00
Michael Steenbeek
b0c99fcb6c
Refactor more constants to kConstant notation
2025-01-22 16:16:55 +00:00
Aaron van Geffen
a8773dd805
Move WindowClose family into WindowManager ( #23646 )
...
* Replace WindowClose() calls with Close method calls where possible
* Move WindowClose family into WindowManager
* Remove UpdateSceneryGroupIndexes hack
2025-01-19 18:49:18 +01:00
Michael Steenbeek
be9f27e4f9
Mass rename constants ( #23656 )
2025-01-19 15:59:45 +00:00
Aaron van Geffen
5fbe8d0ae1
Centralise external window signatures in Windows.h ( #23653 )
2025-01-19 15:50:54 +01:00
Aaron van Geffen
bed4d5bdca
Move WindowCreate and WindowFocusOrCreate into WindowManager ( #23643 )
...
* Move WindowBringToFront into WindowManager
* Move WindowCreate and WindowFocusOrCreate into WindowManager
* Cut back on Context/UiContext includes
2025-01-19 06:58:28 -03:00
Aaron van Geffen
e1fa0b539d
Move Widget, Window, Intent, MouseInput into OpenRCT2 namespace ( #23642 )
2025-01-18 15:29:41 +02:00