marta

Function configurationKey()

function marta.configurationKey(

path: String...,

block: ConfigurationKeyDeclaration

)

Define a custom configuration key.

The built-in preferences editor will recognize the key and highlight its usage.

path is one or more key path chunks. Please put action preferences to the behavior/actions block.

Example:

configurationKey("behavior", "actions", "my.action", {
    description = "My action.",
    examples = {"5", "-0.2"},
    typeConstraints = {"int", "double"}
})