diff options
author | alberth <alberth@openttd.org> | 2009-12-21 16:24:29 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-12-21 16:24:29 +0000 |
commit | 91872aca4836c4e07808548b5a6d370a06734d58 (patch) | |
tree | bcb9fde256b0cdf8210a0120601e3cabce93c05f /src/ai | |
parent | f55c3312b3a343362548234a7bcf712ec7f15285 (diff) | |
download | openttd-91872aca4836c4e07808548b5a6d370a06734d58.tar.xz |
(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 5aab3eaff..83c121b0c 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -749,6 +749,8 @@ struct AIDebugWindow : public Window { /* Draw standard stuff */ this->DrawWidgets(); + if (this->IsShaded()) return; // Don't draw anything when the window is shaded. + /* If there are no active companies, don't display anything else. */ if (ai_debug_company == INVALID_COMPANY) return; @@ -918,6 +920,7 @@ static const NWidgetPart _nested_ai_debug_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_GREY), NWidget(WWT_CAPTION, COLOUR_GREY), SetDataTip(STR_AI_DEBUG, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS), + NWidget(WWT_SHADEBOX, COLOUR_GREY), NWidget(WWT_STICKYBOX, COLOUR_GREY), EndContainer(), NWidget(WWT_PANEL, COLOUR_GREY, AID_WIDGET_VIEW), |