diff options
author | smatz <smatz@openttd.org> | 2008-04-03 19:55:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-03 19:55:40 +0000 |
commit | febc5150c9ee3f2df2a1cad8ef527d9541697b22 (patch) | |
tree | 6e5ae7f6b1b5f40dbc7a0e75f50db327a96a8b37 /src/main_gui.cpp | |
parent | 83f9e141e038d1564ca2ed9d2ff034afbc948dbc (diff) | |
download | openttd-febc5150c9ee3f2df2a1cad8ef527d9541697b22.tar.xz |
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index e43bfd7ba..027f29130 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -1067,6 +1067,19 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) MarkWholeScreenDirty(); break; + case '1' | WKC_CTRL | WKC_SHIFT: + case '2' | WKC_CTRL | WKC_SHIFT: + case '3' | WKC_CTRL | WKC_SHIFT: + case '4' | WKC_CTRL | WKC_SHIFT: + case '5' | WKC_CTRL | WKC_SHIFT: + case '6' | WKC_CTRL | WKC_SHIFT: + case '7' | WKC_CTRL | WKC_SHIFT: + case '8' | WKC_CTRL | WKC_SHIFT: + /* Invisibility toggle hot keys */ + ToggleInvisibilityWithTransparency((TransparencyOption)(e->we.keypress.keycode - ('1' | WKC_CTRL | WKC_SHIFT))); + MarkWholeScreenDirty(); + break; + case 'X' | WKC_CTRL: ShowTransparencyToolbar(); break; |