Action Setting
class ActionSetting(name: String, visibility: Visibility = Visibility.VISIBLE, description: String? = null, val default: () -> Unit = {}) : Setting<() -> Unit>
A clickable setting for Modules that runs code on click.
Represented by a button in the GUI which when clicked will invoke value.
Author
Aton
Constructors
Link copied to clipboard
fun ActionSetting(name: String, visibility: Visibility = Visibility.VISIBLE, description: String? = null, default: () -> Unit = {})
Functions
Link copied to clipboard
open operator override fun provideDelegate(thisRef: Module, property: KProperty<*>): ReadWriteProperty<Module, () -> Unit>
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.