OpenTTD Source  20241108-master-g80f628063a
news_gui.h File Reference

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. More...
 
const NewsContainerGetNews ()
 Get read-only reference to all news items. More...
 

Detailed Description

GUI functions related to the news.

Definition in file news_gui.h.

Function Documentation

◆ GetNews()

const NewsContainer& GetNews ( )

Get read-only reference to all news items.

Returns
Read-only reference to all news items.

Definition at line 79 of file news_gui.cpp.

References _news.

Referenced by SurveyRecentNews().

◆ HideActiveNewsMessage()

bool HideActiveNewsMessage ( )

Close active news message window.

Returns
true if a window was closed.

Definition at line 1030 of file news_gui.cpp.

References Window::Close(), FindWindowById(), and WC_NEWS_WINDOW.