OpenTTD Source 20250312-master-gcdcc6b491d
statusbar_gui.h File Reference

Functions, definitions and such used only by the GUI. More...

Go to the source code of this file.

Enumerations

enum  StatusBarInvalidate : uint8_t {
  SBI_SAVELOAD_START , SBI_SAVELOAD_FINISH , SBI_SHOW_TICKER , SBI_SHOW_REMINDER ,
  SBI_NEWS_DELETED , SBI_END
}
 What of the statusbar must be invalidated? More...
 

Functions

bool IsNewsTickerShown ()
 Checks whether the news ticker is currently being used.
 
void ShowStatusBar ()
 Show our status bar.
 

Detailed Description

Functions, definitions and such used only by the GUI.

Definition in file statusbar_gui.h.

Enumeration Type Documentation

◆ StatusBarInvalidate

enum StatusBarInvalidate : uint8_t

What of the statusbar must be invalidated?

Enumerator
SBI_SAVELOAD_START 

started saving

SBI_SAVELOAD_FINISH 

finished saving

SBI_SHOW_TICKER 

start scrolling news

SBI_SHOW_REMINDER 

show a reminder (dot on the right side of the statusbar)

SBI_NEWS_DELETED 

abort current news display (active news were deleted)

Definition at line 14 of file statusbar_gui.h.

Function Documentation

◆ IsNewsTickerShown()

bool IsNewsTickerShown ( )

Checks whether the news ticker is currently being used.

Definition at line 231 of file statusbar_gui.cpp.

References FindWindowById(), StatusBarWindow::TICKER_STOP, and WC_STATUS_BAR.

Referenced by ReadyForNextTickerItem().

◆ ShowStatusBar()

void ShowStatusBar ( )

Show our status bar.

Definition at line 240 of file statusbar_gui.cpp.

Referenced by ShowVitalWindows().