ColorSetting

Has a Color as value

This setting uses a Color as value, please check Color

new ColorSetting(String name, String description, Color value, boolean allowAlphaChange)

Creates a new ColorSetting, setting allowAlphaChange to false will make it so the alpha of the color is not changeable by the user.

getValue(): Color

Returns the current value of the setting.

setValue(Color value): void

Sets the value of the setting.

getName(): String

Gives the name of the setting.

getDescription(): String

Returns the description of the setting.

setHidden(boolean hidden): void

Allows you to hide a setting from the menu.

setHidden() only works on settings that have been initiated by scripts in the first place!

isHidden(boolean hidden): void

Allows you to hide a setting from the menu.

Last updated