Rubidium and rubidium42
d519cad60f
Codechange: remove unused path in DrawSortButton and simplify calling
2026-06-14 20:30:16 +02:00
Rubidium and rubidium42
2ff631caa2
Codechange: make GameMode a scoped enum
2026-05-30 23:20:20 +02:00
Jonathan G Rennison and GitHub
33874571a5
Fix: Scenario editor random industry generation ( #15626 )
2026-05-26 20:01:11 +01:00
Peter Nelson and GitHub
fce33c5015
Codechange: make WarningLevel a scoped enum ( #15622 )
2026-05-26 17:12:21 +01:00
Rubidium and rubidium42
bcda4a72ee
Codechange: make WindowClass a scoped enum
2026-05-20 21:39:04 +02:00
Rubidium and rubidium42
c59d64c132
Codechange: separate TextColour enumeration and flags
2026-05-18 08:37:42 +02:00
Peter Nelson and Peter Nelson
77be3fc12d
Codechange: make IndustryAvailabilityCallType a scoped enum
2026-04-30 22:40:20 +01:00
Rubidium and rubidium42
8feffc9eba
Codechange: make FillRectMode a scoped enum
2026-04-27 22:12:20 +02:00
Peter Nelson and GitHub
4a7cbf29f0
Codechange: prefer AutoRestoreBackup over Backup/Restore ( #15480 )
2026-04-27 08:02:41 +01:00
Rubidium and rubidium42
99c8a637b4
Codechange: make WindowPosition a scoped enum
2026-04-25 17:15:18 +02:00
Peter Nelson and Peter Nelson
c45aa3c9b6
Codechange: use EnumBitSet for CargoTypes
2026-04-21 17:13:31 +01:00
Rubidium and rubidium42
3b5d46e0bb
Codechange: make Colours a scoped enum
2026-04-19 20:53:52 +02:00
Peter Nelson and GitHub
2bf84ea78c
Codechange: make GrfSpecFeature a scoped enum ( #15487 )
2026-04-19 19:04:27 +01:00
Rubidium and rubidium42
7434052eb6
Codechange: make FontSize a scoped enum
2026-04-12 18:10:34 +02:00
Peter Nelson and Peter Nelson
636fcf3af3
Codechange: make TownProductionEffect a scoped enum
2026-04-12 14:46:54 +01:00
Peter Nelson and Peter Nelson
d02d57b348
Change: Make dropdown text filter persistent in some cases.
2026-03-08 19:25:28 +00:00
Peter Nelson and Peter Nelson
d685fc97f1
Change: Enable dropdown text filter for various dropdown lists.
2026-03-08 19:25:28 +00:00
Peter Nelson and GitHub
5e9d20d57e
Codechange: use scoped enums in industry windows ( #15319 )
2026-02-27 23:24:26 +00:00
Rubidium and rubidium42
6370859c7e
Codechange: add missing documentation to destructors
2026-02-24 16:24:53 +01:00
Cyprian Klimaszewski and rubidium42
21bee91fa7
Codechange: Make some variables and constants documentation comments recognised by doxygen.
2026-02-21 15:05:13 +01:00
Rubidium and rubidium42
8e75626b49
Codechange: unify documentation and parameter names of sorters
2026-02-11 04:53:39 +01:00
Peter Nelson and Peter Nelson
5c2a37d03e
Codechange: use enum class for ClearGround
2026-02-02 18:49:20 +00:00
Rubidium and rubidium42
bcaf3eaec2
Codefix: wrong parameter names and partially missing parameters
2026-02-02 18:18:51 +01:00
Rubidium and rubidium42
67fac86149
Codefix: remove @param documentation for parameters that don't exist anymore
2026-02-01 15:49:41 +01:00
Rubidium and rubidium42
4adf494ebc
Codechange: enum-class-ify Commands
2026-01-28 23:32:51 +01:00
Cyprian Klimaszewski and rubidium42
97f3e5b70f
Codechange: Make TileType enum an enum class.
2026-01-24 08:34:05 +01:00
Rubidium and rubidium42
5418a8c6f8
Codechange: document a few enumerations
2026-01-12 06:35:19 +01:00
Tyler Trahan and GitHub
18f2f7eb2d
Codechange: Use enum class for setting values ( #15074 )
2026-01-10 22:40:48 +00:00
Peter Nelson and Peter Nelson
dc115cc785
Fix f34c45c36d: Incorrect colour in cargo list in fund industry window.
2025-12-26 16:15:25 +00:00
Jonathan G Rennison and GitHub
5683ddb99a
Fix #12465 : Click/tooltip alignment of industry chain cargo lines ( #14963 )
2025-12-26 10:20:15 +00:00
Peter Nelson and GitHub
f1e831233a
Codefix: Mark destructors override. ( #14925 )
...
Remove some empty destructors.
2025-12-19 18:14:29 +00:00
Cyprian Klimaszewski and GitHub
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Peter Nelson and GitHub
66b6d71e32
Codechange: Use std::initializer_list for NWidgetPart data. ( #14749 )
...
Avoids using C/C++ arrays.
2025-11-01 22:33:00 +00:00
Peter Nelson and GitHub
614a01907a
Codechange: Make functions for click and confirm beeps. ( #14484 )
...
Avoids repetition.
2025-07-27 21:54:32 +01:00
Peter Nelson and GitHub
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 and Peter Nelson
56942a15c7
Add: Industry accepted and waiting history graphs.
...
Records amount of cargo accepted, and a rolling average of the waiting amount.
Average waiting samples the waiting amount once per day for each industry, spread out over an economy day.
2025-07-20 14:03:54 +01:00
Peter Nelson and GitHub
edc5b8ea1f
Fix #14464 : Invalid string parameter in scenario editor when unable to build industry. ( #14465 )
...
Resolved by removing the Build Industry command callback. This was used to display an error message in the scenario editor, however an error is already automatically displayed.
2025-07-20 14:03:29 +01:00
Peter Nelson and GitHub
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 and GitHub
5f8e04457e
Codechange: Use default OnHotkey handler for focusing editboxes ( #14358 )
2025-06-16 22:25:54 +02:00
Peter Nelson and Peter Nelson
984d864c72
Codechange: Add OnClick handler for dropdown items.
...
This allows each dropdown item to indicate if something different should happen depending on where in the item was clicked.
2025-05-25 09:13:05 +01:00
frosch and frosch
2926179d02
Fix: Restore the behaviour when entering numbers in query windows: clamp integers out of range to the maximum valid value.
2025-05-20 12:57:30 +02:00
frosch and frosch
a277cb2b4c
Change: [NewGRF] Increase the textstack for all callbacks to 16 registers.
2025-05-09 12:39:11 +02:00
frosch and frosch
c6fa5022cb
Add: [NewGRF] All callbacks returning D0xx strings, have now the option to return any string id via register 0x100.
2025-05-09 12:39:11 +02:00
frosch and frosch
eb9bbb2456
Codechange: Remove direct access to temporary storage from TextRefStack.
2025-05-06 22:24:41 +02:00
frosch and frosch
0d5b3ebd7f
Codechange: Declare all IntervalTimers const, which can be const.
2025-05-06 18:29:41 +02:00
Peter Nelson and GitHub
3e608b5fe4
Fix: Zoom-scroll extra viewports only if the mouse cursor is over the viewport. ( #14209 )
2025-05-04 14:16:05 +01:00
frosch and frosch
8571af9833
Codechange: Turn ZoomLevel into enum class.
2025-05-03 23:21:09 +02:00
frosch and frosch
cdafc50c94
Codechange: Replace atoi and atoll with ParseInteger.
2025-04-29 20:14:56 +02:00
Rubidium and rubidium42
78250c3bba
Codechange: remove const char* overloads when there are std::string_view and std::string& overloads
2025-04-29 10:14:53 +02:00
Peter Nelson and GitHub
2c4897c2cd
Codechange: Use EnumBitSet for HouseZones. ( #14137 )
2025-04-28 20:27:43 +01:00