Add train length and group name to vehicle details window.

Add settings to control each, default on.
Re-init window whenever presence of group name line changes.
This commit is contained in:
Jonathan G Rennison
2015-08-30 17:09:43 +01:00
parent 8c389a2a96
commit 5a07315405
5 changed files with 80 additions and 6 deletions

View File

@@ -135,6 +135,8 @@ struct GUISettings {
uint32 last_newgrf_count; ///< the numbers of NewGRFs we found during the last scan
byte missing_strings_threshold; ///< the number of missing strings before showing the warning
uint8 graph_line_thickness; ///< the thickness of the lines in the various graph guis
bool show_train_length_in_details; ///< show train length in vehicle details window top widget
bool show_vehicle_group_in_details; ///< show vehicle group in vehicle details window top widget
uint8 osk_activation; ///< Mouse gesture to trigger the OSK.
uint16 console_backlog_timeout; ///< the minimum amount of time items should be in the console backlog before they will be removed in ~3 seconds granularity.