Peter Nelson and GitHub
3c30f962d4
Fix: Use meaningful tooltips for graph range toggle buttons ( #15842 )
...
Previously the tooltip only mentioned toggling the cargo, which is only correct for the cargo toggle buttons.
2026-07-11 13:51:01 +01:00
Peter Nelson and 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 and rubidium42
3b8b089dd4
Codechange: split currency.h to _type.h and _func.h
2026-06-18 19:32:16 +02:00
Peter Nelson and Peter Nelson
c3b0d71973
Codechange: use EnumRange over many enum loops
2026-06-13 21:54:42 +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 GitHub
7e624beadc
Codechange: make Shade a scoped enum ( #15571 )
...
Renamed from `ColourShade` to `Shade` for brevity.
2026-05-03 15:07:29 +01:00
Rubidium and rubidium42
8feffc9eba
Codechange: make FillRectMode a scoped enum
2026-04-27 22:12:20 +02: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
Rubidium and rubidium42
7434052eb6
Codechange: make FontSize a scoped enum
2026-04-12 18:10:34 +02:00
Peter Nelson and Peter Nelson
8fdc503448
Codechange: use scoped enum for ResizeWidgetType
...
Rename from ResizeWidgetValues
2026-03-31 12:21:00 +01:00
Peter Nelson and GitHub
b325575105
Add: Record history of cargo delivered to towns ( #15184 )
2026-03-23 21:32:18 +00: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
7aecc268b6
Codechange: add missing @param and @return
2026-02-16 17:19:09 +01:00
Rubidium and rubidium42
7adf44e474
Codechange: document some virtual functions
2026-02-08 17:43:18 +01:00
Cyprian Klimaszewski and rubidium42
b556dc24b8
Codechange: Make ScoreID an enum class.
2026-01-14 22:07:02 +01:00
Peter Nelson and GitHub
dc15cd30e8
Codefix: prevent inefficient reserve behaviour ( #15081 )
...
Same as d3420e6e4c but for Town instead of Industry graph.
2026-01-11 09:56:17 +00:00
Peter Nelson and GitHub
cc28e19052
Fix #15079 : Incorrect dates shown on town cargo history graph. ( #15080 )
2026-01-11 00:03:56 +00:00
Peter Nelson and GitHub
3351975133
Codefix: Avoid shadowing month/year BaseGraphWindow member variables. ( #14912 )
2025-12-14 19:08:45 +00:00
Rubidium and rubidium42
d3420e6e4c
Codefix: prevent inefficient reserve behaviour
...
When reserving by size() + 2, in a loop you're not really helping.
2025-12-14 08:48:28 +01:00
Peter Nelson and GitHub
688958da8a
Fix: Graph label allocated size could be too small. ( #14901 )
...
Set initial size based on what could be displayed, instead of what is displayed right now.
2025-12-12 09:24:16 +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
Rubidium and rubidium42
7c0f69a8fe
Codefix: typos in comments and strings
2025-08-31 10:30:37 +02:00
Peter Nelson and GitHub
cb12a59eed
Fix #14495 : Dangling references in Industry Production graph window. ( #14496 )
2025-08-05 20:14:55 +01:00
Tyler Trahan and GitHub
8c58fb1efd
Fix: Missing button beeps ( #14470 )
2025-08-05 13:57:45 -04:00
Peter Nelson and GitHub
5b1c6772da
Fix 557fb0bd78, bd57aee3a9: Remove separate x-axis label for industry/town production graph. ( #14497 )
...
This is no longer necessary (and is wrong) as it's now part of the horizontal scale selector.
2025-08-03 20:04:17 +01:00
Peter Nelson and GitHub
bd57aee3a9
Add: Town cargo history graphs. ( #14461 )
2025-08-02 23:19:43 +01:00
Peter Nelson and Peter Nelson
557fb0bd78
Change: Add support for different horizontal graph scales.
2025-07-30 01:13:05 +01:00
Peter Nelson and Peter Nelson
d09dfd843c
Codechange: Extend industry cargo history to 24 years.
...
Monthly data is stored for the current 24 months.
Quarterly data is stored for a further 2-6 years.
Yearly data is stored for a further 6-24 years.
2025-07-30 01:13:05 +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 Peter Nelson
5eeda026a4
Codechange: Allow unused graph ranges to be masked.
2025-07-20 14:03:54 +01:00
Richard Wheeler and GitHub
7db135099a
Fix: Scale graph gridlines and axes with GUI scale ( #12131 )
2025-07-10 00:05:48 +01:00
Peter Nelson and Peter Nelson
290144c5c9
Fix #14396 : Industry production graph showed zero instead of N/A.
...
Record the number of valid history records per industry so that the graph avoids showing values which are not present as zero.
2025-07-09 23:02:58 +01:00
Peter Nelson and Peter Nelson
9b55ad5b8d
Codechange: Generic type and container for history statistics.
2025-07-09 23:02:58 +01:00
Peter Nelson and GitHub
5766ba51d7
Codefix: Clean up incorrect indentation for multi-line comments. ( #14383 )
2025-06-20 19:01:44 +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
Peter Nelson and Peter Nelson
2f725d1e85
Add: Hover on graph legend to highlight line.
2025-06-07 15:50:25 +01:00
Peter Nelson and Peter Nelson
ea0b3983a5
Codechange: Deduplicate common parts of graph windows with cargo legends.
...
This unifies handling on the cargo selected to avoid having to rewrite it for every cargo graph window.
2025-06-02 17:40:39 +01:00
Peter Nelson and Peter Nelson
43d57a6b7e
Codefix 5c45738613: Rename CompanyGraphWindow to BaseCompanyGraphWindow.
...
This makes it clearer that it isn't a final graph window.
2025-06-02 17:40:39 +01:00
Peter Nelson and Peter Nelson
c233e5ee2c
Codechange: Tweak layouts of graph windows to reduce spacers.
2025-05-28 18:40:33 +01:00
Peter Nelson and Peter Nelson
5c45738613
Codechange: Improve inheritance of graph windows.
...
BaseGraphWindow contains parts that are only relevant to company-series data -- these are moved to a separate class.
2025-05-28 18:40:33 +01:00
frosch and frosch
0d5b3ebd7f
Codechange: Declare all IntervalTimers const, which can be const.
2025-05-06 18:29:41 +02:00
frosch and frosch
8571af9833
Codechange: Turn ZoomLevel into enum class.
2025-05-03 23:21:09 +02:00
Peter Nelson and GitHub
8b14faaa40
Codechange: Add version of DrawStringMultiLine that performs clipping test. ( #14189 )
...
Normally DrawStringMultiLine does not perform any clipping, as the return value may be needed if it the text is not drawn.
In some specific cases the height is already known, so it is possible to test for clipping, which can cut down on layouting time for text which won't be visible.
2025-05-02 22:59:55 +01:00
Peter Nelson and GitHub
5008568dfc
Codechange: Rename CenterBounds to CentreBounds and move to geometry header. ( #14002 )
2025-04-14 23:55:40 +01:00
John Taylor and GitHub
069edc1a4b
Fix #13954 : Plotting graphs with limited data to the right. ( #13956 )
2025-04-14 16:57:07 +02:00