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

Method OnClick

src/graph_gui.cpp:1085–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083 }
1084
1085 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
1086 {
1087 if (widget == WID_PHG_DETAILED_PERFORMANCE) ShowPerformanceRatingDetail();
1088 this->BaseGraphWindow::OnClick(pt, widget, click_count);
1089 }
1090};
1091
1092static constexpr std::initializer_list<NWidgetPart> _nested_performance_history_widgets = {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected