Add FCOItemSaver marker texture show/hide function
Baertram [06-24-18 - 17:27]
Add FCOItemSaver marker texture show/hide function
diff --git a/IIfA/IIfABackpack.lua b/IIfA/IIfABackpack.lua
index 0d95a20..2f4a9c7 100644
--- a/IIfA/IIfABackpack.lua
+++ b/IIfA/IIfABackpack.lua
@@ -444,6 +444,10 @@ local function fillLine(curLine, curItem)
curLine.qty:SetText(IIfA.EMPTY_STRING)
curLine.worn:SetHidden(true)
curLine.stolen:SetHidden(true)
+ --Hide the FCOIS marker icons at the line (do not create them if not needed) -> File plugins/FCOIS/IIfA_FCOIS.lua
+ if IIfA.UpdateFCOISMarkerIcons ~= nil then
+ IIfA:UpdateFCOISMarkerIcons(curLine, false, false, -1)
+ end
else
local r, g, b, a = 255, 255, 255, 1
if (curItem.quality) then
@@ -459,6 +463,11 @@ local function fillLine(curLine, curItem)
curLine.qty:SetText(curItem.qty)
curLine.worn:SetHidden(not curItem.worn)
curLine.stolen:SetHidden(not IsItemLinkStolen(curItem.link))
+ --Show the FCOIS marker icons at the line, if enabled in the settings (create them if needed) -> File plugins/FCOIS/IIfA_FCOIS.lua
+ if IIfA.UpdateFCOISMarkerIcons ~= nil then
+ local showFCOISMarkerIcons = IIfA:GetSettings().FCOISshowMarkerIcons
+ IIfA:UpdateFCOISMarkerIcons(curLine, showFCOISMarkerIcons, showFCOISMarkerIcons, -1)
+ end
end
end