T-Notify v1.4.0-rc3 - Type Validation & Color Codes
Pre-releaseThis is probably the final release candidate for T-Notify v1.4.0, it includes several features and enhancements retaining standard semver backward compatibility.
New Features
Color Codes
Color codes have now been added as an additional markdown-like tag. Here is an example of how they are used.
exports['t-notify']:Custom({
style = 'message',
duration = 11000,
title = 'Colors Example',
message = '^1Red^1 \n^2Green^2 \n^3Yellow^3 \n^4Blue^4\n^5Cyan^5\n^6Purple^6 \n^7White^7 \n^8Orange^8 \n^9Grey^9\n',
sound = true
})
This produces the following notification:
Type Validation for Notification Properties
Type validation has also been added this release, which will inform you if the notification object has a property of the wrong type, before this was unhandled. Now there are verbose error messages.
Minor Tweaks/Fixes
- Fix an edge case when notifications would not properly show a title/message if that title or message was passed as a non-number.
- Error prints are now red
- Utilized FiveM color codes for the update script rather than ANSI Escape Codes so these format properly in svgui.
- General code cleanup for NUI
- General code cleanup for Lua
Note
As always this update should be 100% backward compatible with past versions of T-Notify. Documentation will be added before graduation to release.
This is a release candidate for testing purposes only, certain things may change before it is graduated to release. Do not use this in production