summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-29 11:13:11 +0000
committerrubidium <rubidium@openttd.org>2008-05-29 11:13:11 +0000
commit22d7b252968f5ffecb15817051c2837a97563aa9 (patch)
treea33e06e83fac9f119628ba46239c00d64af51b3c /src/window_gui.h
parentf2869bb7db1cd475817ca71e3449e827748f00aa (diff)
downloadopenttd-22d7b252968f5ffecb15817051c2837a97563aa9.tar.xz
(svn r13322) -Codechange: _no_scroll belongs more with the window code.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 020f5797a..a499ae1e5 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -536,6 +536,21 @@ extern Window *_z_windows[];
extern Window **_last_z_window;
#define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++)
+/**
+ * In certain windows you navigate with the arrow keys. Do not scroll the
+ * gameview when here. Bitencoded variable that only allows scrolling if all
+ * elements are zero
+ */
+enum {
+ SCROLL_CON = 0,
+ SCROLL_EDIT = 1,
+ SCROLL_SAVE = 2,
+ SCROLL_CHAT = 4,
+};
+
+/** Disable scrolling of the main viewport when an input-window is active. */
+extern byte _no_scroll;
+
extern Point _cursorpos_drag_start;
extern int _scrollbar_start_pos;