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

Function ShowDropDownListAt

src/dropdown.cpp:402–406  ·  view source on GitHub ↗

* Show a drop down list. * @param w Parent window for the list. * @param list Prepopulated DropDownList. * @param selected The initially selected list item. * @param button The widget which is passed to Window::OnDropdownSelect and OnDropdownClose. * Unless you override those functions, this should be then widget index of the dropdown button. * @param wi_rect Co

Source from the content-addressed store, hash-verified

400 * @param options Drop Down options for this menu.
401 */
402void ShowDropDownListAt(Window *w, DropDownList &&list, int selected, WidgetID button, Rect wi_rect, Colours wi_colour, DropDownOptions options)
403{
404 CloseWindowByClass(WC_DROPDOWN_MENU);
405 new DropdownWindow(w, std::move(list), selected, button, wi_rect, wi_colour, options);
406}
407
408/**
409 * Show a drop down list.

Callers 7

OnClickMethod · 0.85
OptionsPanelClickMethod · 0.85
ShowDropDownListFunction · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickClientAdminMethod · 0.85
OnClickCompanyAdminMethod · 0.85

Calls 1

CloseWindowByClassFunction · 0.85

Tested by

no test coverage detected