mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user