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
@@ -21,12 +21,13 @@
|
||||
* Draw a waypoint
|
||||
* @param x coordinate
|
||||
* @param y coordinate
|
||||
* @param stat_id station id
|
||||
* @param station_class Station class.
|
||||
* @param station_type Station type within class.
|
||||
* @param railtype RailType to use for
|
||||
*/
|
||||
void DrawWaypointSprite(int x, int y, int stat_id, RailType railtype)
|
||||
void DrawWaypointSprite(int x, int y, StationClassID station_class, uint16_t station_type, RailType railtype)
|
||||
{
|
||||
if (!DrawStationTile(x, y, railtype, AXIS_X, STAT_CLASS_WAYP, stat_id)) {
|
||||
if (!DrawStationTile(x, y, railtype, AXIS_X, station_class, station_type)) {
|
||||
StationPickerDrawSprite(x, y, STATION_WAYPOINT, railtype, INVALID_ROADTYPE, AXIS_X);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user