Setting
abstract class Setting<T>(val name: String, val visibility: Visibility = Visibility.VISIBLE, var description: String? = null) : ReadWriteProperty<Module, T> , PropertyDelegateProvider<Module, ReadWriteProperty<Module, T>>
The super class that all Module Settings for the gui and config should inherit from.
See Module for instructions on how to use settings.
This class provides support for delegation to Settings. Delegating to a Setting will register it to the Module from which you are delegating a property to the Setting. If you do not want this to happen use the DoNotRegister annotation.
To avoid nullability you can use DummySetting instead of null.
Author
Aton
Constructors
Types
Functions
Link copied to clipboard
open operator override fun provideDelegate(thisRef: Module, property: KProperty<*>): ReadWriteProperty<Module, T>
This operator provides the Delegate to the Setting.
Properties
Link copied to clipboard
Returns whether this setting should be visible based on visibilityDependency. Is true by default. Use withDependency to change this behavior.