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

Method OnDropdownSelect

src/window_gui.h:770–770  ·  view source on GitHub ↗

* A dropdown option associated to this window has been selected. * @param widget the widget (button) that the dropdown is associated with. * @param index the element in the dropdown that is selected. */

Source from the content-addressed store, hash-verified

768 * @param index the element in the dropdown that is selected.
769 */
770 virtual void OnDropdownSelect([[maybe_unused]] WidgetID widget, [[maybe_unused]] int index, [[maybe_unused]] int click_result) {}
771
772 virtual void OnDropdownClose(Point pt, WidgetID widget, int index, int click_result, bool instant_close);
773

Callers 1

OnDropdownCloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected