
Back to NxLabs

HoR ToastLib
PBy Panduhs
Adds server→client packets and HoR-Essentials theme integration.
Description
This is a compatibility update for ToastLib by AriesLR for Vintage Story 1.22. It keeps the original toast notification library working and adds HoR-specific integrations used by HoR-Essentials.
Stats: 1.22 Compatibility Update • Server to Client ProtoBuf Packets • HoR-Essentials Theme Integration • Universal
✨ HoR-Specific Changes
- Server-to-Client Packet Delivery (ToastMessagePacket)
Added a ProtoBufToastMessagePacketwith message, display time, background color, and a toast key. Server mods (primarily HoR-Essentials) callServerAPI.SendToast(player, ...)to push notifications to specific players over a registeredtoastlibnetwork channel. Server-side only callers never need to bundle ImGui. - HoR-Essentials Theme Integration
On client startup, readsModConfig/HoR-Essentials/hor_ui_overrides.jsonto pick up the player's toast anchor position, X/Y offsets, and color theme. Re-reads every 5 seconds so in-game theme changes apply without a reload._forceThemeToastColors = trueensures HoR UI theme colors are respected by default. - Configurable Toast Position (SetPosition API)
TheSetPosition(anchor, offsetX, offsetY)method is publicly exposed so other mods can reposition toasts. Valid anchors: top-left, top-center, top-right, mid-left, mid-center, mid-right, bot-left, bot-center, bot-right. - VS 1.22 API Updates
Rebuilt targeting .NET 10.0. Updated all ImGuiNET and VSImGui API calls for VS 1.22 compatibility.
🔗 Original Mod
ToastLib by AriesLR
Original mod page: mods.vintagestory.at/toastlib
Ratings & reviews
No ratings yet
Sign in to leave a rating or comment.
