OpenTTD Source: src/statusbar_gui.h Source File

OpenTTD Source 15.3

statusbar_gui.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef STATUSBAR_GUI_H
11#define STATUSBAR_GUI_H
12
14 enum StatusBarInvalidate : uint8_t {
15 SBI_SAVELOAD_START,
16 SBI_SAVELOAD_FINISH,
17 SBI_SHOW_TICKER,
18 SBI_SHOW_REMINDER,
19 SBI_NEWS_DELETED,
20 SBI_END
21};
22
23bool IsNewsTickerShown();
24void ShowStatusBar();
25
26#endif /* STATUSBAR_GUI_H */
StatusBarInvalidate
StatusBarInvalidate
What of the statusbar must be invalidated?
Definition statusbar_gui.h:14
SBI_SHOW_REMINDER
@ SBI_SHOW_REMINDER
show a reminder (dot on the right side of the statusbar)
Definition statusbar_gui.h:18
SBI_SAVELOAD_FINISH
@ SBI_SAVELOAD_FINISH
finished saving
Definition statusbar_gui.h:16
SBI_SHOW_TICKER
@ SBI_SHOW_TICKER
start scrolling news
Definition statusbar_gui.h:17
SBI_SAVELOAD_START
@ SBI_SAVELOAD_START
started saving
Definition statusbar_gui.h:15
SBI_NEWS_DELETED
@ SBI_NEWS_DELETED
abort current news display (active news were deleted)
Definition statusbar_gui.h:19
ShowStatusBar
void ShowStatusBar()
Show our status bar.
Definition statusbar_gui.cpp:240
IsNewsTickerShown
bool IsNewsTickerShown()
Checks whether the news ticker is currently being used.
Definition statusbar_gui.cpp:231