From 66747fd3dd8cc7596d590ded5ca0768887562586 Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 1 Feb 2011 09:18:30 -0700 Subject: [PATCH] Dry-code some compatability with Broker_Profession_Menu. --- core.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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() -- 1.7.9.5