src/window_gui.h
changeset 10426 4a77f7049b5e
parent 10238 5076964d81a1
equal deleted inserted replaced
10425:4a880a6ab2ac 10426:4a77f7049b5e
   542 
   542 
   543 /** Iterate over all windows */
   543 /** Iterate over all windows */
   544 #define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++)
   544 #define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++)
   545 
   545 
   546 /**
   546 /**
   547  * In certain windows you navigate with the arrow keys. Do not scroll the
   547  * Disable scrolling of the main viewport when an input-window is active.
   548  * gameview when here. Bitencoded variable that only allows scrolling if all
   548  * This contains the count of windows with a textbox in them.
   549  * elements are zero
   549  */
   550  */
       
   551 enum {
       
   552 	SCROLL_CON  = 0,
       
   553 	SCROLL_EDIT = 1,
       
   554 	SCROLL_SAVE = 2,
       
   555 	SCROLL_CHAT = 4,
       
   556 };
       
   557 
       
   558 /** Disable scrolling of the main viewport when an input-window is active. */
       
   559 extern byte _no_scroll;
   550 extern byte _no_scroll;
   560 
   551 
   561 extern Point _cursorpos_drag_start;
   552 extern Point _cursorpos_drag_start;
   562 
   553 
   563 extern int _scrollbar_start_pos;
   554 extern int _scrollbar_start_pos;