mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
bags: only create backdrop once on button creation
This commit is contained in:
+3
-1
@@ -399,7 +399,9 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function ()
|
||||
bagslot.cd.pfCooldownType = "ALL"
|
||||
end
|
||||
|
||||
CreateBackdrop(pfUI.bags[bag].slots[slot].frame, default_border)
|
||||
if not pfUI.bags[bag].slots[slot].frame.backdrop then
|
||||
CreateBackdrop(pfUI.bags[bag].slots[slot].frame, default_border)
|
||||
end
|
||||
|
||||
local highlight = pfUI.bags[bag].slots[slot].frame:GetHighlightTexture()
|
||||
highlight:SetTexture(.5, .5, .5, .5)
|
||||
|
||||
Reference in New Issue
Block a user