Preset
Presets consist of properties that define how a tooltip is shown. They are configured in the presets
folder.
Base configuration
Minimal setup:
Old base configuration (pre 1.8)
In essence, every property except for the theme is optional. This would work just fine, but at that point you're better off just sending the theme:
Properties explanation
text
A text line can be centered in the tooltip like so:
color
Gradients generate a larger JSON message than regular color, so tooltips with gradients that have a large background may be laggier!
You can specify the color the following ways:
horizontal-shift
Moves the tooltip away from the center. Specified in pixels
conditions
show
actions
Parenting
Presets support parenting since plugin version 1.5. Parenting allows you to copy all properties from a "parent" preset into another preset and modify only the required properties. Parents and children are defined like so:
Other children can be parented as well.
Last updated