MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / CloseAllExceptFlags

Method CloseAllExceptFlags

src/openrct2-ui/WindowManager.cpp:1084–1087  ·  view source on GitHub ↗

* Closes all windows, save for those having any of the passed flags. */

Source from the content-addressed store, hash-verified

1082 * Closes all windows, save for those having any of the passed flags.
1083 */
1084 void CloseAllExceptFlags(WindowFlags flags) override
1085 {
1086 CloseByCondition([flags](WindowBase* w) -> bool { return !w->flags.hasAny(flags); });
1087 }
1088
1089 /**
1090 * Closes all windows except the specified window number and class.

Callers 2

ScenarioEndFunction · 0.80
WindowInitAllFunction · 0.80

Calls 1

hasAnyMethod · 0.80

Tested by

no test coverage detected