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

Function FootpathOpen

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

* * rct2: 0x006A7C43 */

Source from the content-addressed store, hash-verified

1868 * rct2: 0x006A7C43
1869 */
1870 WindowBase* FootpathOpen()
1871 {
1872 if (!WindowFootpathSelectDefault())
1873 {
1874 // No path objects to select from, don't open window
1875 return nullptr;
1876 }
1877
1878 auto* windowMgr = GetWindowManager();
1879 return windowMgr->FocusOrCreate<FootpathWindow>(WindowClass::footpath, kWindowSize, {});
1880 }
1881
1882 void WindowFootpathResetSelectedPath()
1883 {

Callers 1

OpenWindowMethod · 0.85

Calls 2

GetWindowManagerFunction · 0.85

Tested by

no test coverage detected