src/window_gui.h
branchNewGRF_ports
changeset 10991 d8811e327d12
parent 10731 67db0d431d5e
equal deleted inserted replaced
10731:67db0d431d5e 10991:d8811e327d12
   534 /* window.cpp */
   534 /* window.cpp */
   535 extern Window *_z_windows[];
   535 extern Window *_z_windows[];
   536 extern Window **_last_z_window;
   536 extern Window **_last_z_window;
   537 #define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++)
   537 #define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++)
   538 
   538 
       
   539 /**
       
   540  * In certain windows you navigate with the arrow keys. Do not scroll the
       
   541  * gameview when here. Bitencoded variable that only allows scrolling if all
       
   542  * elements are zero
       
   543  */
       
   544 enum {
       
   545 	SCROLL_CON  = 0,
       
   546 	SCROLL_EDIT = 1,
       
   547 	SCROLL_SAVE = 2,
       
   548 	SCROLL_CHAT = 4,
       
   549 };
       
   550 
       
   551 /** Disable scrolling of the main viewport when an input-window is active. */
       
   552 extern byte _no_scroll;
       
   553 
   539 extern Point _cursorpos_drag_start;
   554 extern Point _cursorpos_drag_start;
   540 
   555 
   541 extern int _scrollbar_start_pos;
   556 extern int _scrollbar_start_pos;
   542 extern int _scrollbar_size;
   557 extern int _scrollbar_size;
   543 extern byte _scroller_click_timeout;
   558 extern byte _scroller_click_timeout;
   560 
   575 
   561 void ResizeButtons(Window *w, byte left, byte right);
   576 void ResizeButtons(Window *w, byte left, byte right);
   562 
   577 
   563 void ResizeWindowForWidget(Window *w, int widget, int delta_x, int delta_y);
   578 void ResizeWindowForWidget(Window *w, int widget, int delta_x, int delta_y);
   564 
   579 
       
   580 void SetVScrollCount(Window *w, int num);
       
   581 void SetVScroll2Count(Window *w, int num);
       
   582 void SetHScrollCount(Window *w, int num);
       
   583 
   565 
   584 
   566 /**
   585 /**
   567  * Sets the enabled/disabled status of a widget.
   586  * Sets the enabled/disabled status of a widget.
   568  * By default, widgets are enabled.
   587  * By default, widgets are enabled.
   569  * On certain conditions, they have to be disabled.
   588  * On certain conditions, they have to be disabled.