Michał Janiszewski
b8f638f5a3
Unify widget idx types
2026-05-05 21:38:25 +02:00
Marino Rottier
45ff80d890
Refactor widget state to single storage model ( #26443 )
...
* Allow flag/bitmask coexistence in readers
* Add factory helpers and bulk setters for per-widget flags
* Switch coexistence from OR-both to per-window opt-in
* Migrate seven small windows to per-widget flags
* Migrate seven more windows to per-widget flags
* Migrate Cheats, MapGen and Footpath to per-widget flags
* Fix #26421 : scenery tab highlight wraps when there are 64+ groups
* Migrate Ride window to per-widget flags
* Migrate ride and maze construction windows to per-widget flags
* Migrate six more windows to per-widget flags
* Migrate Banner, EditorScenarioOptions and RideList to per-widget flags
* Migrate SceneryScatter and LoadSave to per-widget flags
* Migrate EditorObjectSelection, GameBottomToolbar, Guest, Map, NewRide and Park to per-widget flags
* Migrate TopToolbar, TrackList, Research, Player and Options to per-widget flags
* Opt in remaining windows to per-widget flags
* Narrow getters and setters to per-widget flags
* Remove bitmask fields and useWidgetFlags switch
* Restore switch statements for tab/density pressed state
* Add makeHoldableSpinnerWidgets to drop per-page loops
* Update tests for per-widget flag storage
* Add changelog entry for #26421
* Reword narrative-tense comments from the migration
* Fix clang-format violations
* Remove dead holdable-widget tables from Park and Finances
2026-04-28 09:26:02 +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
Gymnasiast
2e7e429516
Replace drawText* calls that pass STR_STRING + formatter
2026-03-26 17:10:50 +01:00
Gymnasiast
49fa735600
Do not run drawText* through formatter if there are no arguments
2026-03-26 16:00:06 +01:00
Aaron van Geffen
8ed4b34907
Move includes out of Drawing.h and into their actual users
2026-03-26 12:55:37 +01:00
Gymnasiast
a5c32ab60c
Rename DrawText* to drawText*
2026-03-25 23:16:25 +01:00
Gymnasiast
2398d91fb2
Rename DrawTextBasic() to DrawText()
2026-03-25 23:15:49 +01:00
Gymnasiast
5620437c99
Rename functions in Drawing.String.h to adhere to code style rules
2026-03-25 23:14:57 +01:00
Gymnasiast
800e656c4b
Merge TTFGetStringWidth and GfxGetStringWidth
2026-03-25 23:14:57 +01:00
Gymnasiast
df1564c9cd
Namespace Drawing.String.cpp, declare its functions in Drawing.String.h
2026-03-25 23:14:57 +01:00
Michael Steenbeek
f9756b988f
Add TD7 format
2026-02-16 23:42:35 +01:00
Michael Steenbeek
343c7a70d7
Change colour to a strong enum ( #25873 )
2026-01-28 10:06:45 +01:00
Gymnasiast
e46d2eba9e
Move colour map to its own file
2026-01-17 18:46:54 +01:00
Gymnasiast
04a3d02023
Rename members of ColourShadeMap
2026-01-16 19:25:58 +01:00
matheusvb3
bba937a03d
Remove more redundant namespace qualifiers ( #25828 )
2026-01-16 08:38:20 +01:00
Michael Steenbeek
78a654fcbd
Rename missed occurrences of DrawPixelInfo/DPI to RenderTarget/RT ( #25768 )
2026-01-07 19:58:49 +00: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
Michael Steenbeek
5a547fc2bb
Fix return value of Widget::height()
2025-12-12 18:26:05 +01:00
Michael Steenbeek
6f24577027
Fix return value of Widget::width()
2025-11-08 10:27:58 +01:00
Gymnasiast
b3c854e3aa
Move ColourFlags/ColourWithFlags to own compilation units
2025-11-04 00:09:07 +01:00
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