summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-25 20:22:08 +0000
committerfrosch <frosch@openttd.org>2013-06-25 20:22:08 +0000
commitbbbecceae1cfd7aed447a30c3e130efbb6997ead (patch)
tree36056b9003ba1532d625fc26938203e7e5e2479b /src/rail_gui.cpp
parent43a37f7f284c307c78698d4bb55f4aec745a45e1 (diff)
downloadopenttd-bbbecceae1cfd7aed447a30c3e130efbb6997ead.tar.xz
(svn r25464) -Fix: Hide default size button in non-newstation rail-station picker since it is not resizeable anyway.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 446268d73..758367b6d 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -925,6 +925,8 @@ public:
newst_additions->SetDisplayedPlane(newstation ? 0 : SZSP_NONE);
newst_additions = this->GetWidget<NWidgetStacked>(WID_BRAS_SHOW_NEWST_MATRIX);
newst_additions->SetDisplayedPlane(newstation ? 0 : SZSP_NONE);
+ newst_additions = this->GetWidget<NWidgetStacked>(WID_BRAS_SHOW_NEWST_DEFSIZE);
+ newst_additions->SetDisplayedPlane(newstation ? 0 : SZSP_NONE);
newst_additions = this->GetWidget<NWidgetStacked>(WID_BRAS_SHOW_NEWST_RESIZE);
newst_additions->SetDisplayedPlane(newstation ? 0 : SZSP_NONE);
this->FinishInitNested(TRANSPORT_RAIL);
@@ -1344,7 +1346,9 @@ static const NWidgetPart _nested_station_builder_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN),
NWidget(WWT_CAPTION, COLOUR_DARK_GREEN), SetDataTip(STR_STATION_BUILD_RAIL_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
- NWidget(WWT_DEFSIZEBOX, COLOUR_DARK_GREEN),
+ NWidget(NWID_SELECTION, INVALID_COLOUR, WID_BRAS_SHOW_NEWST_DEFSIZE),
+ NWidget(WWT_DEFSIZEBOX, COLOUR_DARK_GREEN),
+ EndContainer(),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_DARK_GREEN),
NWidget(NWID_HORIZONTAL),