From 4d508925f9184c07f07ca90e7c1765b56e667a9d Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 30 Sep 2018 14:48:34 +0200 Subject: [PATCH] tbc: fix loot frames --- api/tbc.lua | 4 ++++ modules/loot.lua | 2 ++ 2 files changed, 6 insertions(+) diff --git a/api/tbc.lua b/api/tbc.lua index 314ae450..6b397754 100644 --- a/api/tbc.lua +++ b/api/tbc.lua @@ -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 diff --git a/modules/loot.lua b/modules/loot.lua index aabe7694..a53892fe 100644 --- a/modules/loot.lua +++ b/modules/loot.lua @@ -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()