diff options
author | belugas <belugas@openttd.org> | 2008-01-30 03:34:24 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-01-30 03:34:24 +0000 |
commit | 6ee4ed8bf98872f74417226fa6cfa9a02c609a40 (patch) | |
tree | b25be0c2b78e4856dbb24ee6a70e415d68810b85 /src/transparency_gui.cpp | |
parent | 3e90a16cfc6e184d35132d55d6a7f96ab1257bac (diff) | |
download | openttd-6ee4ed8bf98872f74417226fa6cfa9a02c609a40.tar.xz |
(svn r12018) -Fix(FS#1721,r9563): Restore initial intent on the invisible tree while transparent building patch setting
Diffstat (limited to 'src/transparency_gui.cpp')
-rw-r--r-- | src/transparency_gui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp index f09d73c3a..df214e81d 100644 --- a/src/transparency_gui.cpp +++ b/src/transparency_gui.cpp @@ -7,6 +7,7 @@ #include "variables.h" #include "transparency.h" #include "sound_func.h" +#include "settings_type.h" #include "table/sprites.h" #include "table/strings.h" @@ -37,6 +38,11 @@ static void TransparencyToolbWndProc(Window *w, WindowEvent *e) for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_END; i++) { w->SetWidgetLoweredState(i, IsTransparencySet((TransparencyOption)(i - TTW_WIDGET_SIGNS))); } + + /* Disabling the trees button allows to make it very evident that it has no effect + * upon current situation */ + w->SetWidgetDisabledState(TTW_WIDGET_TREES, _patches.invisible_trees && IsTransparencySet(TO_HOUSES)); + DrawWindowWidgets(w); break; |