mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Move ToggleFootpathWindow into Footpath.cpp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user