OpenTTD Source 20241224-master-gf74b0cf984
|
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 1098 of file news_gui.cpp.
References Window::Close(), FindWindowById(), and WC_NEWS_WINDOW.
Referenced by MainWindow::OnHotkey().
void ShowLastNewsMessage | ( | ) |
Show previous news item.
Definition at line 1107 of file news_gui.cpp.
References _current_news, _forced_news, _news, _news_type_data, FindWindowById(), NewsTypeData::GetDisplay(), ND_OFF, ShowNewsMessage(), and WC_NEWS_WINDOW.
Referenced by MenuClickNewspaper(), and StatusBarWindow::OnClick().
void ShowMessageHistory | ( | ) |
Display window with news messages history.
Definition at line 1276 of file news_gui.cpp.
References CloseWindowById(), and WC_MESSAGE_HISTORY.
Referenced by MenuClickNewspaper().