Skip to content

types.boolean_property_builder ​

Builds and registers a boolean setting.

Functions ​

default_value(value : boolean): types.boolean_property_builder ​

Sets the default value of the setting.

observer(callback : function): types.boolean_property_builder ​

Sets a callback notified when the setting value changes.

visibility(callback : function): types.boolean_property_builder ​

Sets a callback controlling GUI visibility. Defaults to always visible.

category(category : types.property_category): types.boolean_property_builder ​

Groups the setting under an existing property category.

description(description : string): types.boolean_property_builder ​

Sets the setting's description.

build(): types.boolean_property ​

Registers the setting and returns its property.