summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-17 21:57:20 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-17 21:57:20 +0000
commit307b0e8e7aa05ae776bd13331409ac1a2aaf4ecd (patch)
treef0865c504ce14b5f8046a8c43c3cd24a7eaa5bea /src/rail_gui.cpp
parentada41b7b3ff7560fc0b79aaac9292ea9acbde4c6 (diff)
downloadopenttd-307b0e8e7aa05ae776bd13331409ac1a2aaf4ecd.tar.xz
(svn r11912) -Codechange: use dropdown widget for autoreplace, station builder and (second?) vehicle list windows
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index d0a74b420..b29267af3 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -723,7 +723,6 @@ enum BuildRailStationWidgets {
BRSW_HIGHLIGHT_ON,
BRSW_NEWST_DROPDOWN,
- BRSW_NEWST_DROPDOWN_TEXT,
BRSW_NEWST_LIST,
BRSW_NEWST_SCROLL
};
@@ -1004,8 +1003,7 @@ static void StationBuildWndProc(Window *w, WindowEvent *e)
break;
case BRSW_NEWST_DROPDOWN:
- case BRSW_NEWST_DROPDOWN_TEXT:
- ShowDropDownList(w, BuildStationClassDropDown(), _railstation.station_class, BRSW_NEWST_DROPDOWN_TEXT);
+ ShowDropDownList(w, BuildStationClassDropDown(), _railstation.station_class, BRSW_NEWST_DROPDOWN);
break;
case BRSW_NEWST_LIST: {
@@ -1122,8 +1120,7 @@ static const Widget _newstation_builder_widgets[] = {
{ WWT_TEXTBTN, RESIZE_NONE, 14, 74, 133, 242, 253, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA}, // BRSW_HIGHLIGHT_ON
/* newstations gui additions */
-{ WWT_INSET, RESIZE_NONE, 14, 7, 140, 17, 28, STR_02BD, STR_SELECT_STATION_CLASS_TIP}, // BRSW_NEWST_DROPDOWN
-{ WWT_TEXTBTN, RESIZE_NONE, 14, 129, 139, 18, 27, STR_0225, STR_SELECT_STATION_CLASS_TIP}, // BRSW_NEWST_DROPDOWN_TEXT
+{ WWT_DROPDOWNIN, RESIZE_NONE, 14, 7, 140, 17, 28, STR_02BD, STR_SELECT_STATION_CLASS_TIP}, // BRSW_NEWST_DROPDOWN
{ WWT_MATRIX, RESIZE_NONE, 14, 7, 128, 32, 102, 0x501, STR_SELECT_STATION_TYPE_TIP}, // BRSW_NEWST_LIST
{ WWT_SCROLLBAR, RESIZE_NONE, 14, 129, 140, 32, 102, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST}, // BRSW_NEWST_SCROLL
{ WIDGETS_END},