Gymnasiast
83cbac90ec
Move stuff that affects the whole screen/viewport out of Drawing.{cpp,h}
2026-09-06 19:40:56 +02:00
Aaron van Geffen
21e37e12f9
Rework EditorBottomToolbar into EditorStepController ( #26961 )
...
* Rename EditorBottomToolbar to EditorStepController
* Split off EditorStatusLine to its own window
* Simplify step/jump functions by making them static
* Split EditorStepController into two instances
* Resize new editor panels when game window is resized
* Move kEditorStepNames defs into EditorController to share between windows
2026-08-29 20:23:20 +00:00
Aaron van Geffen
63a787c2ae
Guard bottom toolbar resizing to prevent nullptr deref ( #26994 )
2026-08-26 11:02:47 +00:00
Aaron van Geffen
8dab2cce07
Split off ParkInfoPanel and DateInfoPanel from GameBottomToolbar ( #26919 )
...
* Split off DateInfoPanel and ParkInfoPanel from GameBottomToolbar
* Replace gToolbarDirtyFlags (BottomToolbarDirtyFlag) with window invalidation
* Rename kGuestCountFormats{,Singular}
* Resize new panels along GUI
* Rename functions to match code style
* Remove some now-unnecessary widget resizing
* Rename panel widget indices to remove position
2026-08-16 19:50:44 +02:00
Aaron van Geffen
082994cd52
Move widget index globals into WidgetIndexGlobals.h
2026-08-04 21:54:12 +02:00
Aaron van Geffen
d26b161668
Move gCurrentWindowColours to Drawing.String.cpp
2026-08-04 21:07:25 +02:00
Harry Hopkinson
69872010ae
Reorder/remove more includes ( #26847 )
...
* Remove unneeded includes from src/openrct2/interface
* Remove unneeded includes from src/openrct2/entity
* Remove unneeded includes from src/openrct2/localisation
* Remove unneeded includes from src/openrct2/management
* Remove unneeded includes from src/openrct2/network
2026-07-31 21:33:22 +02:00
Harry Hopkinson
df2a210fd8
Rework openrct2/drawing includes ( #26815 )
2026-07-21 17:00:55 +02:00
Aaron van Geffen
35180cbefe
Fold remaining Editor unit into EditorController
2026-06-27 14:49:12 +02:00
16cd1c07ff
Swap Duktape for quickjs-ng
...
Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com >
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2026-04-01 02:18:36 +11:00
matheusvb3
de3cf7e7a9
Use -> syntactic sugar where appropriate ( #26162 )
2026-03-07 18:00:06 +01:00
Michael Steenbeek
343c7a70d7
Change colour to a strong enum ( #25873 )
2026-01-28 10:06:45 +01:00
matheusvb3
fbbf142449
Merge iterator variable assignment and definition into one line
2026-01-16 12:46:27 -03:00
matheusvb3
71d636e6b1
Merge variable declarations and assignment into one line
2026-01-16 12:43:59 -03:00
Aaron van Geffen
40aaf97c07
Update copyright years to 2026 ( #25741 )
2026-01-05 13:42:59 +00:00
Aaron van Geffen
8a0a655025
Unwrangle Drawing.h and Paint.h ( #25706 )
...
* Drop Drawing.h include from Paint.h
* Split off RenderTarget to its own header/unit
* Move FilterPaletteID to its own header
2025-12-26 12:58:33 +01:00
matheusvb3
490bf3ec30
Remove redundant parentheses around FlagHolder method invocations ( #25695 )
2025-12-23 18:16:44 +01:00
matheusvb3
39729f23e9
Remove redundant parenthesis around negated .has FlagHolder checks
2025-12-23 14:19:37 +01:00
mix
6414cf26a3
Rename InputFlag::unk6 to allowRightMouseRemoval
2025-12-14 02:51:38 +00:00
mix
f3cedcc1d9
Remove manual map selection invalidation calls
2025-11-23 00:17:15 +00:00
Matt
4764cc5769
Use primitive for loop for window iterations, iterators can invalidate
2025-10-17 11:53:18 +02:00
Gymnasiast
daa4fe8ac3
Rename field of all config categories
2025-10-07 20:21:32 +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
c94babb06e
Rename g_window_list to gWindowList
2025-09-17 23:16:17 +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
Gymnasiast
f46fea3bff
Rename rct_windownumber to WindowNumber
2025-09-17 20:10:12 +02:00
Gymnasiast
8a7a265639
Rename member of WidgetIdentifier and WidgetRef
2025-09-17 20:10:12 +02:00
Gymnasiast
28fbe83a27
Rename g_music_tracking_viewport to gMusicTrackingViewport
2025-09-17 20:10:11 +02:00
Aaron van Geffen
99065960f2
Rename InputFlags::unk{4,5} to {left,right}MousePressed
2025-09-15 22:44:39 +02:00
Gymnasiast
6f7987e1c7
Turn MapSelectFlags into FlagHolder
2025-09-11 22:06:10 +02:00
Aaron van Geffen
5b8fedd5b2
Rework Map.h includes (remove transitive header includes)
2025-09-04 22:16:53 +02:00
Aaron van Geffen
013fcb3798
Split off MapSelection.h from Map.h
2025-09-04 21:57:36 +02:00
mix
dd1cc48ce3
Set viewport pos on zoom to avoid unnecessary draw and shift
2025-08-27 12:07:35 +01:00
mix
677f6c0717
Remove unused function WindowViewportCentreTileAroundCursor
2025-08-27 09:13:05 +01:00
mix
fa92008548
Remove unused function WindowViewportGetMapCoordsByCursor
2025-08-27 09:10:00 +01:00
mix
06579b45d2
Calculate zoom to cursor based on mouse coordinates
2025-08-27 09:05:17 +01:00
Gymnasiast
650fa3ae2e
Rename WindowWidgetType to WidgetType and change for new code style
2025-06-10 19:55:12 +02:00
Harry-Hopkinson
2b19320db3
Remove unused function (WindowGetPreviousViewport)
2025-05-27 18:26:08 +00:00
Harry Hopkinson
994cc858e8
More efficiently search viewports for playing Audio
2025-05-26 08:37:44 +01:00
Harry Hopkinson
371dcc28f5
More efficiently search viewports
2025-05-26 08:37:15 +01:00
mix
04c3113593
Simplify window visibility check iteration
2025-05-21 21:37:07 +01:00
mix
cc813e3f16
Refactor window visibility cache and fix viewport visibility
2025-05-21 18:06:06 +01:00
Matt
77511786b2
Merge pull request #24407 from ZehMatt/windows-storage
...
Eliminate more shared_ptr usage
2025-05-17 01:18:00 +03:00
ζeh Matt
39479d7b12
Use vector and unique_ptr for windows storage
2025-05-17 00:45:08 +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
ζeh Matt
8503faa289
Set viewport location immediately, fixes rotation using stale position
2025-04-25 17:48:39 +03:00
ζeh Matt
6d63b1f752
Skip dead windows in some iterations
2025-04-25 17:48:36 +03:00