Commit Graph
299 Commits
Author SHA1 Message Date
Gymnasiast 0ec4e3353b Update members of FontStyle 2025-11-03 23:25:30 +01:00
Gymnasiast 124352c922 Update members of TextAlignment 2025-11-03 23:25:29 +01:00
Gymnasiast 7c51ccde1e Rename Rect namespace to Rectangle 2025-10-23 18:44:45 +02:00
Gymnasiast 298f3fdeb1 Replace remaining rectangle flags with Rect::FillMode enum 2025-10-23 18:42:50 +02:00
Gymnasiast 679064da77 Replace INSET_RECT_FLAG_FILL_MID_LIGHT with Rect::FillBrightness enum 2025-10-23 18:42:07 +02:00
Gymnasiast 93c3d99546 Move rectangle drawing into its own namespace 2025-10-23 18:41:08 +02:00
Gymnasiast 9e9b774266 Move rectangle drawing to Rect.{cpp,h} 2025-10-23 18:40:04 +02:00
Gymnasiast a5d173efda Create border style enum for GfxFillRectInset 2025-10-23 18:40:03 +02:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
ζeh Matt 6457eca67c Use the parse functions, adjust code to account for the split change 2025-09-28 23:09:11 +03:00
Gymnasiast a03613df35 Change FilterPaletteID to lowerCamelCase 2025-09-23 21:09:54 +02:00
Michael Steenbeek eb38b7227f Change WindowFlag to strong enum 2025-09-20 21:46:42 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Gymnasiast 3a803e13e2 Change window functions to use lowerCamelCase 2025-09-17 20:10:12 +02:00
Gymnasiast d4a0bca091 Rename Window fields 2025-09-17 20:10:12 +02:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Gymnasiast 6f1b0bde03 Create ToggleOption and Separator constructors 2025-08-24 11:30:59 +02:00
Gymnasiast bde70ea95f Create MenuLabel constructor 2025-08-24 11:30:59 +02:00
Gymnasiast af50e9b0da Fold tooltips and images into dropdown items 2025-08-24 11:30:59 +02:00
Gymnasiast ff896787ac Replace dropdown disabled/checked functions 2025-08-24 11:30:58 +02:00
Michael Steenbeek 577c3336c6 Create struct for all dropdown-related globals (#25023) 2025-08-23 13:56:13 +02:00
Gymnasiast 8fd9658cd3 Update dropdown item fields and functions to new code style 2025-08-21 21:33:22 +02:00
Aaron van Geffen 2e219ec1e7 Introduce option to show minimap previews in LoadSave browser 2025-07-18 15:53:29 +02:00
Aaron van Geffen 091da9bdef Fix LoadSave window frame not resizing when toggling previews 2025-07-18 15:02:05 +02:00
Michael Steenbeek 7b322d825a Refactor constants in window .cpp files 2025-06-16 23:10:47 +02:00
Gymnasiast 81e3181ebb Pass ScreenSize to makeWindowShim() 2025-06-10 23:21:15 +02:00
Gymnasiast bdba89f428 Pass ScreenSize to window creation functions 2025-06-10 23:20:28 +02:00
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
ζeh Matt d7b65d48ac Fix potential bug with missing 0 terminator 2025-05-23 19:16:25 +03: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 93ae8a3553 Rework 'advanced options' tab to use group boxes (#24194)
* Turn RCT1 path button into label widget

* Rename WIDX_EXPORT_CUSTOM_OBJECTS_CHECKBOX

* Draw RCT1 path in black text

* Rework advanced tab into groupboxes

* Adjust clear/browse button width based on current language

* Tweak labels a little so desync label _just_ fits

* Let Emscripten buttons be offset to title bar height

* Tweak emscripten import/export button positions

* Amend changelog
2025-05-04 13:30:49 +00: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 3f87e2b67a Centralise ResizeFrame in WindowBase and call when setting widgets or resizing 2025-04-11 20:37:54 +02:00
Aaron van Geffen 1691cb187e Advance editor step when saving (and go back if user cancels) 2025-04-09 18:37:32 +02:00
Matt 3983e42115 Load the save previews in the background 2025-04-05 16:36:25 +02:00
Gymnasiast c5fff2bb77 Create enum class for FileMode 2025-03-25 22:47:08 +01:00
Gymnasiast 0dfc94799a Rename FILE_TYPE and its members 2025-03-25 22:47:08 +01:00
Michael Steenbeek 8266447904 Split LOADSAVETYPE_* into LoadSaveAction and LoadSaveType 2025-03-06 21:06:39 +00:00
Aaron van Geffen 1ae4874212 Add monochrome 'no preview' logo 2025-02-19 23:15:01 +01:00
Aaron van Geffen af26d8c1d4 Implement embedded preview screenshots 2025-02-19 16:19:47 +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
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
73 a976a43708 Rename network.h to Network.h (#23882) 2025-02-24 10:43:06 +01:00
Aaron van Geffen aa33728951 Add toolbar to file browser (#23874)
* LoadSave: turn text buttons into icons

* Remove unused strings; add parent button tooltip

* Adjust minimum window size to prevent overly small browsers

* Draw table headers using DrawTextEllipsised to account for long labels

* Amend changelog
2025-02-22 18:20:47 +00: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