public enum MyDropdownOptions {
HELLO,
WORLD,
ONECONFIG;
}
@Dropdown(
title = "My Dropdown",
description = "This is my dropdown", // Recommended, default = ""
icon = "/my_dropdown.svg", // Optional, default = ""
category = "Dropdowns", // Recommended, default = "General"
subcategory = "General" // Recommended, default = "General"
// We can't use the options field when using an enum.
)
public static MyDropdownOptions myDropdown = MyDropdownOptions.HELLO;
enum class MyDropdownOptions {
HELLO,
WORLD,
ONECONFIG
}
@Dropdown(
title = "My Dropdown",
description = "This is my dropdown", // Recommended, default = ""
icon = "/my_dropdown.svg", // Optional, default = ""
category = "Dropdowns", // Recommended, default = "General"
subcategory = "General" // Recommended, default = "General"
// We can't use the options field when using an enum.
)
var myDropdown = MyDropdownOptions.HELLO
An example of what the dropdown looks like in-game.
An example of what the dropdown looks like in-game when it is expanded.