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

Method OnDropdownSelect

src/station_gui.cpp:2124–2131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2122 }
2123
2124 void OnDropdownSelect(WidgetID widget, int index, int) override
2125 {
2126 if (widget == WID_SV_SORT_BY) {
2127 this->SelectSortBy(index);
2128 } else {
2129 this->SelectGroupBy(index);
2130 }
2131 }
2132
2133 void OnQueryTextFinished(std::optional<std::string> str) override
2134 {

Callers

nothing calls this directly

Calls 2

SelectSortByMethod · 0.95
SelectGroupByMethod · 0.95

Tested by

no test coverage detected