* 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
| 400 | * @param options Drop Down options for this menu. |
| 401 | */ |
| 402 | void 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. |
no test coverage detected