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

Method CloseAllExceptClass

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

Source from the content-addressed store, hash-verified

1071 }
1072
1073 void CloseAllExceptClass(WindowClass cls) override
1074 {
1075 CloseByClass(WindowClass::dropdown);
1076 CloseByCondition([cls](WindowBase* w) -> bool {
1077 return w->classification != cls && !w->flags.hasAny(WindowFlag::stickToBack, WindowFlag::stickToFront);
1078 });
1079 }
1080
1081 /**
1082 * Closes all windows, save for those having any of the passed flags.

Callers 3

NewGameWindowCallbackFunction · 0.80
SelectFunction · 0.80
onScrollMouseDownMethod · 0.80

Calls 1

hasAnyMethod · 0.80

Tested by

no test coverage detected