mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
tbc: fix loot frames
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user