Appearance
types.string_property_builder
Builds and registers a string setting.
Functions
default_value(value : string): types.string_property_builder
Sets the default value of the setting.
- value (
string) The default value - returns (
types.string_property_builder) This builder
observer(callback : function): types.string_property_builder
Sets a callback notified when the setting value changes.
- callback (
fun(old_value:string,new_value:string)) Receives the previous and new values - returns (
types.string_property_builder) This builder
visibility(callback : function): types.string_property_builder
Sets a callback controlling GUI visibility. Defaults to always visible.
- callback (
function) Returns whether the setting is visible - returns (
types.string_property_builder) This builder
category(category : types.property_category): types.string_property_builder
Groups the setting under an existing property category.
- category (
types.property_category) A category created by feature.register_category - returns (
types.string_property_builder) This builder
description(description : string): types.string_property_builder
Sets the setting's description.
- description (
string) The GUI description - returns (
types.string_property_builder) This builder
build(): types.string_property
Registers the setting and returns its property.
- returns (
types.string_property) The registered property
