tbc: fix loot frames

This commit is contained in:
shagu
2018-09-30 14:48:34 +02:00
parent 4263ee83e1
commit 4d508925f9
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -29,6 +29,10 @@ end
function pfUI.api.CreateFrame(f, n, p, t)
if f == "Model" and t == "CooldownFrameTemplate" then
return _G.CreateFrame("Cooldown", n, p, t)
elseif f == "LootButton" then
local ret = _G.CreateFrame("Button", n, p, t)
ret.SetSlot = ret.SetID
return ret
else
return _G.CreateFrame(f, n, p, t)
end
+2
View File
@@ -527,6 +527,8 @@ pfUI:RegisterModule("loot", function ()
LootFrame.selectedSlot = pfUI.loot.selectedSlot
LootFrame.selectedQuality = pfUI.loot.selectedQuality
LootFrame.selectedItemName = pfUI.loot.selectedItemName
LootSlot(this:GetID())
end)
frame:SetScript("OnEnter", function()