diff options
author | alberth <alberth@openttd.org> | 2009-08-03 16:42:02 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-08-03 16:42:02 +0000 |
commit | f7a6fe81e829a533982a0a4cae68efc6886e30d1 (patch) | |
tree | 00b10b8686d7586641c038ec644f36bc95b44edb | |
parent | 51c29deb705eb3fe0414918bf3f03d6e9bd0363c (diff) | |
download | openttd-f7a6fe81e829a533982a0a4cae68efc6886e30d1.tar.xz |
(svn r17056) -Codechange: Reduce width of the drop-down in the bridge gui.
-rw-r--r-- | src/bridge_gui.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index 42e9cbbe7..c24917136 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -312,14 +312,19 @@ static const NWidgetPart _nested_build_bridge_widgets[] = { NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN, BBSW_CLOSEBOX), NWidget(WWT_CAPTION, COLOUR_DARK_GREEN, BBSW_CAPTION), SetFill(1, 0), SetDataTip(STR_SELECT_RAIL_BRIDGE_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS), EndContainer(), - /* Sort order + criteria buttons */ - NWidget(NWID_HORIZONTAL), - NWidget(WWT_TEXTBTN, COLOUR_DARK_GREEN, BBSW_DROPDOWN_ORDER), SetFill(1, 0), SetDataTip(STR_SORT_BY, STR_SORT_ORDER_TIP), - NWidget(WWT_DROPDOWN, COLOUR_DARK_GREEN, BBSW_DROPDOWN_CRITERIA), SetFill(1, 0), SetDataTip(0x0, STR_SORT_CRITERIA_TIP), - EndContainer(), - /* Matrix + scrollbar */ + NWidget(NWID_HORIZONTAL), - NWidget(WWT_MATRIX, COLOUR_DARK_GREEN, BBSW_BRIDGE_LIST), SetFill(1, 0), SetResize(0, 22), SetDataTip(0x401, STR_BUILD_BRIDGE_SELECTION_TOOLTIP), + NWidget(NWID_VERTICAL), + /* Sort order + criteria buttons */ + NWidget(NWID_HORIZONTAL), + NWidget(WWT_TEXTBTN, COLOUR_DARK_GREEN, BBSW_DROPDOWN_ORDER), SetFill(1, 0), SetDataTip(STR_SORT_BY, STR_SORT_ORDER_TIP), + NWidget(WWT_DROPDOWN, COLOUR_DARK_GREEN, BBSW_DROPDOWN_CRITERIA), SetFill(1, 0), SetDataTip(0x0, STR_SORT_CRITERIA_TIP), + EndContainer(), + /* Matrix. */ + NWidget(WWT_MATRIX, COLOUR_DARK_GREEN, BBSW_BRIDGE_LIST), SetFill(1, 0), SetResize(0, 22), SetDataTip(0x401, STR_BUILD_BRIDGE_SELECTION_TOOLTIP), + EndContainer(), + + /* scrollbar + resize button */ NWidget(NWID_VERTICAL), NWidget(WWT_SCROLLBAR, COLOUR_DARK_GREEN, BBSW_SCROLLBAR), SetFill(0, 1), NWidget(WWT_RESIZEBOX, COLOUR_DARK_GREEN, BBSW_RESIZEBOX), |