Notable 2.0 Changes
A migration guide.
🔨 Breaking changes
Change of ID format
The identifiers of all configured objects in Tooltips have been changed. Now the identifier includes the full path to the object. For example, this is what a preset ID would look like in a folder:
mypreset -> folder/file/mypreset
This will require modifification all theme ID in presets to match the new format.
Local placeholders removed
Now instead of %furniture_id%
and %var_key%
, use context & variable Functions.
Furnish no longer needed
Furnish was used to store price data about IDs, you can now do that using the $data function.
Hex codes broken
Now instead of hex color codes, the MiniMessage format is used, even in preset background colors.
✨ New
Functions
Most important addition are furnitures. They allow to display advanced text and placeholders. Display static data from the preset file, context from conditions or conditional text. Functions.
Context
Now, conditions are able to provide context. Context is information about the things that a condition checks. For example, for a lookingatfurniture
condition, the context is the ID of the furniture. This can be accessed using functions.
Data
This allows to define custom data in a preset file, which can be accessed with the data function. This data can be prices of items, names of NPCs or text lines. This is a very powerful feature, which replaces Furnish.
MiniMessage
MiniMessage support, which allows for richer format in messages. However note that not all tags are included, since italic, bold and underline cannot be supported. Learn more about the format.
Animations
You can now animate text inside presets. It will only work if a preset is being shown using conditions. Check out the animation types and format.
Optimizations
Split the condition and tooltip threads. Now conditions are checked separately from sending the tooltips, which means that tooltips can be refreshed more often.
Priorities
Presets used to be checked more or less randomly. Now you can define a presets priority. The preset with the highest priority will be shown first. They can be set for presets and for entire preset file.
Reshow
A reshow property in presets, which will redisplay the tooltip (fade in & fade out) if text changes.
BetonQuest support
BetonQuest support, documented here. Tutorial on how to use it here.
Other
- Support for quotes in arguments
- Dynamic conditions
Conditions can be registered at runtime, anytime (API related)
- Specify custom icon width
Icons can now have a custom, user-provided width. Documented on the icon page.
Last updated