FS#5709 - News history filtering

Attached to Project: OpenTTD
Opened by Wormnest (Wormnest) - Thursday, 15 August 2013, 12:36 GMT
Last edited by andythenorth (andythenorth) - Saturday, 02 September 2017, 12:21 GMT
Type Feature Request
Category Interface
Status With patch
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


This patch, consisting of 5 hg patches, provides filtering of the news history window based on the way the stations window filters vehicles and cargo.
A new dropdown list is added showing all available types of news and a all news category. The all news category contains all news unfiltered, the other categories will only show the news that is of the selected type.
For news about vehicles and engines there is an additional vehicle type filter to be able to only show vehicles of the types you are interested in.
The same for industries, you can select the producing cargos you want to be shown.

This patch is based on trunk r25721.

For industries that produce more than 1 cargo it is currently not possible to only filter on the cargo type that is mentioned in the news item. e.g. when you get a message about livestock production increasing it will both be shown when filtering on livestock and on grain.
Closing industries can't be filtered on cargo type, since they are closing the industry data isn't sent with the news message.

Possible improvements:
An all news types category but with filters for vehicle and cargo types active.
Combine some news type categories since several of them have a very low amount of news.
Combining the industry production news types might make sense to, however then there would have to be another filter added for opening/closing, own industry/ competitor/ unserviced.
This task depends upon