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 | 94aa04948c35a08fadc26a1213440f83fc1f6825 (patch) | |
tree | b25be0c2b78e4856dbb24ee6a70e415d68810b85 /src/transparency_gui.cpp | |
parent | 44f4ebffed894f9dee57747da1ad177bc5e96171 (diff) | |
download | openttd-94aa04948c35a08fadc26a1213440f83fc1f6825.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; |