
Back to NxLabs

[Depreciated] ToastLib
ABy AriesLR
Library leveraging the ImGui implementation by Maltiez to draw toast style popups.
![[Depreciated] ToastLib](https://moddbcdn.vintagestory.at/Screenshot+2025-10-2_6f230df377f5d02aa63d854cad42f6ff.png)
Description
Description
ToastLib is a library leveraging the ImGui implementation by Maltiez to draw toast style popups.
This mod will not really do anything by itself, other mods should use this to have any messages show outside of chat.
The reason I made this was because a few players on my server complained about how annoying some mods are with spamming the game chat. One of my own mods was even worse and swapped to the info channel to keep messages out of the general chat, but that ended up being even more annoying having to manually switch chat channels again.
Requirements
Features
- Toast Notifications — Display customizable toast notifications on the screen.
- Configurable Styles — Easily change the appearance of the toast notifications by using the
ShowToastAdv()method. - Smooth Animations — Smooth slide-in and slide-out animations for the toast notifications.
- Minimal VTML Support — Support for a limited subset of VTML, allowing for basic markup and styling.
- Easy To Use — Send toast notifications in nearly the same format as the vanilla
SendMessage()method.
Supported VTML Tags
<table style="border-collapse: collapse; width: 100%; height: 120px; margin-left: auto; margin-right: auto; color: #dde2e7;" border="1"> <tbody> <tr style="height: 50px;"> <td style="width: 25%; height: 20px; text-align: center; font-size: 18px;">Tag </td> <td style="width: 25%; height: 20px; text-align: center; font-size: 18px;">Description </td> <td style="width: 25%; height: 20px; text-align: center; font-size: 18px;">Example </td> <td style="width: 25%; height: 20px; text-align: center; font-size: 18px;">Result </td> </tr> <tr style="height: 20px;"> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;">
Read the full description on Vintage Story ModDB →<font color=" "></td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;">Sets text color</td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac; font-size: 12px;"><font color="lightcoral">Alert</font></td> <td style="width: 25%; height: 20px; text-align: center; color: #dde2e7;"><span style="color: #f08080;">Alert</span></td> </tr> <tr style="height: 20px;"> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;"><font color=" "></td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;">Sets text color</td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac; font-size: 12px;"><font color="#00F2FF">Info</font></td> <td style="width: 25%; height: 20px; text-align: center; color: #dde2e7;"><span style="color: #00f2ff;">Info</span></td> </tr> <tr style="height: 20px;"> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;"><font weight="bold"></td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;">Makes text bold</td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac; font-size: 12px;"><font weight="bold">Important</font></td> <td style="width: 25%; height: 20px; text-align: center; color: #dde2e7;">Important</td> </tr> <tr style="height: 20px;"> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;"><strong></td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;">Alias for bold text</td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac; font-size: 12px;"><strong>Warning</strong></td> <td style="width: 25%; height: 20px; text-align: center; color: #dde2e7;">Warning</td> </tr> <tr style="height: 20px;"> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;"><br></td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac;">Inserts a line break</td> <td style="width: 25%; height: 20px; text-align: center; color: #acacac; font-size: 12px;">Line 1<br>Line 2</td>Ratings & reviews
No ratings yet
Sign in to leave a rating or comment.

