MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowNewspaper

Function ShowNewspaper

src/news_gui.cpp:696–702  ·  view source on GitHub ↗

Open up an own newspaper window for the news item */

Source from the content-addressed store, hash-verified

694
695/** Open up an own newspaper window for the news item */
696static void ShowNewspaper(const NewsItem *ni)
697{
698 SoundFx sound = _news_type_data[to_underlying(ni->type)].sound;
699 if (sound != 0 && _settings_client.sound.news_full) SndPlayFx(sound);
700
701 new NewsWindow(GetNewsWindowLayout(ni->style), ni);
702}
703
704/** Show news item in the ticker */
705static void ShowTicker(NewsIterator ni)

Callers 2

MoveToNextNewsItemFunction · 0.85
ShowNewsMessageFunction · 0.85

Calls 2

to_underlyingFunction · 0.85
SndPlayFxFunction · 0.85

Tested by

no test coverage detected