Skip to main content

ItemColorGetColorButtonText

Callable

  • ItemColorGetColorButtonText(color: string | readonly string[]): string

  • Fetches the color button text for the provided item color. If the item's color is already a string, the color string is returned. Otherwise, returns "Many" or "Default" as appropriate.


    Parameters

    • color: string | readonly string[]

      The item color

    Returns string

    • The appropriate color button text for the provided item color(s), translated to the current game language