Michael Steenbeek
577c3336c6
Create struct for all dropdown-related globals ( #25023 )
2025-08-23 13:56:13 +02:00
Aaron van Geffen
e88c5e4399
Move Scenario::Category into its own unit
2025-08-22 18:07:55 +02:00
Aaron van Geffen
f11d1e33d0
Move Scenario::Objective into its own unit; enum class ObjectiveType
2025-08-22 17:40:47 +02:00
Gymnasiast
8fd9658cd3
Update dropdown item fields and functions to new code style
2025-08-21 21:33:22 +02:00
Michał Janiszewski
f6292b4c13
Use clang-format 20 ( #24861 )
...
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
2025-07-31 11:01:48 +02:00
Garv Changrani
b47506dd90
Close #24665 : Don't return empty strings with quotes for std::string
2025-07-02 13:33:54 +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
bd6ae5848c
Rename remaining methods in Widget.h to lowerCamelCase
2025-06-10 23:20:18 +02:00
Gymnasiast
757ab61b20
Refactor WidgetFlags to FlagHolder
2025-06-10 19:55:37 +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
Gymnasiast
c2b4158573
Split tracks.dat from g2.dat
2025-05-29 21:25:33 +02:00
ζeh Matt
5702100fd9
Mark things constexpr that are actually constexpr
2025-05-23 18:28:23 +03:00
mix
12606f3d9b
Simplify the code of a couple of viewport screen coord calculations
2025-05-22 20:58:55 +01:00
mix
1292afb7c7
Fix plugin window viewports on open and prevent unnecessary invalid
2025-05-22 20:58:55 +01:00
ζeh Matt
39479d7b12
Use vector and unique_ptr for windows storage
2025-05-17 00:45:08 +03:00
Michael Steenbeek
7ddb806063
Close #24324 : Split font.dat from g2.dat
2025-05-09 14:01:28 +02: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
ζeh Matt
e991cfb97e
Fix assertion when plugins draw custom images
2025-04-25 17:48:38 +03:00
Gymnasiast
e9e0dc7905
Fix mixup between window and viewport flags
...
Viewport flag (1 << 3) corresponds with VIEWPORT_FLAG_HIDE_SUPPORTS. It is very likely that the author meant to unset the window flag (1 << 3), so change it to that.
2025-04-19 14:09:17 +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
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
b26a2953d7
Rename IMAGE_FORMAT and its members
2025-03-26 11:59:12 +01:00
Gymnasiast
a8982ac113
Rename SCENARIO_CATEGORY and turn into strong enum
2025-03-25 15:09:23 +01:00
Aaron van Geffen
472ab1996a
Order custom menus consistently by label text ( #24067 )
2025-03-24 17:42:05 +00:00
Gymnasiast
4badffcdb6
Change GameState_t members to lowerCamelCase
2025-03-20 23:05:57 +01: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
Michael Steenbeek
8266447904
Split LOADSAVETYPE_* into LoadSaveAction and LoadSaveType
2025-03-06 21:06:39 +00: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
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
87bb2f10dd
Introduce WindowBase::canBeResized
2025-02-26 21:05:57 +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
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
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