Changeset - r11557:32a6000a8201
[Not reviewed]
master
0 1 0
alberth - 16 years ago 2009-04-03 12:38:18
alberth@openttd.org
(svn r15928) -Codechange: Moving statusbar widget numbers outside StatusBarWindow
1 file changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/statusbar_gui.cpp
Show inline comments
 
@@ -60,12 +60,18 @@ static bool DrawScrollingStatusText(cons
 
	int x = DrawString(pos, pos + width, 0, buffer, TC_LIGHT_BLUE);
 
	_cur_dpi = old_dpi;
 

	
 
	return x > 0;
 
}
 

	
 
enum StatusbarWidget {
 
	SBW_LEFT,   ///< left part of the statusbar; date is shown there
 
	SBW_MIDDLE, ///< middle part; current news or company name or *** SAVING *** or *** PAUSED ***
 
	SBW_RIGHT,  ///< right part; bank balance
 
};
 

	
 
struct StatusBarWindow : Window {
 
	bool saving;
 
	int ticker_scroll;
 
	int reminder_timeout;
 

	
 
	enum {
 
@@ -73,18 +79,12 @@ struct StatusBarWindow : Window {
 
		TICKER_STOP    = -1280, ///< scrolling is finished when counter reaches this value
 
		REMINDER_START =    91, ///< initial value of the reminder counter (right dot on the right)
 
		REMINDER_STOP  =     0, ///< reminder disappears when counter reaches this value
 
		COUNTER_STEP   =     2, ///< this is subtracted from active counters every tick
 
	};
 

	
 
	enum StatusbarWidget {
 
		SBW_LEFT,   ///< left part of the statusbar; date is shown there
 
		SBW_MIDDLE, ///< middle part; current news or company name or *** SAVING *** or *** PAUSED ***
 
		SBW_RIGHT,  ///< right part; bank balance
 
	};
 

	
 
	StatusBarWindow(const WindowDesc *desc) : Window(desc)
 
	{
 
		CLRBITS(this->flags4, WF_WHITE_BORDER_MASK);
 
		this->ticker_scroll    =   TICKER_STOP;
 
		this->reminder_timeout = REMINDER_STOP;
 

	
0 comments (0 inline, 0 general)