Change: Unify station/waypoint/roadstop/object build-picker window code.
These windows now share a common code base for choosing and display class and types. An additional text filter is added to search types by name instead of just classes.
This commit is contained in:
committed by
Peter Nelson
parent
d2c8b476b5
commit
cdc356e7bf
@@ -12,18 +12,10 @@
|
||||
|
||||
/** Widgets of the #BuildObjectWindow class. */
|
||||
enum BuildObjectWidgets : WidgetID {
|
||||
WID_BO_FILTER, ///< The filter text box for the object list.
|
||||
WID_BO_CLASS_LIST, ///< The list with classes.
|
||||
WID_BO_SCROLLBAR, ///< The scrollbar associated with the list.
|
||||
WID_BO_OBJECT_MATRIX, ///< The matrix with preview sprites.
|
||||
WID_BO_OBJECT_SPRITE, ///< A preview sprite of the object.
|
||||
WID_BO_OBJECT_NAME, ///< The name of the selected object.
|
||||
WID_BO_OBJECT_SIZE, ///< The size of the selected object.
|
||||
WID_BO_INFO, ///< Other information about the object (from the NewGRF).
|
||||
|
||||
WID_BO_SELECT_MATRIX, ///< Selection preview matrix of objects of a given class.
|
||||
WID_BO_SELECT_IMAGE, ///< Preview image in the #WID_BO_SELECT_MATRIX.
|
||||
WID_BO_SELECT_SCROLL, ///< Scrollbar next to the #WID_BO_SELECT_MATRIX.
|
||||
};
|
||||
|
||||
#endif /* WIDGETS_OBJECT_WIDGET_H */
|
||||
|
||||
Reference in New Issue
Block a user