Changeset - r5283:ce5c5a7a40ad
[Not reviewed]
master
0 1 0
belugas - 18 years ago 2006-12-08 02:25:04
belugas@openttd.org
(svn r7432) -Fix(r7413) : The NO(cargo waiting) button of the StationList Window is now part of the cargo selection scheme. Again.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
station_gui.c
Show inline comments
 
@@ -35,7 +35,6 @@ enum StationListWidgets {
 
	STATIONLIST_WIDGET_SORTCRITERIA,
 
	STATIONLIST_WIDGET_SORTDROPBTN,
 
	CARGO_ALL_SELECTED = 0x1FFF,
 
	CARGO_NONE_SELECTED = 0x1000,
 
};
 

	
 
typedef int CDECL StationSortListingTypeFunction(const void*, const void*);
 
@@ -277,7 +276,7 @@ static void PlayerStationsWndProc(Window
 
		}
 
		SetWindowWidgetLoweredState(w, STATIONLIST_WIDGET_FACILALL, facilities == (FACIL_TRAIN | FACIL_TRUCK_STOP | FACIL_BUS_STOP | FACIL_AIRPORT | FACIL_DOCK));
 
		SetWindowWidgetLoweredState(w, STATIONLIST_WIDGET_CARGOALL, cargo_filter == CARGO_ALL_SELECTED);
 
		SetWindowWidgetLoweredState(w, STATIONLIST_WIDGET_NOCARGOWAITING, cargo_filter == CARGO_NONE_SELECTED);
 
		SetWindowWidgetLoweredState(w, STATIONLIST_WIDGET_NOCARGOWAITING, HASBIT(cargo_filter, STATIONLIST_WIDGET_NOCARGOWAITING - NUM_CARGO));
 

	
 
		sl->sort_list = NULL;
 
		sl->flags = SL_REBUILD;
 
@@ -424,7 +423,7 @@ static void PlayerStationsWndProc(Window
 
			for (i = 0; i < NUM_CARGO; i++) {
 
				LowerWindowWidget(w, i + STATIONLIST_WIDGET_CARGOSTART);
 
			}
 
			RaiseWindowWidget(w, STATIONLIST_WIDGET_NOCARGOWAITING);
 
			LowerWindowWidget(w, STATIONLIST_WIDGET_NOCARGOWAITING);
 
			LowerWindowWidget(w, STATIONLIST_WIDGET_CARGOALL);
 

	
 
			cargo_filter = CARGO_ALL_SELECTED;
0 comments (0 inline, 0 general)