mirror of https://github.com/OpenTTD/OpenTTD
(svn r15928) -Codechange: Moving statusbar widget numbers outside StatusBarWindow
parent
9af4047eee
commit
27a13ec67d
|
@ -63,6 +63,12 @@ static bool DrawScrollingStatusText(const NewsItem *ni, int pos, int width)
|
||||||
return x > 0;
|
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 {
|
struct StatusBarWindow : Window {
|
||||||
bool saving;
|
bool saving;
|
||||||
int ticker_scroll;
|
int ticker_scroll;
|
||||||
|
@ -76,12 +82,6 @@ struct StatusBarWindow : Window {
|
||||||
COUNTER_STEP = 2, ///< this is subtracted from active counters every tick
|
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)
|
StatusBarWindow(const WindowDesc *desc) : Window(desc)
|
||||||
{
|
{
|
||||||
CLRBITS(this->flags4, WF_WHITE_BORDER_MASK);
|
CLRBITS(this->flags4, WF_WHITE_BORDER_MASK);
|
||||||
|
|
Loading…
Reference in New Issue