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

Function ShowTicker

src/news_gui.cpp:705–711  ·  view source on GitHub ↗

Show news item in the ticker */

Source from the content-addressed store, hash-verified

703
704/** Show news item in the ticker */
705static void ShowTicker(NewsIterator ni)
706{
707 if (_settings_client.sound.news_ticker) SndPlayFx(SND_16_NEWS_TICKER);
708
709 _statusbar_news = ni;
710 InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SHOW_TICKER);
711}
712
713/** Initialize the news-items data structures */
714void InitNewsItemStructs()

Callers 1

MoveToNextTickerItemFunction · 0.85

Calls 2

SndPlayFxFunction · 0.85
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected