Dry-code some compatability with Broker_Profession_Menu.
John Pasula [02-01-11 - 16:18]
Dry-code some compatability with Broker_Profession_Menu.
diff --git a/core.lua b/core.lua
index 264c637..1762c30 100644
--- a/core.lua
+++ b/core.lua
@@ -670,6 +670,12 @@ function addon:OnEnable()
scan_button:ClearAllPoints()
scan_button:SetPoint("TOP", CauldronFrame, "TOPRIGHT", -58, -52)
scan_button:SetWidth(90)
+ elseif BPM_ShowTrainerFrame then
+ scan_button:SetParent(BPM_ShowTrainerFrame)
+ scan_button:ClearAllPoints()
+ scan_button:SetPoint("RIGHT", BPM_ShowTrainerFrame, "LEFT", 4, 0)
+ scan_button:SetWidth(scan_button:GetTextWidth() + 10)
+ scan_button:Show()
end
local buttonparent = scan_button:GetParent()