
⭐Tooltips 2.4
A new way to display info. Oraxen & ItemsAdder support | Custom textures | Drag&drop config
This update includes mostly bug fixes and improvements to certain things.
Most notably, Nexo furniture hitboxes are now more accurate.
- Fix color codes
- Fix functions not using correct context
- Fix animations not parsing placeholders
- Fix error when running action commands
- Add $hasvar and $haspvar functions
- Improve Nexo furniture hitboxes
Minor tweaks and fixes:
- Fix legacy colors leaving a character behind
- Allow legacy colors to support hex colors
- Add citizen.id context to lookingatcitizen condition
- Fix using $context function in condition arguments
- Persist PAPI placeholder boolean persist()
- ItemsAdder furniture not using namespaces
- Make compare condition write context of first and second arguments
This update includes some fixes.
- Fix errors for missing libraries
- Fix region condition not allowing functions
- Fix text not being refreshed
- Support legacy color codes
This is a relatively large update, which will inherently break things. Although it has been tested very carefully, there can still be breaking bugs. Please report those in Discord, thank you!
- Animations - text can be animated
- Functions - more powerful than placeholders
- Context - conditions return context
- Data - no more need for third-party plugins, define and access custom data.
Work on 2.0 continues. In the meanwhile, this small update includes some minor fixes for bugs.
- Fixes for ItemsAdder errors
- Fix Oraxen furniture names not showing up
- (Oraxen now needs at least version 1.182.0)
- Fix WorldGuard errors
- PacketEvents support. The plugin will determine choose which packet plugin to use.
- Simplify preset configuration by removing needless repetitions and sections. For example, the text can now be defined right inside the preset instead of "content -> text". Conditions als odoesn't repear twice, and condition list can be defined right in the preset. The old format still works.
Docs
- Themes now support options for padding the left/right side. Docs
- 1.20.6 (kind of already worked, but )
- Support multiple locations in location condition
- For example location { l = [ 22, 602, -234], [ 22, 603, -233] }
- Support multiple locations in lookingatblock condition
- For example lookingatblock{l=[440,65,803],[441,65,808],[442,65,803]}
- Your preset isn't showing and you're not sure why? The new /tt debug command should help! It checks all conditions one by one and tells you whether a tooltip would show or not.
- Fixes to various small errors
- Added manual character width specification (which allows manually fixing misaligned tooltips)
- Improved variable commands
- /tt vars commands now include autocompletions, error checking and can be ran from the console to set variables externally.
- /tt listvars has been added to see which variables are currently set (simplifies working with them a lot)
- Fixed background gradients on all versions
- Fixed spaces (” “) not working on older versions
- Dynamic offsets now supported
- Instead of specific given amounts, you can now do {+x} and {-x} with x being any amount of pixels. Docs.
- Centering text on any line
- To center any text line, add || before and after the line. Docs.
- Background gradients
- The tooltip backgrounds now support gradients. Docs.
- Fix a tiny width issue with spaces
- 1.16.5 client support. Tooltips still supports only running on servers from 1.18.2 → 1.20.1, but with the use-spaces setting set to false in config, it supports clients from 1.16.5 → 1.20.1 (tested versions)
- Improve how ItemsAdder display names are read
- Earlier if you used IA’s internationalization feature, your display-name was not being properly read by Tooltips. Now to work around that, you can specify next to display-name a tooltips-name, which will be the furnitures name used in Tooltips.
- Fix an error that happened when looking at furniture after restart
- Fix ItemsAdder barrier furniture (now furniture that uses barriers to define its hitboxes will be detected properly) Use ItemsAdder version 3.5.0c-r5 or later
- Fix permission condition not working
- Fix an issue, where a condition would not allow multiple strings ( [chair, couch])
- Fixed a bug in the permission condition
- Allow the permission condition to take placeholders as a parameter
- Fixed a few errors that occured during reloading