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.
|
||||
|
||||
@@ -60,12 +60,12 @@ enum VehicleDetailsWidgets {
|
||||
|
||||
/** Widgets of the #VehicleListWindow class. */
|
||||
enum VehicleListWidgets {
|
||||
WID_VL_LIST, ///< List of the vehicles, this must be first, see: DirtyVehicleListWindowForVehicle
|
||||
WID_VL_CAPTION, ///< Caption of window.
|
||||
WID_VL_SORT_ORDER, ///< Sort order.
|
||||
WID_VL_SORT_BY_PULLDOWN, ///< Sort by dropdown list.
|
||||
WID_VL_FILTER_BY_CARGO, ///< Cargo filter dropdown list
|
||||
WID_VL_FILTER_BY_CARGO_SEL, ///< Cargo filter dropdown list panel selector
|
||||
WID_VL_LIST, ///< List of the vehicles.
|
||||
WID_VL_SCROLLBAR, ///< Scrollbar for the list.
|
||||
WID_VL_HIDE_BUTTONS, ///< Selection to hide the buttons.
|
||||
WID_VL_AVAILABLE_VEHICLES, ///< Available vehicles.
|
||||
|
||||
Reference in New Issue
Block a user