Color option

An example of what the color picker option looks like in-game.

Example

@Color(
    title = "My Color",
    description = "This is my color", // Recommended, default = ""
    icon = "/my_color.svg", // Optional, default = ""
    category = "Colors", // Recommended, default = "General"
    subcategory = "General", // Recommended, default = "General"
    alpha = true // Optional, default = true
)
public static PolyColor myColor = PolyColor.WHITE;

Last updated