Avoid unnecessary redrawing of vehicle list windows
Redraw info section every tick if values have changed
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
|
||||
/** Widgets of the #VehicleGroupWindow class. */
|
||||
enum GroupListWidgets {
|
||||
WID_GL_LIST_VEHICLE, ///< List of the vehicles, this must be first, see: DirtyVehicleListWindowForVehicle
|
||||
WID_GL_CAPTION, ///< Caption of the window.
|
||||
WID_GL_SORT_BY_ORDER, ///< Sort order.
|
||||
WID_GL_SORT_BY_DROPDOWN, ///< Sort by dropdown list.
|
||||
WID_GL_FILTER_BY_CARGO, ///< Filter vehicle by cargo type.
|
||||
WID_GL_FILTER_BY_CARGO_SEL, ///< Filter vehicle by cargo type panel selector.
|
||||
WID_GL_LIST_VEHICLE, ///< List of the vehicles.
|
||||
WID_GL_LIST_VEHICLE_SCROLLBAR, ///< Scrollbar for the list.
|
||||
WID_GL_AVAILABLE_VEHICLES, ///< Available vehicles.
|
||||
WID_GL_MANAGE_VEHICLES_DROPDOWN, ///< Manage vehicles dropdown list.
|
||||
|
Reference in New Issue
Block a user