|
OpenTTD Source 20260531-master-g0e951f3528
|
GUI functions related to the news. More...
#include "news_type.h"Go to the source code of this file.
Functions | |
| void | ShowLastNewsMessage () |
| Show previous news item. | |
| void | ShowMessageHistory () |
| Display window with news messages history. | |
| bool | HideActiveNewsMessage () |
| Close active news message window. | |
| const NewsContainer & | GetNews () |
| Get read-only reference to all news items. | |
GUI functions related to the news.
Definition in file news_gui.h.
| const NewsContainer & GetNews | ( | ) |
Get read-only reference to all news items.
Definition at line 79 of file news_gui.cpp.
References _news.
Referenced by SurveyRecentNews().
| bool HideActiveNewsMessage | ( | ) |
Close active news message window.
Definition at line 1149 of file news_gui.cpp.
References Window::Close(), and FindWindowById().
Referenced by MainWindow::OnHotkey().
| void ShowLastNewsMessage | ( | ) |
Show previous news item.
Definition at line 1158 of file news_gui.cpp.
References _current_news, _forced_news, _news, _news_type_data, FindWindowById(), Off, and ShowNewsMessage().
Referenced by MenuClickNewspaper(), and StatusBarWindow::OnClick().
| void ShowMessageHistory | ( | ) |
Display window with news messages history.
Definition at line 1324 of file news_gui.cpp.
References _message_history_desc, and CloseWindowById().
Referenced by MenuClickNewspaper().