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

Function IsVitalWindow

src/window.cpp:1293–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291}
1292
1293static inline bool IsVitalWindow(const Window *w)
1294{
1295 switch (w->window_class) {
1296 case WC_MAIN_TOOLBAR:
1297 case WC_STATUS_BAR:
1298 case WC_NEWS_WINDOW:
1299 case WC_SEND_NETWORK_MSG:
1300 return true;
1301
1302 default:
1303 return false;
1304 }
1305}
1306
1307/**
1308 * Get the z-priority for a given window. This is used in comparison with other z-priority values;

Callers 2

MaybeBringWindowToFrontFunction · 0.85
CheckSoftLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected