Peter Nelson
e3dfd59df0
Change: clip content in purchase list to each row
2026-07-13 23:15:08 +01:00
Peter Nelson
b4d16d319f
Codechange: Replace Alignment enum with struct
...
Alignment struct contains separate horizontal and vertical alignment members.
2026-06-28 20:43:36 +01:00
Rubidium
f0a1b507fe
Codechange: make ClientID a scoped enumeration
2026-06-26 06:26:52 +02:00
Peter Nelson
1f0fd6dfab
Codechange: make AccelerationModel a scoped enum ( #15757 )
2026-06-21 10:01:34 +01:00
Peter Nelson
9f49ea4177
Codechange: make EngineImageType a scoped enum ( #15755 )
2026-06-21 08:05:41 +00:00
Rubidium
d519cad60f
Codechange: remove unused path in DrawSortButton and simplify calling
2026-06-14 20:30:16 +02:00
Peter Nelson
c3b0d71973
Codechange: use EnumRange over many enum loops
2026-06-13 21:54:42 +01:00
Rubidium
bcda4a72ee
Codechange: make WindowClass a scoped enum
2026-05-20 21:39:04 +02:00
Peter Nelson
2868060660
Codechange: make LiveryScheme a scoped enum
2026-05-18 20:05:19 +01:00
Rubidium
c59d64c132
Codechange: separate TextColour enumeration and flags
2026-05-18 08:37:42 +02:00
Peter Nelson
a7a025623e
Codechange: make RailVehicleType a scoped enum ( #15576 )
2026-05-04 22:58:05 +01:00
Peter Nelson
7e624beadc
Codechange: make Shade a scoped enum ( #15571 )
...
Renamed from `ColourShade` to `Shade` for brevity.
2026-05-03 15:07:29 +01:00
Peter Nelson
77403627a8
Codechange: make VehicleType a scoped enum
2026-04-26 07:00:13 +01:00
Peter Nelson
8b5c4ae96b
Codechange: add helpers to get engine sorter names/functions
...
Avoids exposing raw C-style arrays.
2026-04-26 07:00:13 +01:00
Rubidium
99c8a637b4
Codechange: make WindowPosition a scoped enum
2026-04-25 17:15:18 +02:00
Peter Nelson
c45aa3c9b6
Codechange: use EnumBitSet for CargoTypes
2026-04-21 17:13:31 +01:00
Peter Nelson
8341beb345
Codechange: add functions to convert between GrfSpecFeature and VehicleType ( #15517 )
...
Removes various different casts.
2026-04-20 19:17:48 +01:00
Rubidium
3b5d46e0bb
Codechange: make Colours a scoped enum
2026-04-19 20:53:52 +02:00
Peter Nelson
2bf84ea78c
Codechange: make GrfSpecFeature a scoped enum ( #15487 )
2026-04-19 19:04:27 +01:00
Rubidium
7434052eb6
Codechange: make FontSize a scoped enum
2026-04-12 18:10:34 +02:00
Peter Nelson
d02d57b348
Change: Make dropdown text filter persistent in some cases.
2026-03-08 19:25:28 +00:00
Peter Nelson
d685fc97f1
Change: Enable dropdown text filter for various dropdown lists.
2026-03-08 19:25:28 +00:00
Cyprian Klimaszewski
2ac0811ff9
Codechange: Make documentation comments for some functions recognised by doxygen.
2026-02-21 15:05:13 +01:00
Cyprian Klimaszewski
21bee91fa7
Codechange: Make some variables and constants documentation comments recognised by doxygen.
2026-02-21 15:05:13 +01:00
Rubidium
c7468a6922
Codechange: add missing @param and @return
2026-02-15 22:14:37 +01:00
Rubidium
8e75626b49
Codechange: unify documentation and parameter names of sorters
2026-02-11 04:53:39 +01:00
Eilon Lipton
83f58b3fbd
Add: Show additional vehicle details based on sort criteria ( #15158 )
...
When creating vehicles and sorting the list, additional vehicle details are shown for the field being sorted by. For example, when sorting by running cost, the running cost of every vehicle is shown in the vehicle list at the top-level.
Co-authored-by: rubidium42 <rubidium42@users.noreply.github.com >
Co-authored-by: Charles Pigott <charlespigott@googlemail.com >
2026-02-10 08:58:11 -05:00
Rubidium
bcaf3eaec2
Codefix: wrong parameter names and partially missing parameters
2026-02-02 18:18:51 +01:00
Rubidium
4adf494ebc
Codechange: enum-class-ify Commands
2026-01-28 23:32:51 +01:00
Cyprian Klimaszewski
322ce224b4
Codechange: Make Price an enum class.
2026-01-14 22:07:02 +01:00
Cyprian Klimaszewski
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Cyprian Klimaszewski
abf8438a1b
Fix #14756 : Invalidate nested focus before widget container is cleared. ( #14809 )
2025-12-06 12:52:44 -05:00
Peter Nelson
bd338d6e42
Fix 25f1c97bea: Incorrect background colour in badge configuration list. ( #14850 )
...
Provide correct widget colour instead of assuming COLOUR_GREY.
2025-12-03 14:38:20 +00:00
Peter Nelson
069833963c
Codechange: Replace drop down list's default bools with DropDownOptions. ( #14837 )
...
Improves maintainability and avoids positional ambiguity.
2025-11-29 16:17:44 +00:00
Rito12
c38aa9cc86
Fix #14701 : Company colour remap for sprites in badge filter dropdowns. ( #14732 )
2025-11-13 18:24:46 -05:00
Peter Nelson
66b6d71e32
Codechange: Use std::initializer_list for NWidgetPart data. ( #14749 )
...
Avoids using C/C++ arrays.
2025-11-01 22:33:00 +00:00
Rito12
f935e34d90
Codefix: Remove double SetDirty() calls.
2025-10-11 12:15:00 +08:00
Peter Nelson
31eec7106b
Codechange: Use Rect WithX/WithY in some places.
2025-09-28 00:31:23 +01:00
Peter Nelson
42c9f84d74
Fix 3ac1a2f1e4: Game crash due to invalid vehicle type information. ( #14628 )
...
Use std::variant instead of union for vehicle info.
RailVehicleInfo is now non-POD so using in a union causes undefined behaviour.
2025-09-24 22:44:41 +01:00
Michael Lutz
52e97c981c
Add: Show all railtypes in the build vehicle and engine preview dialogs.
2025-09-14 17:11:26 +02:00
Michael Lutz
3ac1a2f1e4
Codechange: Store the rail type of rail engines as a RailTypes bitmask.
2025-09-14 17:11:26 +02:00
Michael Lutz
0715903b24
Codechange: Use an enum for vehicle acceleration model.
2025-09-14 17:11:26 +02:00
Peter Nelson
ff5e067341
Fix 7b60e5ccad: Badge filters were only applied to trains. ( #14565 )
2025-08-31 23:04:48 +01:00
Peter Nelson
8e2df7809b
Codechange: Add distinct type to hold pixel drawing colour. ( #14457 )
...
This is used for individual pixels as well as line drawing.
2025-07-20 22:57:55 +01:00
Peter Nelson
bd2430dc94
Codechange: Use FlatSet to avoid trying to add variant parents multiple times.
2025-06-26 08:33:34 +01:00
Peter Nelson
8901f9adca
Fix #14361 : Removing a badge filter did not clear it. ( #14379 )
2025-06-23 08:24:03 +01:00
Peter Nelson
e4cf6ca0ba
Fix: Mis-sized widgets due to missing widget fill. ( #14370 )
...
In most places where we calculate and set widget resize step we neglect
to set widget fill step to match. Initial widget sizing uses fill step
instead of resize step, which means the initial size may not be a
multiple of the resize step as intended. In particular this will cause
WWT_MATRIX to be misrendered.
Whether or not this matters depends on the widget type being resized and
the window layout, however for consistency always set fill step to the
same as resize step when calculating.
2025-06-17 17:40:11 +01:00
Colin Caine
5f8e04457e
Codechange: Use default OnHotkey handler for focusing editboxes ( #14358 )
2025-06-16 22:25:54 +02:00
Peter Nelson
7b60e5ccad
Add: Badge dropdown filters to build vehicle window.
2025-06-05 17:55:24 +01:00
Peter Nelson
f28dc3cca4
Add: Button to configure badges in build vehicle window.
2025-05-25 09:13:05 +01:00