Changeset - r11823:4190ddf2d712
[Not reviewed]
master
0 1 0
alberth - 16 years ago 2009-05-03 13:54:47
alberth@openttd.org
(svn r16218) -Codechange: Move BuildRoadStationWidgets enum outside window struct.
1 file changed with 16 insertions and 18 deletions:
0 comments (0 inline, 0 general)
src/road_gui.cpp
Show inline comments
 
@@ -890,25 +890,23 @@ static void ShowRoadDepotPicker(Window *
 
	new BuildRoadDepotWindow(&_build_road_depot_desc, parent);
 
}
 

	
 
/** Enum referring to the widgets of the build road station window */
 
enum BuildRoadStationWidgets {
 
	BRSW_CLOSEBOX = 0,
 
	BRSW_CAPTION,
 
	BRSW_BACKGROUND,
 
	BRSW_STATION_NE,
 
	BRSW_STATION_SE,
 
	BRSW_STATION_SW,
 
	BRSW_STATION_NW,
 
	BRSW_STATION_X,
 
	BRSW_STATION_Y,
 
	BRSW_LT_OFF,
 
	BRSW_LT_ON,
 
	BRSW_INFO,
 
};
 

	
 
struct BuildRoadStationWindow : public PickerWindowBase {
 
private:
 
	/** Enum referring to the widgets of the build road station window */
 
	enum BuildRoadStationWidgets {
 
		BRSW_CLOSEBOX = 0,
 
		BRSW_CAPTION,
 
		BRSW_BACKGROUND,
 
		BRSW_STATION_NE,
 
		BRSW_STATION_SE,
 
		BRSW_STATION_SW,
 
		BRSW_STATION_NW,
 
		BRSW_STATION_X,
 
		BRSW_STATION_Y,
 
		BRSW_LT_OFF,
 
		BRSW_LT_ON,
 
		BRSW_INFO,
 
	};
 

	
 
public:
 
	BuildRoadStationWindow(const WindowDesc *desc, Window *parent, RoadStopType rs) : PickerWindowBase(desc, parent)
 
	{
 
		/* Trams don't have non-drivethrough stations */
0 comments (0 inline, 0 general)