Number Setting
class NumberSetting(name: String, val default: Double = 1.0, val min: Double = -10000.0, val max: Double = 10000.0, val increment: Double = 1.0, visibility: Visibility = Visibility.VISIBLE, description: String? = null) : Setting<Double>
A Double Setting for Modules.
Represented in the GUI by a slider. To use a different type adjust the increment and use the toInt() etc. methods.
Constructors
Link copied to clipboard
fun NumberSetting(name: String, default: Double = 1.0, min: Double = -10000.0, max: Double = 10000.0, increment: Double = 1.0, visibility: Visibility = Visibility.VISIBLE, description: String? = null)
Functions
Link copied to clipboard
open operator override fun provideDelegate(thisRef: Module, property: KProperty<*>): ReadWriteProperty<Module, Double>
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.