Boolean Setting
class BooleanSetting(name: String, val default: Boolean = false, visibility: Visibility = Visibility.VISIBLE, description: String? = null) : Setting<Boolean>
A boolean Setting for modules.
Can be used to toggle aspects of a Module. Represented by a toggle button in the GUI.
Author
Aton
Constructors
Link copied to clipboard
fun BooleanSetting(name: String, default: Boolean = false, visibility: Visibility = Visibility.VISIBLE, description: String? = null)
Functions
Link copied to clipboard
open operator override fun provideDelegate(thisRef: Module, property: KProperty<*>): ReadWriteProperty<Module, Boolean>
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.