Mod «Tooltiplib - Tooltip Framework for Modders» for Project Zomboid

0
51

TooltipLib is a framework that manages item tooltips. It allows multiple mods to add content to tooltips without conflicts. Instead of overriding the game's render function, mods register as providers. This ensures all tooltip mods work together with proper alignment and organization. **For Players** * Install this mod if another mod lists it as a dependency. * No configuration or load order adjustments are needed. * Safe to add or remove during an ongoing save. * Does not write any data to your save file. **Supported Tooltip Surfaces** * **Item:** Inventory tooltips. * **Item Slot:** Crafting panel slots. * **World Object:** Generators, fridges, rain collectors, and containers. * **Skill:** Character skill bars with rich text support. * **Vehicle:** Mechanic overlay part tooltips with rich text support. * **Recipe:** Build 42 crafting recipe side panel. **For Modders** The framework handles hooks, layout, error handling, and caching. Modders simply register a provider with a callback function. * **Error Isolation:** Each callback runs in a protected environment. If one provider fails, others continue to render. Repeated errors trigger a circuit breaker. * **Filtering:** Includes 14 item filters, 3 world object filters, and combinators (allOf, anyOf, negate). All filters are error-hardened. * **Context Methods:** Provides common methods for adding labels, key-value pairs, progress bars, integers, floats, percentages, spacers, headers, dividers, and text layouts. Item, slot, and object surfaces support texture rendering. Skill and vehicle surfaces support line-level formatting. * **Lifecycle:** Follows a 5-phase process: preTooltip → callback → textures → postRender → cleanup. **Multiplayer Support** * Item, skill, vehicle, and recipe tooltips are client-side and generate no server traffic. * World objects use a request-response pipeline on dedicated servers. The server only reads whitelisted getters and boolean checks. Responses are cached on the client. * Admins can disable the multiplayer sync pipeline via the Sandbox option «EnableMPSync». * Singleplayer and listen servers have no network overhead. **Compatibility** * Works alongside mods that directly hook the tooltip render function. It detects foreign hooks and renders content below them. * Compatible with UI-replacing mods like Inventory Tetris and Equipment UI. * Multiple mods can include TooltipLib. The version guard ensures the newest copy loads while older versions skip silently. **Requirements** * Project Zomboid Build 42.13.1 or higher. **Technical Information:** * Workshop ID: 3694097672 * Mod ID: TooltipLib

Version : Download

Tested on
Project Zomboid
  • Build 42
No comments yet. Be the first to add a comment!