summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy <andy@teamrubber.com>2019-03-08 15:46:32 +0000
committerPeterN <peter@fuzzle.org>2019-03-09 11:04:35 +0000
commit46aca9377b01a6626a972151e6fc4c62eec76ba7 (patch)
tree9d9003560b0a243dfc3a10b35dc323734d54854e
parent42046af933ac57ab08c83d26bd94e60a253bab66 (diff)
downloadopenttd-46aca9377b01a6626a972151e6fc4c62eec76ba7.tar.xz
Add: windowshade for rail station construction window
-rw-r--r--src/rail_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index 234edbf22..0bc29977c 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -1029,6 +1029,7 @@ public:
this->DrawWidgets();
+ if (this->IsShaded()) return;
/* 'Accepts' and 'Supplies' texts. */
NWidgetBase *cov = this->GetWidget<NWidgetBase>(WID_BRAS_COVERAGE_TEXTS);
int top = cov->pos_y + WD_PAR_VSEP_NORMAL;
@@ -1378,6 +1379,7 @@ 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_SHADEBOX, COLOUR_DARK_GREEN),
NWidget(NWID_SELECTION, INVALID_COLOUR, WID_BRAS_SHOW_NEWST_DEFSIZE),
NWidget(WWT_DEFSIZEBOX, COLOUR_DARK_GREEN),
EndContainer(),