Codechange: Simplify autoreplace rail/road types by using separate widget. (#11457)
This avoids needing to determine which type of list to deal with by additionally checking the window number for VEH_TRAIN/VEH_ROAD.
This commit is contained in:
@@ -32,12 +32,13 @@ enum ReplaceVehicleWidgets {
|
||||
WID_RV_INFO_TAB, ///< Info tab.
|
||||
WID_RV_STOP_REPLACE, ///< Stop Replacing button.
|
||||
|
||||
/* Train/road only widgets */
|
||||
WID_RV_RAIL_ROAD_TYPE_DROPDOWN, ///< Dropdown menu about the rail/roadtype.
|
||||
|
||||
/* Train only widgets. */
|
||||
WID_RV_RAIL_TYPE_DROPDOWN, ///< Dropdown to select railtype.
|
||||
WID_RV_TRAIN_ENGINEWAGON_DROPDOWN, ///< Dropdown to select engines and/or wagons.
|
||||
WID_RV_TRAIN_WAGONREMOVE_TOGGLE, ///< Button to toggle removing wagons.
|
||||
|
||||
/* Road only widgets. */
|
||||
WID_RV_ROAD_TYPE_DROPDOWN, ///< Dropdown to select roadtype.
|
||||
};
|
||||
|
||||
#endif /* WIDGETS_AUTOREPLACE_WIDGET_H */
|
||||
|
Reference in New Issue
Block a user