Поиск по STEAMB

Игры и программы по онлайну, скины по объёму продаж

Ничего не найдено

Попробуйте другое название или переключите категорию.

Меню

ИнтерфейсБиблиотеки

Tooltiplib - Tooltip Framework for Modders

Положительные голоса97%120 голосов игроков
Подписчики29,8 тыс.29 797 в Steam Workshop
Размер файла381,03 КБЗагрузка через Steam
Обновление автора4 окт. 2026 г.Дата обновления материала

Фото и видео: 1 из 2. Материалы автора из Steam Workshop.

Фото и видео: 1 из 2
Установить через Steam

О материале

«Tooltiplib - Tooltip Framework for Modders» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.

Описание автора

Half the Workshop independently hooks ISToolTipInv.render to add content to item tooltips. Every one of them saves the original function, replaces it with their own, crosses its fingers, and ships. Load two together and it's a coin flip whose content shows up.

TooltipLib fixes this. One managed hook per surface. Mods register as providers instead of fighting over who owns the render function. Priority ordering, error isolation, automatic column alignment, two-tier caching. Install it and every tooltip mod works together — aligned, organized, conflict-free.


For Players

Install it. If a mod lists TooltipLib as a dependency, install TooltipLib. No configuration. No load order fiddling. No compatibility patches.

Toggle individual providers on or off, rebind the detail key (default: Shift).

Safe to add mid-save. Safe to remove mid-save. No persistent state. Writes nothing to your save file.


Item — Inventory tooltips. The one everyone fights over. Not anymore. Item Slot — Crafting panel slots. Item providers auto-apply here. World Object — Generators, fridges, rain collectors, containers — anything in the world. Skill — Character skill bars. Rich text. Vehicle — Mechanic overlay part tooltips. Rich text. Recipe — Build 42 crafting recipe side panel.

All six share the same context method interface. Write a provider once, point it at any surface.


One call. No hooking, no metatable juggling, no layout lifecycle.


require "TooltipLib/Core"

TooltipLib.registerProvider({
    id          = "MyMod_WeaponStats",
    target      = "item",
    enabled     = TooltipLib.Filters.weapon,
    cacheable   = true,
    description = "Weapon damage stats",
    callback    = function(ctx)
        ctx:addKeyValue("Damage:", "+15%", nil, TooltipLib.Colors.GREEN)
        ctx:addProgress("Mastery:", 0.75, nil, TooltipLib.Colors.GOLD)
    end,
})

The framework handles the hook, the layout, the error handling, and the caching. Your callback adds content.

Error isolation. Every callback runs inside pcall. Provider A fails, providers B through Z keep rendering. Circuit breaker benches repeat offenders after 10 consecutive errors. Cleanup phase runs unconditionally — if your preTooltip modified item state and your callback divided by zero, cleanup still fires.

Filtering. 14 item filters, 3 world object filters, factory functions for custom cases, combinators (allOf, anyOf, negate). Every filter is pcall-hardened.

Context methods. Ten common methods for all surfaces:

addLabel  addKeyValue  addProgress  addInteger  addFloat
addPercentage  addSpacer  addHeader  addDivider  addText

Layout surfaces (item, itemSlot, object) add texture rendering. Rich text surfaces (skill, vehicle) add line-level formatting.

5-phase lifecycle. preTooltip → callback → textures → postRender → cleanup. In order.


Multiplayer

Item, skill, vehicle, and recipe surfaces are fully client-side. Zero server traffic.

World objects use a request-response pipeline on dedicated servers. Client sends one request per object. Server reads whitelisted methods only — getters and boolean checks. No mutations, no arbitrary invocation. Responses cached client-side. Sandbox option EnableMPSync lets admins disable the pipeline.

Singleplayer and listen servers read directly. No network overhead.


Compatibility

Works alongside mods that hook ISToolTipInv.render directly — deferred mode detects the foreign hook and renders provider content below it. Works with Inventory Tetris, Equipment UI, and other UI-replacing mods. Multiple mods can bundle TooltipLib — version guard ensures newest copy loads, older ones skip silently.


Mods Using TooltipLib

Sauce Tooltips — 20 providers across all 6 surfaces. Generators, food freshness, farm plants, containers, fridges, stoves, lamps, vehicles, crafting. VorpallySauced — Weapon progression tooltips. Affixes, mastery, kill tracking.


Requirements

  • Build 42.13.1+

  • Safe to add or remove mid-save

  • No persistent state, no save writes

Bug reports:


TooltipLib Version:
Game Version:
Mode: [SP / MP Host / Dedicated Server]
What happened:
Other tooltip mods installed:

Workshop ID: 3694097672 Mod ID: TooltipLib

Workshop ID: 3694097672 Mod ID: TooltipLib

Видео автораОткрыть в YouTube ↗
Оригинал в Steam Workshop

Как установить и запустить

Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.

Настройки cookies

Вы можете изменить выбор в любой момент. Отказ от аналитики не ограничивает доступ к сайту.

Технологии, провайдеры и сроки хранения