Commit b061aa3b authored by Simpy's avatar Simpy 🐹

move it down >x<

parent 29a973da
...@@ -64,12 +64,6 @@ local function SkinItemButton(parentFrame, _, index) ...@@ -64,12 +64,6 @@ local function SkinItemButton(parentFrame, _, index)
item.Icon:SetParent(item.backdrop) item.Icon:SetParent(item.backdrop)
item.Icon:SetInside() item.Icon:SetInside()
local r, g, b, a = item.IconBorder:GetVertexColor()
if r then
item.IconBorder:SetTexture()
item.backdrop:SetBackdropBorderColor(r, g, b, a)
end
hooksecurefunc(item.IconBorder, "SetVertexColor", function(self, r, g, b) hooksecurefunc(item.IconBorder, "SetVertexColor", function(self, r, g, b)
self:GetParent().backdrop:SetBackdropBorderColor(r, g, b) self:GetParent().backdrop:SetBackdropBorderColor(r, g, b)
self:SetTexture() self:SetTexture()
...@@ -78,6 +72,12 @@ local function SkinItemButton(parentFrame, _, index) ...@@ -78,6 +72,12 @@ local function SkinItemButton(parentFrame, _, index)
self:GetParent().backdrop:SetBackdropBorderColor(unpack(E.media.bordercolor)) self:GetParent().backdrop:SetBackdropBorderColor(unpack(E.media.bordercolor))
end) end)
local r, g, b, a = item.IconBorder:GetVertexColor()
if r then
item.IconBorder:SetTexture()
item.backdrop:SetBackdropBorderColor(r, g, b, a)
end
item.Count:SetDrawLayer("OVERLAY") item.Count:SetDrawLayer("OVERLAY")
item.Count:SetParent(item.backdrop) item.Count:SetParent(item.backdrop)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment