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

Method OnDropdownSelect

src/game/game_gui.cpp:356–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354 }
355
356 void OnDropdownSelect(WidgetID widget, int index, int) override
357 {
358 if (widget != WID_GSC_SETTING_DROPDOWN) return;
359 assert(this->clicked_dropdown);
360 this->SetValue(index);
361 }
362
363 void OnDropdownClose(Point, WidgetID widget, int, int, bool) override
364 {

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.95

Tested by

no test coverage detected