Add: data parameter in Window::Close method.

This allows passing data when closing a window, e.g. to indicate how it was closed.
This commit is contained in:
Peter Nelson
2023-10-13 12:59:15 +01:00
committed by Peter Nelson
parent cda6f24fe8
commit f379b31e28
28 changed files with 50 additions and 50 deletions

View File

@@ -364,7 +364,7 @@ public:
this->SetWidgetDisabledState(WID_TV_CHANGE_NAME, _networking && !_network_server);
}
void Close() override
void Close([[maybe_unused]] int data = 0) override
{
SetViewportCatchmentTown(Town::Get(this->window_number), false);
this->Window::Close();