You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I updated the tooltipAPI to be more flexible : with my modification you can now use predicate for tooltip like this :
local function predicateItem(item)
if item.getFabricType then
local fabric = item:getFabricType()
if item:getTags():contains("zReRepairableVest") then
fabric = "Kevlar"
end
if item:getTags():contains("zReRepairableChemsuit") then
fabric = "zReRubberizedFabrics"
end
return fabric ~= nil
end
return false
end
local ItemTooltipPredicate = ItemTooltipAPI.CreateToolTipByPredicate("fabricType", predicateItem)
ItemTooltipPredicate:addField(getText("IGUI_SM_Fabric"), getMaterialText) -- Fixed field value
And i made some modification to fix the compatibility with the latest version of PZ (41.78.16).
Are you open to PR ?
The text was updated successfully, but these errors were encountered:
Hello,
I updated the tooltipAPI to be more flexible : with my modification you can now use predicate for tooltip like this :
And i made some modification to fix the compatibility with the latest version of PZ (41.78.16).
Are you open to PR ?
The text was updated successfully, but these errors were encountered: