diff --git a/src/openrct2-ui/windows/Footpath.cpp b/src/openrct2-ui/windows/Footpath.cpp index d54ea6d080..4113233cf1 100644 --- a/src/openrct2-ui/windows/Footpath.cpp +++ b/src/openrct2-ui/windows/Footpath.cpp @@ -1521,4 +1521,21 @@ static constexpr uint8_t ConstructionPreviewImages[][4] = { } } } + + /** + * + * rct2: 0x0066CCE7 + */ + void ToggleFootpathWindow() + { + if (WindowFindByClass(WindowClass::Footpath) == nullptr) + { + ContextOpenWindow(WindowClass::Footpath); + } + else + { + ToolCancel(); + WindowCloseByClass(WindowClass::Footpath); + } + } } // namespace OpenRCT2::Ui::Windows diff --git a/src/openrct2-ui/windows/TopToolbar.cpp b/src/openrct2-ui/windows/TopToolbar.cpp index 131fc244c3..1bc2611082 100644 --- a/src/openrct2-ui/windows/TopToolbar.cpp +++ b/src/openrct2-ui/windows/TopToolbar.cpp @@ -309,23 +309,6 @@ namespace OpenRCT2::Ui::Windows void NetworkMenuDropdown(int16_t dropdownIndex); - /** - * - * rct2: 0x0066CCE7 - */ - void ToggleFootpathWindow() - { - if (WindowFindByClass(WindowClass::Footpath) == nullptr) - { - ContextOpenWindow(WindowClass::Footpath); - } - else - { - ToolCancel(); - WindowCloseByClass(WindowClass::Footpath); - } - } - public: void OnMouseUp(WidgetIndex widgetIndex) override { diff --git a/src/openrct2-ui/windows/Window.h b/src/openrct2-ui/windows/Window.h index a44d7b8636..8f135fb7f2 100644 --- a/src/openrct2-ui/windows/Window.h +++ b/src/openrct2-ui/windows/Window.h @@ -49,8 +49,11 @@ namespace OpenRCT2::Ui::Windows WindowBase* EditorMainOpen(); WindowBase* EditorObjectiveOptionsOpen(); WindowBase* EditorScenarioOptionsOpen(); + WindowBase* FootpathOpen(); void WindowFootpathResetSelectedPath(); + void ToggleFootpathWindow(); + WindowBase* GuestOpen(Peep* peep); WindowBase* LandOpen();