10 #ifndef DROPDOWN_FUNC_H
11 #define DROPDOWN_FUNC_H
16 void ShowDropDownMenu(
Window *w, std::span<const StringID> strings,
int selected,
WidgetID button, uint32_t disabled_mask, uint32_t hidden_mask, uint width = 0);
19 std::unique_ptr<DropDownListItem> MakeDropDownListDividerItem();
20 std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
21 std::unique_ptr<DropDownListItem> MakeDropDownListStringItem(
const std::string &str,
int value,
bool masked =
false,
bool shaded =
false);
22 std::unique_ptr<DropDownListItem> MakeDropDownListIconItem(
SpriteID sprite,
PaletteID palette,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
23 std::unique_ptr<DropDownListItem> MakeDropDownListIconItem(
const Dimension &dim,
SpriteID sprite,
PaletteID palette,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);
24 std::unique_ptr<DropDownListItem> MakeDropDownListCheckedItem(
bool checked,
StringID str,
int value,
bool masked =
false,
bool shaded =
false);