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

Method Close

src/vehicle_gui.cpp:3053–3060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3051 }
3052
3053 void Close([[maybe_unused]] int data = 0) override
3054 {
3055 CloseWindowById(WC_VEHICLE_ORDERS, this->window_number, false);
3056 CloseWindowById(WC_VEHICLE_REFIT, this->window_number, false);
3057 CloseWindowById(WC_VEHICLE_DETAILS, this->window_number, false);
3058 CloseWindowById(WC_VEHICLE_TIMETABLE, this->window_number, false);
3059 this->Window::Close();
3060 }
3061
3062 void UpdateWidgetSize(WidgetID widget, Dimension &size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension &fill, [[maybe_unused]] Dimension &resize) override
3063 {

Callers 1

OnClickMethod · 0.45

Calls 1

CloseWindowByIdFunction · 0.85

Tested by

no test coverage detected