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

Function ToggleFootpathWindow

src/openrct2-ui/windows/Footpath.cpp:1975–1987  ·  view source on GitHub ↗

* * rct2: 0x0066CCE7 */

Source from the content-addressed store, hash-verified

1973 * rct2: 0x0066CCE7
1974 */
1975 void ToggleFootpathWindow()
1976 {
1977 auto* windowMgr = GetWindowManager();
1978 if (windowMgr->FindByClass(WindowClass::footpath) == nullptr)
1979 {
1980 ContextOpenWindow(WindowClass::footpath);
1981 }
1982 else
1983 {
1984 ToolCancel();
1985 windowMgr->CloseByClass(WindowClass::footpath);
1986 }
1987 }
1988
1989 /**
1990 *

Callers 2

onMouseUpMethod · 0.85
ShortcutBuildPathsFunction · 0.85

Calls 5

GetWindowManagerFunction · 0.85
ContextOpenWindowFunction · 0.85
ToolCancelFunction · 0.85
CloseByClassMethod · 0.80
FindByClassMethod · 0.45

Tested by

no test coverage detected