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

Method OnDropdownSelect

src/script/script_gui.cpp:494–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492 }
493
494 void OnDropdownSelect(WidgetID widget, int index, int) override
495 {
496 if (widget != WID_SCRS_SETTING_DROPDOWN) return;
497 assert(this->clicked_dropdown);
498 this->SetValue(index);
499 }
500
501 void OnDropdownClose(Point, WidgetID widget, int, int, bool) override
502 {

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.95

Tested by

no test coverage detected