From a2939e7f62e051584433345f11c387389d6f5ea4 Mon Sep 17 00:00:00 2001 From: Road-block Date: Wed, 18 Jan 2023 16:08:40 +0200 Subject: [PATCH] Fix Queue Options --- ItemRack/ItemRackQueue.lua | 1 + ItemRackOptions/ItemRackOptions.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ItemRack/ItemRackQueue.lua b/ItemRack/ItemRackQueue.lua index cd66e07..b32cf1e 100644 --- a/ItemRack/ItemRackQueue.lua +++ b/ItemRack/ItemRackQueue.lua @@ -1,5 +1,6 @@ -- ItemRackQueue.lua local _ +local GetItemCooldown = _G.GetItemCooldown or C_Container.GetItemCooldown function ItemRack.PeriodicQueueCheck() if SpellIsTargeting() then diff --git a/ItemRackOptions/ItemRackOptions.lua b/ItemRackOptions/ItemRackOptions.lua index f823ec8..bfd5a22 100644 --- a/ItemRackOptions/ItemRackOptions.lua +++ b/ItemRackOptions/ItemRackOptions.lua @@ -1210,7 +1210,8 @@ function ItemRackOpt.SortListScrollFrameUpdate() end _G["ItemRackOptSortList"..i.."Name"]:SetText(name) _G["ItemRackOptSortList"..i.."Icon"]:SetTexture(texture) - _G["ItemRackOptSortList"..i.."Name"]:SetTextColor(GetItemQualityColor(quality or 1)) + local r,g,b = GetItemQualityColor(quality or 1) + _G["ItemRackOptSortList"..i.."Name"]:SetTextColor(r,g,b,1) item:Show() if idx==ItemRackOpt.SortSelected then ItemRackOpt.LockHighlight(item)