--- a/src/window_gui.h Tue May 27 00:50:55 2008 +0000
+++ b/src/window_gui.h Tue Jun 17 10:32:49 2008 +0000
@@ -536,6 +536,21 @@
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;
@@ -562,6 +577,10 @@
void ResizeWindowForWidget(Window *w, int widget, int delta_x, int delta_y);
+void SetVScrollCount(Window *w, int num);
+void SetVScroll2Count(Window *w, int num);
+void SetHScrollCount(Window *w, int num);
+
/**
* Sets the enabled/disabled status of a widget.