MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Close

Method Close

src/waypoint_gui.cpp:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 void Close([[maybe_unused]] int data = 0) override
106 {
107 CloseWindowById(GetWindowClassForVehicleType(this->vt), VehicleListIdentifier(VL_STATION_LIST, this->vt, this->owner, this->window_number).ToWindowNumber(), false);
108 SetViewportCatchmentWaypoint(Waypoint::Get(this->window_number), false);
109 this->Window::Close();
110 }
111
112 std::string GetWidgetString(WidgetID widget, StringID stringid) const override
113 {

Callers

nothing calls this directly

Calls 5

CloseWindowByIdFunction · 0.85
ToWindowNumberMethod · 0.80

Tested by

no test coverage detected