summaryrefslogtreecommitdiff
path: root/src/signs_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/signs_gui.cpp
parentf55c3312b3a343362548234a7bcf712ec7f15285 (diff)
downloadopenttd-91872aca4836c4e07808548b5a6d370a06734d58.tar.xz
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r--src/signs_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index 67dab304d..b66eb5d0a 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -200,6 +200,7 @@ static const NWidgetPart _nested_sign_list_widgets[] = {
NWidget(NWID_HORIZONTAL),
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
NWidget(WWT_CAPTION, COLOUR_GREY, SLW_CAPTION), SetDataTip(STR_SIGN_LIST_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
+ NWidget(WWT_SHADEBOX, COLOUR_GREY),
NWidget(WWT_STICKYBOX, COLOUR_GREY),
EndContainer(),
NWidget(NWID_HORIZONTAL),
@@ -323,7 +324,7 @@ struct SignWindow : QueryStringBaseWindow, SignList {
virtual void OnPaint()
{
this->DrawWidgets();
- this->DrawEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT);
+ if (!this->IsShaded()) this->DrawEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT);
}
virtual void OnClick(Point pt, int widget)