Skip to content

Commit

Permalink
Added border for bags in bank.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Jan 28, 2018
1 parent 0afeaec commit 1a71596
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ShestakUI/Modules/Blizzard/Bags.lua
Expand Up @@ -395,6 +395,17 @@ function Stuffing:BagFrameSlotNew(p, slot)
ret.frame = CreateFrame("CheckButton", "StuffingBBag"..slot.."Slot", p, "BankItemButtonBagTemplate")
ret.frame:StripTextures()
ret.frame:SetID(slot)
hooksecurefunc(ret.frame.IconBorder, "SetVertexColor", function(self, r, g, b)
if r ~= 0.65882 and g ~= 0.65882 and b ~= 0.65882 then
self:GetParent():SetBackdropBorderColor(r, g, b)
end
self:SetTexture("")
end)

hooksecurefunc(ret.frame.IconBorder, "Hide", function(self)
self:GetParent():SetBackdropBorderColor(unpack(C.media.border_color))
end)

table.insert(self.bagframe_buttons, ret)

BankFrameItemButton_Update(ret.frame)
Expand Down Expand Up @@ -1061,7 +1072,7 @@ function Stuffing:ADDON_LOADED(addon)
CloseAllBags = Stuffing_Close
CloseBackpack = Stuffing_Close

--BankFrame:UnregisterAllEvents()
BankFrame:UnregisterAllEvents()
BankFrame:SetScale(0.00001)
BankFrame:SetAlpha(0)
BankFrame:SetPoint("TOPLEFT")
Expand Down

0 comments on commit 1a71596

Please sign in to comment.