summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-21 16:24:29 +0000
committeralberth <alberth@openttd.org>2009-12-21 16:24:29 +0000
commit91872aca4836c4e07808548b5a6d370a06734d58 (patch)
treebcb9fde256b0cdf8210a0120601e3cabce93c05f /src/build_vehicle_gui.cpp
parentf55c3312b3a343362548234a7bcf712ec7f15285 (diff)
downloadopenttd-91872aca4836c4e07808548b5a6d370a06734d58.tar.xz
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index d99bdea13..9a8bb4320 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -63,6 +63,7 @@ static const NWidgetPart _nested_build_vehicle_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
NWidget(WWT_CAPTION, COLOUR_GREY, BUILD_VEHICLE_WIDGET_CAPTION), SetDataTip(STR_JUST_STRING, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
+ NWidget(WWT_SHADEBOX, COLOUR_GREY),
NWidget(WWT_STICKYBOX, COLOUR_GREY),
EndContainer(),
NWidget(WWT_PANEL, COLOUR_GREY),
@@ -1128,7 +1129,7 @@ struct BuildVehicleWindow : Window {
needed_height = max(needed_height, text_end - (int)nwi->pos_y + WD_FRAMERECT_BOTTOM);
}
}
- if (needed_height != this->details_height) { // Details window are not high enough, enlarge them.
+ if (!this->IsShaded() && needed_height != this->details_height) { // Details window are not high enough, enlarge them.
this->details_height = needed_height;
this->ReInit();
return;